Skip to main content
model= is the canonical name for the model on every agent class; llm= is a deprecated alias for it.

Quick Start

1

Use the canonical name

2

The deprecated alias still works

llm= still works but emits a DeprecationWarning. Move to model= at your convenience.
3

Passing both is refused


How It Works

Every agent class routes llm= and model= through one resolver so the rule is identical everywhere.

Where It Applies

The llm= / model= pair resolves the same way on every class below.
manager_llm= on AgentTeam / AgentFlow is separate and unchanged — it is the hierarchical manager’s model and never touches the members.

Migration

No code change is required — llm= still works. Move to model= at your convenience; it is the canonical name.
Pick one. model= is the canonical name. Passing both now raises TypeError because the two are the same parameter and guessing a winner could change which vendor is billed.
On VisionAgent, AudioAgent, OCRAgent, VideoAgent, EmbeddingAgent, CodeAgent, RealtimeAgent, ImageAgent, and ContextAgent you no longer need to unwrap an LLMConfig yourself. The class stores its .model string and keeps its own base_url= / api_key=.
Those four now also accept model= (canonical). The alias llm= still works.

LLM Config

Pass an LLMConfig object to model= for base_url, api_key, and fallbacks.

Legacy Agent Parameters

Other deprecated Agent() parameters and their replacements.