Skip to main content

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

def switch_model(new_model: str) -> None

Parameters

new_model
str
required
The new model name to switch to (e.g., “gpt-4o”, “claude-3-sonnet”)