SyniRuntimeResponse class

Schema-validated response from the runtime.

Constructors

SyniRuntimeResponse.fromJson(String json)
Parse a runtime response string.
factory

Properties

apiVersion → String?
final
data → dynamic
Parsed top-level map. Field set depends on the persona's response schema (chat_response, coach_response, suggestions, …).
final
fallbackReason → String?
Raw reason the model output was rejected (e.g. timeout), when isFallback. Null otherwise.
final
finishReason → String?
final
hashCode → int
The hash code for this object.
no setterinherited
isFallback → bool
True when the runtime substituted a deterministic fallback for unusable model output. Defaults to false — including for an older runtime that emits no meta (absence ⇒ treated as a genuine answer). Clients must use this instead of matching the fallback's English text.
final
provenance → SyniRuntimeProvenance?
final
rawJson → String
Raw JSON string returned by the runtime (already grammar-constrained and validated against the persona's output schema).
final
requestId → String?
final
retryable → bool
Whether the underlying failure behind a fallback was transient. False when isFallback is false.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
underlyingErrorCode → String?
Stable code classifying the underlying failure behind a fallback (INVALID_JSON, SCHEMA, TIMEOUT, …), when isFallback. Null otherwise.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited

Operators

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