copy
Creates a copy of the current AIAgentFunctionalContext, allowing for selective overriding of its properties. This method is particularly useful for creating modified contexts during agent execution without mutating the original context - perfect for when you need to experiment with different configurations or pass tweaked contexts down the execution pipeline while keeping the original pristine!
Return
A shiny new AIAgentFunctionalContext with your desired modifications applied!
Parameters
The AIAgentEnvironment to be used in the new context, or retain the current playground if not specified.
The unique agent identifier, or keep the same identity if you're feeling attached.
The run identifier for this execution adventure, or stick with the current journey.
The input data for the agent - fresh data or the same trusty input, your choice!
The AIAgentConfig for the new context, or keep the current rulebook.
The AIAgentLLMContext to be used, or maintain the current AI conversation partner.
The AIAgentStateManager to be used, or preserve the current state keeper.
The AIAgentStorage to be used, or stick with the current memory bank.
The strategy name, or maintain the current game plan.
The AIAgentNonGraphPipeline to be used, or keep the current execution superhighway.
The parent root context, or maintain the current family tree.