Adapters
Anthropic
Use the fromAnthropic adapter with the Anthropic API
import Anthropic from '@anthropic-ai/sdk';
import { VernLLM, fromAnthropic } from 'vern-llm';
const llm = new VernLLM({
client: fromAnthropic(new Anthropic({ apiKey: process.env.ANTHROPIC_API_KEY })),
model: 'claude-sonnet-4-6',
});Anthropic does not support OpenAI's response_format or reasoning_effort parameters directly.
JSON schema responses are mapped to Anthropic's native tool-use mechanism for provider-enforced
structured output. Plain JSON mode (json_object) uses prompt-based JSON instructions.
reasoning_effort is dropped.