/** * @license * Copyright 2025 Steven Roussey * SPDX-License-Identifier: Apache-2.0 */ import type { AiProviderRunFn, ToolCallingTaskInput, ToolCallingTaskOutput } from "@workglow/ai"; import type { OpenAiModelConfig } from "./OpenAI_ModelSchema"; /** * Streaming run-fn for `["text.generation", "tool-use"]`. Calls the OpenAI * Responses endpoint with `stream: true` and forwards delta events via * {@link accumulateOpenAIResponsesStream}, which emits `text-delta` and tool-call * `object-delta` events plus a final empty `finish`. * * Defence-in-depth: each tool-call `object-delta` is filtered against the * effective tool declarations (the caller's tools, or the checkpoint prefix's * on fallback) so a hallucinated function name never reaches the consumer. */ export declare const OpenAI_ToolCalling_Stream: AiProviderRunFn;