GraphAgentBuilder

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

Parameters

strategy

The execution strategy used by the agent for processing input and generating results.

promptExecutor

PromptExecutor for the agent

id

id of the agent

config

AIAgentConfig containing initial agent configuration for the builder

clock

optional KoogClock to be used in the agent for calculating timestamps

Type Parameters

Input

The input type that the agent processes.

Output

The output type that the agent produces.