Package-level declarations

Types

Link copied to clipboard
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)

Represents an action that can be performed by the agent.

Link copied to clipboard
class Goal<State>(val name: String, val description: String?, val value: (Double) -> Double, val cost: (State) -> Double, val condition: (State) -> Boolean)

Represents a goal that the agent wants to achieve.

Link copied to clipboard
class GOAPPlan<State>(val goal: Goal<State>, val actions: List<Action<State>>, val value: Double)

A GOAP plan.

Link copied to clipboard

Goal-Oriented Action Planning (GOAP) implementation for AI agents.

Link copied to clipboard
class GOAPPlannerBuilder<State>(stateType: KType)

GOAPPlanner DSL builder.

Functions

Link copied to clipboard
fun <State> goap(stateType: KType, init: GOAPPlannerBuilder<State>.() -> Unit): GOAPPlanner<State>

Creates a GOAPPlanner using a DSL for defining actions.