anthropic.LLM() to your agent for streaming responses and function calling.
Vision Agents uses Stream Video for real-time WebRTC transport by default. External WebRTC transports are supported as well. Most AI providers offer free tiers to get started.
Get an Anthropic API key from the Anthropic Console.
Installation
Quick Start
Parameters
| Name | Type | Default | Description |
|---|---|---|---|
model | str | "claude-sonnet-4-6" | Any Claude model — see model overview. |
api_key | str | None | Anthropic API key (defaults to ANTHROPIC_API_KEY env var). |
client | AsyncAnthropic | None | Bring your own Anthropic client instance instead of letting the plugin construct one. |
tools_max_rounds | int | 3 | Maximum multi-hop tool-calling rounds before the LLM is forced to produce a final response. |
Function Calling
Register Python functions withllm.register_function and Claude will call them when the model decides they’re needed:
anthropic.LLM() with a separate STT and TTS plugin for voice.
Next Steps
Build a Voice Agent
Get started with voice
Tools & Knowledge
Add function calling and RAG