/** * @license * Copyright 2025 Steven Roussey * SPDX-License-Identifier: Apache-2.0 */ import type { AiProviderRunFn, StructuredGenerationTaskInput, StructuredGenerationTaskOutput } from "@workglow/ai"; import type { AnthropicModelConfig } from "./Anthropic_ModelSchema"; /** * Streaming run-fn for the `["text.generation", "json-mode"]` capability. * * Anthropic implements structured generation via tool-use under the hood: * a synthetic `structured_output` tool forces the model to emit JSON conforming * to the output schema. The `input_json_delta` stream events are fed to an * incremental parser and yielded as `object-delta` for consumers that want * progressive updates. The final `finish` event carries the parsed object in * `finish.data.object` per the streaming-convention exception for structured * generation: it is the definitive object `StructuredGenerationTask` validates * against the schema and retries on. */ export declare const Anthropic_StructuredGeneration_Stream: AiProviderRunFn;