import Anthropic from "@anthropic-ai/sdk"; import type { SimpleStreamOptions, StreamFunction, StreamOptions } from "../types.js"; export type AnthropicEffort = "low" | "medium" | "high" | "max"; export interface AnthropicOptions extends StreamOptions { /** * Enable extended thinking. * Opus/Sonnet 4.6–4.x and Claude 5 families use adaptive thinking * (the model decides when/how much to think); older models use a token budget. */ thinkingEnabled?: boolean; /** * Token budget for extended thinking (older models only). * Ignored by adaptive-thinking Opus/Sonnet 4.6–4.x and Claude 5 families. */ thinkingBudgetTokens?: number; /** * Effort level for adaptive-thinking Opus/Sonnet 4.6–4.x and Claude 5 families. * Controls how much thinking Claude allocates: * - "max": Always thinks with no constraints (Opus 4.6–4.x and Claude 5 families) * - "high": Always thinks, deep reasoning (default) * - "medium": Moderate thinking, may skip for simple queries * - "low": Minimal thinking, skips for simple tasks * Ignored for older models. */ effort?: AnthropicEffort; /** * Controls whether thinking text is returned for adaptive-thinking Opus/Sonnet * 4.6–4.x and Claude 5 families. "summarized" returns visible thinking; "omitted" * returns only an encrypted signature. When unset, the API default applies * (Opus 4.7+ default to "omitted"). */ thinkingDisplay?: "summarized" | "omitted"; interleavedThinking?: boolean; toolChoice?: "auto" | "any" | "none" | { type: "tool"; name: string; }; /** * Pre-built Anthropic client instance. When provided, skips internal client * construction entirely. Use this to inject alternative SDK clients such as * `AnthropicVertex` that shares the same messaging API. */ client?: Anthropic; } export declare const streamAnthropic: StreamFunction<"anthropic-messages", AnthropicOptions>; export declare const streamSimpleAnthropic: StreamFunction<"anthropic-messages", SimpleStreamOptions>; //# sourceMappingURL=anthropic.d.ts.map