import type { ModelSettings, SerializedHandoff, SerializedOutputType, SerializedTool, StreamEvent } from '@openai/agents-core'; export type JsonValue = null | string | number | boolean | JsonValue[] | { [k: string]: JsonValue; }; export interface SerializedModelRequest { systemInstructions?: string; input: JsonValue; modelSettings: ModelSettings; tools: SerializedTool[]; toolsExplicitlyProvided?: boolean; outputType: SerializedOutputType; handoffs: SerializedHandoff[]; prompt?: JsonValue; previousResponseId?: string; conversationId?: string; tracing: JsonValue; overridePromptModel?: boolean; } export interface SerializedModelResponse { usage: JsonValue; output: JsonValue[]; responseId?: string; providerData?: Record; } export interface InvokeModelActivityInput { modelName: string; request: SerializedModelRequest; } export type SerializedStreamEvent = JsonValue; export declare function toSerializedStreamEvent(event: StreamEvent): SerializedStreamEvent; export declare function fromSerializedStreamEvent(event: SerializedStreamEvent): StreamEvent; export interface InvokeModelStreamActivityInput { modelName: string; request: SerializedModelRequest; streamingTopic: string; /** Stream publisher batch flush interval, as a Duration string. */ streamingBatchInterval?: string; }