ModelMetadataEvent
Defined in: src/models/streaming.ts:235
Event containing metadata about the stream. Includes usage statistics, performance metrics, and trace information.
Implements
Section titled “Implements”Properties
Section titled “Properties”readonly type: "modelMetadataEvent";Defined in: src/models/streaming.ts:239
Discriminator for metadata events.
Implementation of
Section titled “Implementation of”ModelMetadataEventData.typeusage?
Section titled “usage?”readonly optional usage: Usage;Defined in: src/models/streaming.ts:244
Token usage information.
Implementation of
Section titled “Implementation of”ModelMetadataEventData.usagemetrics?
Section titled “metrics?”readonly optional metrics: Metrics;Defined in: src/models/streaming.ts:249
Performance metrics.
Implementation of
Section titled “Implementation of”ModelMetadataEventData.metricstrace?
Section titled “trace?”readonly optional trace: unknown;Defined in: src/models/streaming.ts:254
Trace information for observability.
Implementation of
Section titled “Implementation of”ModelMetadataEventData.trace