FunctionalAIAgent
constructor(promptExecutor: PromptExecutor, agentConfig: AIAgentConfig, toolRegistry: ToolRegistry = ToolRegistry.EMPTY, strategy: AIAgentFunctionalStrategy<Input, Output>, id: String? = null, clock: Clock = Clock.System, featureContext: 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
The unique identifier for the agent instance.
promptExecutor
The executor responsible for processing prompts and interacting with language models.
agentConfig
The configuration for the agent, including the prompt structure and execution parameters.
toolRegistry
The registry of tools available for the agent. Defaults to an empty registry if not specified.