Action

class Action<State>(val name: String, val description: String? = null, val precondition: (State) -> Boolean, val belief: (State) -> State, val cost: (State) -> Double, val execute: suspend (AIAgentFunctionalContext, State) -> State)(source)

Represents an action that can be performed by the agent.

Constructors

Link copied to clipboard
constructor(name: String, description: String? = null, precondition: (State) -> Boolean, belief: (State) -> State, cost: (State) -> Double, execute: suspend (AIAgentFunctionalContext, State) -> State)

Properties

Link copied to clipboard
val belief: (State) -> State
Link copied to clipboard
val cost: (State) -> Double
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard