The model identifier being used.
The API provider host.
Creates a streaming chat completion.
Optional connOptional extraOptional parallelOptional toolOptional toolMaps toolChoice to Anthropic's format:
"required" → { type: "any" }"none" → clears tools{ type: "function", function: { name } } → { type: "tool", name }Pre-warm connection to the LLM service.
Establishes DNS resolution and the TLS connection to the provider before the first inference request, reducing time-to-first-token on the initial reply. Non-blocking (fire-and-forget) and idempotent; calls made after aclose are ignored. Providers enable it by overriding _prewarmImpl.
Anthropic LLM provider for LiveKit Agents.
Remarks
Implements the llm.LLM interface using the Anthropic Messages API. Supports streaming, tool calling, and system prompt isolation required by Claude 3.5+ models.