Ticket Conversation Metrics
OpenFrame Documentation
Get the most out of OpenFrame · Book 30 minutes with Conrad, 25 years in IT. He'll show you what Mingo and Fae can take off your list.
OpenFrame Documentation
Ticket Conversation Metrics models the AI-dialog fragment of a ticket response. It is part of Ticket Dto, supplied by the OpenFrame OSS Library test-service-core artifact.
| Component | Fields | Responsibility |
|---|---|---|
TicketDialog |
id, currentMode, tokenUsage |
Identifies a dialog, records its current mode, and groups token measurements. |
TicketTokenUsage |
chatType, inputTokensSize, outputTokensSize, totalTokensSize, contextSize |
Records token-volume and context measurements for a chat type. |
flowchart LR
Dialog["Ticket Dialog"] --> DialogId["Dialog ID"]
Dialog --> Mode["Current Mode"]
Dialog --> Usage["Token Usage List"]
Usage --> ChatType["Chat Type"]
Usage --> Input["Input Token Size"]
Usage --> Output["Output Token Size"]
Usage --> Total["Total Token Size"]
Usage --> Context["Context Size"]
TicketDialog contains a list rather than a single usage record, so a response can expose measurements for multiple chat types. The DTO does not calculate totals or validate relationships between the numeric values; it preserves the values delivered by the API for test assertions.
Both classes ignore unfamiliar JSON properties and include builders, no-argument constructors, and all-argument constructors. This supports JSON response binding alongside explicit test fixture construction. Token sizes are boxed Long values, allowing a response to omit a measurement without forcing a synthetic zero.