AIAgentPlannerContext

constructor(environment: AIAgentEnvironment, agentId: String, runId: String, agentInput: Any?, config: AIAgentConfig, llm: AIAgentLLMContext, stateManager: AIAgentStateManager, storage: AIAgentStorage, strategyName: String, pipeline: AIAgentPlannerPipeline, executionInfo: AgentExecutionInfo, parentContext: AIAgentContext? = null)(source)

Constructs an instance of AIAgentPlannerContext by delegating to the base implementation for the AI agent's functional context. This constructor initializes the context with the provided components and parameters to facilitate agent planning and execution.

Parameters

environment

The AI agent's operating environment, which provides tools, error reporting, and mechanism for execution.

agentId

A unique identifier for the agent.

runId

A unique identifier representing the current execution run.

agentInput

Input data provided to the agent for processing or decision-making.

config

Configuration details for the AI agent, dictating its behavior and settings.

llm

The context for interactions with the underlying language model.

stateManager

Responsible for managing the state of the agent across executions.

storage

Provides long-term memory or storage for the agent's operations.

strategyName

Name of the strategy guiding the agent's behavior.

pipeline

The planning pipeline that orchestrates the agent's decision-making processes.

executionInfo

Metadata and details regarding the agent's execution, such as timestamps or states.

parentContext

An optional parent context, allowing nested or hierarchical composition of agent contexts.