/** * @license * Copyright 2026 Steven Roussey * SPDX-License-Identifier: Apache-2.0 */ /** * Single source of truth for Anthropic's capability sets. * * Both `ANTHROPIC_RUN_FNS` (the worker-side registration list) and * `workerRunFnSpecs()` (the main-thread proxy declaration) derive their * `serves` arrays from these named exports. SDK-free so the main thread * can import without paying the Anthropic client cost. * * To add a new capability set: declare a new `as const` constant here, * then reference it from both `ANTHROPIC_RUN_FNS` and `ANTHROPIC_RUN_FN_SPECS`. * * Note: Anthropic does NOT support embeddings, image generation, or image editing. * Structured generation is implemented via Anthropic's tool-use API under the hood, * but it is registered under `["text.generation", "json-mode"]` per the capability * dispatch model so the consumer receives a parsed object in `finish.data.object`. */ export declare const ANTHROPIC_TEXT_GENERATION: ["text.generation"]; export declare const ANTHROPIC_TOOL_USE: ["text.generation", "tool-use"]; export declare const ANTHROPIC_JSON_MODE: ["text.generation", "json-mode"]; export declare const ANTHROPIC_TEXT_REWRITER: ["text.rewriter"]; export declare const ANTHROPIC_TEXT_SUMMARY: ["text.summary"]; export declare const ANTHROPIC_COUNT_TOKENS: ["model.count-tokens"]; export declare const ANTHROPIC_MODEL_SEARCH: ["model.search"]; export declare const ANTHROPIC_MODEL_INFO: ["model.info"]; export declare const ANTHROPIC_CACHE_CHECKPOINT: ["cache.checkpoint"]; /** Aggregated list — for `workerRunFnSpecs()` derivation. Order MUST match `ANTHROPIC_RUN_FNS`; validated by the `capability-set parity` test in `AnthropicProvider.test.ts`. */ export declare const ANTHROPIC_CAPABILITY_SETS: readonly [["text.generation"], ["text.generation", "tool-use"], ["text.generation", "json-mode"], ["text.rewriter"], ["text.summary"], ["model.count-tokens"], ["model.search"], ["model.info"], ["cache.checkpoint"]];