koog
Toggle table of contents
0.6.0-SNAPSHOT
common
Target filter
common
Switch theme
Search in API
Skip to content
koog
agents-planner
/
ai.koog.agents.planner.goap
/
Action
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.
Members
Constructors
Action
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
belief
Link copied to clipboard
val
belief
:
(
State
)
->
State
cost
Link copied to clipboard
val
cost
:
(
State
)
->
Double
description
Link copied to clipboard
val
description
:
String
?
execute
Link copied to clipboard
val
execute
:
suspend
(
AIAgentFunctionalContext
,
State
)
->
State
name
Link copied to clipboard
val
name
:
String
precondition
Link copied to clipboard
val
precondition
:
(
State
)
->
Boolean