AIAgentContext
constructor(environment: AIAgentEnvironment, agentInputType: KType, agentInput: Any?, config: AIAgentConfigBase, llm: AIAgentLLMContext, stateManager: AIAgentStateManager, storage: AIAgentStorage, runId: String, strategyName: String, pipeline: AIAgentPipeline, id: String)(source)
Creates an instance of the context with the given parameters.
Parameters
environment
The AI agent environment responsible for tool execution and problem reporting.
agentInput
The input message to be used for the agent's interaction with the environment.
config
The configuration settings of the AI agent.
llm
The contextual data and execution utilities for the AI agent's interaction with LLMs.
stateManager
Manages the internal state of the AI agent.
storage
Concurrent-safe storage for managing key-value data across the agent's lifecycle.
runId
The unique identifier for the agent session.
strategyName
The identifier for the selected strategy in the agent's lifecycle.
pipeline
The AI agent pipeline responsible for coordinating AI agent execution and processing.