FunctionalAIAgent

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

Parameters

Input

The type of input data expected by the agent.

Output

The type of output data produced by the agent.

id

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