Use AnthropicChatAgent for conversational agents with streaming support.
import Anthropic from "@anthropic-ai/sdk"import { AnthropicChatAgent } from "@reminix/anthropic"import { serve } from "@reminix/runtime"const anthropic = new Anthropic()const chatbot = new AnthropicChatAgent(anthropic, { name: "chatbot", instructions: "You are a helpful assistant.",})serve({ agents: [chatbot] })
The default model is claude-sonnet-4-5-20250929. Override it with the model option:
const chatbot = new AnthropicChatAgent(anthropic, { name: "chatbot", model: "claude-opus-4-5-20250929", maxTokens: 8192, instructions: "You are a helpful assistant.",})