Skip to content

StreamEventGenericItem

type StreamEventGenericItem = object;

Event returned for every item that gets streamed to the model. Used to expose the raw events from the model.

optional event: any;
optional providerData: Record<string, any>;

Additional optional provider specific data. Used for custom functionality or model provider specific fields.

type: "model";