GraphAgentBuilder

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

Parameters

Input

The input type that the agent processes.

Output

The output type that the agent produces.

strategy

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

inputType

The TypeToken representation of the input parameter type.

outputType

The TypeToken representation of the output parameter type.

promptExecutor

PromptExecutor for the agent

id

id of the agent

config

AIAgentConfig containing initial agent configuration for the builder

clock

optional Clock to be used in the agent for calculating timestamps