SdkResultMessage class final

Mirrors SDKResultMessage (type: 'result', success or error subtype).

Inheritance

Constructors

SdkResultMessage(Map<String, dynamic> raw)

Properties

durationApiMs → int?
API duration in ms (duration_api_ms).
no setter
durationMs → int?
Total wall-clock duration in ms (duration_ms).
no setter
hashCode → int
The hash code for this object.
no setterinherited
isError → bool
Whether the run ended in error (is_error).
no setter
numTurns → int?
Number of model turns taken (num_turns).
no setter
raw → Map<String, dynamic>
The full original wire JSON for this message.
finalinherited
result → String?
The final textual result.
no setter
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
sessionId → String?
The session id the message belongs to (session_id).
no setterinherited
stopReason → String?
Stop reason reported by the model (stop_reason).
no setter
subtype → String?
success or error.
no setter
totalCostUsd → double?
Total cost of the run in USD (total_cost_usd).
no setter
type → String
The SDK type discriminator (assistant, user, result, …).
no setterinherited
usage → Map<String, dynamic>?
Aggregate token usage.
no setter
uuid → String?
The message's unique id (uuid).
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() → Map<String, dynamic>
Reproduces the original wire JSON verbatim.
inherited
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited