AIAgentFunctionalContext

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

Parameters

environment

The AIAgentEnvironment in which the AI agent operates, facilitating interaction with the external environment for tool execution and error reporting.

agentId

A unique identifier for the agent, used to distinguish it from other agents.

runId

An identifier representing the execution run of the agent, useful for tracking and managing runs.

agentInput

The input data provided to the agent, which can guide its execution or decision-making process.

config

The AIAgentConfig object containing configuration information for the agent, such as behavior settings.

llm

The AIAgentLLMContext providing access to the large language model interactions for generating outputs.

stateManager

The AIAgentStateManager responsible for managing and persisting the state of the agent during its lifecycle.

storage

The AIAgentStorage interface facilitating storage and retrieval of data in the agent's environment.

strategyName

The name of the strategic approach or plan under which the agent is functioning.

pipeline

The AIAgentFunctionalPipeline defining the functional execution flow of the agent's operations.

executionInfo

The AgentExecutionInfo containing metadata and runtime information about the agent's current execution.

parentContext

An optional reference to the parent AIAgentContext, enabling hierarchical context structure if needed.