GraphAIAgent
constructor(promptExecutor: PromptExecutor, agentConfig: AIAgentConfig, strategy: AIAgentGraphStrategy<Input, Output>, toolRegistry: ToolRegistry = ToolRegistry.EMPTY, id: String? = null, clock: KoogClock = KoogClock.System, installFeatures: GraphAIAgent.FeatureContext.() -> Unit = {})(source)
Initializes the AI agent instance and prepares the feature context and pipeline for use.
Parameters
id
Unique identifier for the agent. Random UUID will be generated if set to null.
Type Parameters
Input
Type of agent input.
Output
Type of agent output.