Providers
Anthropic
Use Anthropic completion models with Anvia.
Use @anvia/anthropic when you want Anthropic completion models behind Anvia's normalized completion interface.
import { AgentBuilder } from "@anvia/core";
import { AnthropicClient } from "@anvia/anthropic";
const anthropic = new AnthropicClient({ apiKey });
const model = anthropic.completionModel("claude-sonnet-4-5");
const agent = new AgentBuilder("research", model)
.instructions("Answer with concise reasoning and cite uncertainty.")
.build();Models
| Capability | Example |
|---|---|
| Completion | anthropic.completionModel("claude-sonnet-4-5") |
| Tool use | Supported through Anvia tools |
| Streaming | Supported through normalized streaming events |
Credentials are passed explicitly to the constructor. Anvia does not read environment variables.
