Anvia
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

CapabilityExample
Completionanthropic.completionModel("claude-sonnet-4-5")
Tool useSupported through Anvia tools
StreamingSupported through normalized streaming events

Credentials are passed explicitly to the constructor. Anvia does not read environment variables.