PlannerAgentBuilder

constructor(strategy: AIAgentPlannerStrategy<Input, Output, *>, promptExecutor: PromptExecutor? = null, toolRegistry: ToolRegistry = ToolRegistry.EMPTY, id: String? = null, config: AIAgentConfig, clock: Clock = Clock.System, featureInstallers: MutableList<PlannerAIAgent.FeatureContext.() -> Unit> = mutableListOf())(source)

Parameters

State

The type representing the state handled by the AI agent.

strategy

The planning strategy used by the agent to process and execute tasks.

promptExecutor

The executor responsible for handling AI prompts.

toolRegistry

The registry of tools available for use by the agent. Defaults to an empty tool registry.

id

The optional identifier of the agent.

config

AIAgentConfig containing initial agent configuration for the builder

clock

The clock instance used to track time-related operations for the agent. Defaults to the system clock.

featureInstallers

A list of feature installers that enhance the agent's behavior with additional functionality.