SdkMessage class sealed

A single message yielded by an Agent SDK query stream.

Mirrors SDKMessage. Use SdkMessage.fromJson to parse a wire payload into the appropriate typed subclass; toJson always reproduces raw.

Implementers

Constructors

SdkMessage.fromJson(Map<String, dynamic> json)
Parses json into the matching SdkMessage subclass.
factory

Properties

hashCode → int
The hash code for this object.
no setterinherited
raw → Map<String, dynamic>
The full original wire JSON for this message.
final
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 setter
type → String
The SDK type discriminator (assistant, user, result, …).
no setter
uuid → String?
The message's unique id (uuid).
no setter

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.
toString() → String
A string representation of this object.
inherited

Operators

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