AIAgentPlanner

abstract class AIAgentPlanner<State : Any, Plan : Any>(stateType: TypeToken? = null)(source)

An abstract base planner component, which can be used to implement different types of AI agent planner execution flows.

An entry point is an execute method, which accepts an initial arbitrary State and returns the final State after the execution.

Planner flow works as follows:

  1. Build a plan: buildPlan

  2. Execute a step in the plan: executeStep

  3. Repeat steps 1 and 2 until the plan is considered completed. Then the final State is returned.

Parameters

stateType

TypeToken of the State.

Inheritors

Constructors

Link copied to clipboard
constructor(stateType: TypeToken? = null)

Properties

Link copied to clipboard
val stateType: TypeToken

TypeToken of the State