GraphAIAgent

constructor(inputType: KType, outputType: KType, promptExecutor: PromptExecutor, agentConfig: AIAgentConfig, strategy: AIAgentGraphStrategy<Input, Output>, toolRegistry: ToolRegistry = ToolRegistry.EMPTY, id: String? = null, clock: Clock = Clock.System, installFeatures: GraphAIAgent.FeatureContext.() -> Unit = {})(source)

Initializes the AI agent instance and prepares the feature context and pipeline for use.

Parameters

Input

Type of agent input.

Output

Type of agent output.

id

Unique identifier for the agent. Random UUID will be generated if set to null.