UNPKG

openai

Version:

The official TypeScript library for the OpenAI API

15 lines • 731 B
import type { AgentSessionEvent } from "../../../resources/beta/agents/agents.js"; import type { AgentTurnResult } from "./agent-turn-result.js"; import { AgentTurnResultCollector } from "./agent-turn-result-collector.js"; /** Shares collection between a raw creation stream and the follow-up helper. * @internal */ export declare class ResultCollection { #private; readonly collector: AgentTurnResultCollector; constructor(source: () => AsyncIterator<AgentSessionEvent>, canHandle?: (name: string) => boolean, sessionID?: string, signal?: AbortSignal); enable(): void; iterate(): AsyncIterator<AgentSessionEvent>; finalResult(): Promise<AgentTurnResult>; } //# sourceMappingURL=result-collection.d.ts.map