copy
open override fun copy(environment: AIAgentEnvironment, agentInput: Any?, agentInputType: KType, config: AIAgentConfigBase, llm: AIAgentLLMContext, stateManager: AIAgentStateManager, storage: AIAgentStorage, runId: String, strategyId: String, pipeline: AIAgentPipeline): AIAgentContextBase(source)
Creates a copy of the current AIAgentContext with optional overrides for its properties.
Return
A new instance of AIAgentContext with the specified overrides.
Parameters
environment
The agent environment to be used
agentInput
The agent input to be used
config
The AI agent configuration
llm
The AI agent LLM context
stateManager
The state manager for the AI agent
storage
The AI agent's key-value storage
runId
The id of an agent run
strategyId
The strategy ID
pipeline
The AI agent pipeline