copy

open override fun copy(environment: AIAgentEnvironment? = this.environment, agentInput: Any? = this.agentInput, agentInputType: TypeToken? = this.agentInputType, config: AIAgentConfig? = this.config, llm: AIAgentLLMContext? = this.llm, stateManager: AIAgentStateManager? = this.stateManager, storage: AIAgentStorage? = this.storage, runId: String? = this.runId, strategyName: String? = this.strategyName, executionInfo: AgentExecutionInfo? = this.executionInfo): AIAgentContextMockBuilder(source)

Creates and returns a new copy of the current AIAgentContextMockBuilder instance. The copied instance contains the same state and configuration as the original.

Return

a new AIAgentContextMockBuilder instance with the same properties as the original.