Should I set the LLM to be used on the AgentSessio...
# ask-ai
r
Should I set the LLM to be used on the AgentSession or on the Agent itself? What is the difference between these two ways to set the LLM?
t
Thanks for reaching out, James. I'm an AI assistant and I'm here to help. Give me a moment while I research this topic.
You're responding about where to configure the LLM. Short answer: set the default LLM on the AgentSession, and only set an LLM on an Agent when you need that agent to override the session default. Why: • AgentSession.llm is the session-wide default used by all agents in that session. • Agent.llm is a per-agent override so a specific agent can use a different model (useful for lightweight triage agents or escalations to more capable models). Recommended pattern: 1. Configure the default LLM in the
AgentSession
. 2. Give an
Agent
its own
llm
only when you need specialized behavior or different model capability for that agent. If you want, tell me your workflow (how many agent types, when you hand off) and I’ll suggest which agents should override the session LLM. Sources: Models | LiveKit Docs | Agents and handoffs | LiveKit docs