UNPKG

@openai/agents-openai

Version:

The OpenAI Agents SDK is a lightweight yet powerful framework for building multi-agent workflows.

10 lines (9 loc) • 485 B
import type { Stream } from 'openai/streaming'; import { protocol } from '@openai/agents-core'; import { ChatCompletion, ChatCompletionChunk } from 'openai/resources/chat'; export declare function convertChatCompletionsStreamToResponses(response: ChatCompletion, stream: Stream<ChatCompletionChunk>, options?: { strictFeatureValidation?: boolean; preserveRawUsage?: boolean; requireFinishReason?: boolean; signal?: AbortSignal; }): AsyncIterable<protocol.StreamEvent>;