/** * @license * Copyright 2025 Steven Roussey * SPDX-License-Identifier: Apache-2.0 */ import type { AiProviderRunFn, TextGenerationTaskInput, TextGenerationTaskOutput } from "@workglow/ai"; import type { AnthropicModelConfig } from "./Anthropic_ModelSchema"; /** * Streaming run-fn for the `["text.generation"]` capability. Used by both * {@link TextGenerationTask} (prompt-only input) and {@link AiChatTask} * (full conversation history). Yields `text-delta` events on the `text` port * and a final empty `finish` event per the streaming convention (consumer * accumulates). * * Discriminates on `Array.isArray(input.messages) && input.messages.length > 0` * to choose the chat vs. prompt path — safe because AiChatTask always provides * `messages` and TextGenerationTask never does. */ export declare const Anthropic_TextGeneration_Stream: AiProviderRunFn;