LiveServerEventLiveSessionUsageUpdated interface
Reports cumulative Live audio usage and, when available, the most recent context-window usage. Delegated Responses token usage is reported separately in response.event events.
- Extends
Properties
| client_event_id | The event_id of the client command associated with this server event, when supplied. |
| context_window | The latest measured Live context-window usage. Omitted when the context limit is unknown. |
| event_id | The unique ID of the Live server event. |
| type | The event type, always |
| usage | The cumulative Live audio usage so far. |
Property Details
client_event_id
The event_id of the client command associated with this server event, when supplied.
client_event_id?: string
Property Value
string
context_window
The latest measured Live context-window usage. Omitted when the context limit is unknown.
context_window?: LiveContextWindowUsage
Property Value
event_id
The unique ID of the Live server event.
event_id: string
Property Value
string
type
The event type, always session.usage.updated.
type: "session.usage.updated"
Property Value
"session.usage.updated"