switch_model
Method
This is a method of the Agent class in the agent module.Switch the agent’s LLM model while preserving conversation history.
Signature
Parameters
The new model name to switch to (e.g., “gpt-4o”, “claude-3-sonnet”)
Switch the agent’s LLM model while preserving conversation history.
This is a method of the Agent class in the agent module.Switch the agent’s LLM model while preserving conversation history.
def switch_model(new_model: str) -> None