Skip to main content

Type Alias: GatewayInferenceResponseStreamEvent

type GatewayInferenceResponseStreamEvent =
| GatewayInferenceResponseAudioDeltaEvent
| GatewayInferenceResponseAudioDoneEvent
| GatewayInferenceResponseAudioTranscriptDeltaEvent
| GatewayInferenceResponseAudioTranscriptDoneEvent
| GatewayInferenceResponseCodeInterpreterCallCodeDeltaEvent
| GatewayInferenceResponseCodeInterpreterCallCodeDoneEvent
| GatewayInferenceResponseCodeInterpreterCallCompletedEvent
| GatewayInferenceResponseCodeInterpreterCallInProgressEvent
| GatewayInferenceResponseCodeInterpreterCallInterpretingEvent
| GatewayInferenceResponseCompletedEvent
| GatewayInferenceResponseContentPartAddedEvent
| GatewayInferenceResponseContentPartDoneEvent
| GatewayInferenceResponseCreatedEvent
| GatewayInferenceResponseErrorEvent
| GatewayInferenceResponseFileSearchCallCompletedEvent
| GatewayInferenceResponseFileSearchCallInProgressEvent
| GatewayInferenceResponseFileSearchCallSearchingEvent
| GatewayInferenceResponseFunctionCallArgumentsDeltaEvent
| GatewayInferenceResponseFunctionCallArgumentsDoneEvent
| GatewayInferenceResponseInProgressEvent
| GatewayInferenceResponseFailedEvent
| GatewayInferenceResponseIncompleteEvent
| GatewayInferenceResponseOutputItemAddedEvent
| GatewayInferenceResponseOutputItemDoneEvent
| GatewayInferenceResponseRefusalDeltaEvent
| GatewayInferenceResponseRefusalDoneEvent
| GatewayInferenceResponseTextAnnotationDeltaEvent
| GatewayInferenceResponseTextDeltaEvent
| GatewayInferenceResponseTextDoneEvent
| GatewayInferenceResponseWebSearchCallCompletedEvent
| GatewayInferenceResponseWebSearchCallInProgressEvent
| GatewayInferenceResponseWebSearchCallSearchingEvent;

Defined in: src/models/ai-gateway-inference.ts:4400

Portkey ResponseStreamEvent; additive response fields are preserved.

Example​

`GatewayInferenceResponseStreamEventSchema.parse(value);`