ModelMetadataEvent
Defined in: src/models/streaming.ts:257
Event containing metadata about the stream. Includes usage statistics, performance metrics, and trace information.
Implements
Section titled “Implements”Constructors
Section titled “Constructors”Constructor
Section titled “Constructor”new ModelMetadataEvent(data): ModelMetadataEvent;Defined in: src/models/streaming.ts:278
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
data | ModelMetadataEventData |
Returns
Section titled “Returns”ModelMetadataEvent
Properties
Section titled “Properties”readonly type: "modelMetadataEvent";Defined in: src/models/streaming.ts:261
Discriminator for metadata events.
Implementation of
Section titled “Implementation of”usage?
Section titled “usage?”readonly optional usage?: Usage;Defined in: src/models/streaming.ts:266
Token usage information.
Implementation of
Section titled “Implementation of”metrics?
Section titled “metrics?”readonly optional metrics?: Metrics;Defined in: src/models/streaming.ts:271
Performance metrics.
Implementation of
Section titled “Implementation of”ModelMetadataEventData.metrics
trace?
Section titled “trace?”readonly optional trace?: unknown;Defined in: src/models/streaming.ts:276
Trace information for observability.