Skip to main content
Anthropic Claude is an LLM plugin. It takes the transcribed conversation and generates the reply, with support for tool calling, prompt caching, and extended thinking.

Setup

Set your Anthropic API key in the worker environment. Generate a key from the Anthropic console:

Usage

Import the plugin and pass it to the pipeline’s llm slot.

Configuration Options

Constructor parameters for AnthropicLLM. The Python and Node JS SDKs share these field names.

Core

Sampling

Advanced

For voice, short replies feel best. Keep max_tokens modest and the system instruction concise to keep latency down.

Import paths

The reply is streamed to the text-to-speech plugin, which synthesizes the agent’s voice.

Inference models

These Anthropic models also run through the Inference Gateway on your Zero Runtime auth token, with no Anthropic API key. Pass the model id to the same class imported from zeroruntime.inference (Python) or @zeroruntime/js-sdk/inference (Node JS).