copy
Creates a copy of the current AIAgentFunctionalContext, allowing for selective overriding of its properties. This method is useful for creating modified contexts during agent execution without mutating the original context.
Return
A new AIAgentFunctionalContext with the specified modifications applied.
Parameters
The AIAgentEnvironment to be used in the new context, or the current one if not specified.
The unique agent identifier, or the current one if not specified.
The run identifier, or the current run ID if not specified.
The input data for the agent, or the current input if not specified.
The AIAgentConfig for the new context, or the current configuration if not specified.
The AIAgentLLMContext to be used, or the current LLM context if not specified.
The AIAgentStateManager to be used, or the current state manager if not specified.
The AIAgentStorage to be used, or the current storage if not specified.
The strategy name, or the current strategy name if not specified.
The AIAgentFunctionalPipeline to be used, or the current pipeline if not specified.
The AgentExecutionInfo to be used, or the current execution info if not specified.
The parent context, or the current parent context if not specified.