copy

open override fun copy(environment: AIAgentEnvironment, agentId: String, agentInput: Any?, agentInputType: KType, config: AIAgentConfig, llm: AIAgentLLMContext, stateManager: AIAgentStateManager, storage: AIAgentStorage, runId: String, strategyName: String, pipeline: AIAgentGraphPipeline): AIAgentGraphContextBase(source)

Creates a new instance of AIAgentContextBase with the specified parameters, copying the properties from the current instance with the provided updates.

Return

An instance of AIAgentContextBase with the updated parameters and copied configurations.

Parameters

environment

The environment in which the AI agent operates, allowing interaction with external systems.

agentInput

The input object provided to the AI agent, representing data or context for the agent to process.

agentInputType

The type of the agent input, used to interpret the structure or nature of the input.

config

The configuration settings for the AI agent, such as model specifics and operational limits.

llm

The language model context used by the AI agent for generating responses or processing input.

stateManager

The state management associated with the AI agent, responsible for tracking execution state and history.

storage

A storage mechanism for the AI agent, enabling persistence of key-value information.

runId

A unique identifier for the current execution or operational instance of the AI agent.

strategyName

The name of the strategy employed during the AI agent's execution cycle.

pipeline

The pipeline configuration used by the AI agent to define the processing steps.