Interface: ModelTurnResponse
Defined in: ports/model-turn-response.ts:25
Response returned by a single ModelDriver.invokeTurn() call.
Pairs the raw UTF-8 vendor wire bytes with the canonical message projection, optional parsed structured output, and token usage metrics.
Properties
| Property | Modifier | Type | Description | Defined in |
|---|---|---|---|---|
canonical | readonly | CanonicalMessage | Vendor-neutral canonical message projection of the assistant response. | ports/model-turn-response.ts:29 |
structuredOutput? | readonly | unknown | Parsed structured output object (populated only when canonical.toolCalls is empty). | ports/model-turn-response.ts:31 |
usage | readonly | ModelUsageMetrics | Token usage and USD cost metrics for the turn. | ports/model-turn-response.ts:33 |
wireFrame | readonly | Uint8Array | Raw UTF-8 provider wire JSON bytes preserving vendor reasoning signatures. | ports/model-turn-response.ts:27 |