SdkUserMessage class final

Mirrors SDKUserMessage (type: 'user', incl. the replay variant).

Inheritance

Constructors

SdkUserMessage(Map<String, dynamic> raw)

Properties

content List<ContentBlock>
User content blocks when message.content is a block list (it may also be a plain string, in which case this is empty).
no setter
hashCode int
The hash code for this object.
no setterinherited
isReplay bool
Whether this is a replayed message (isReplay).
no setter
message Map<String, dynamic>?
The underlying Anthropic MessageParam.
no setter
parentToolUseId String?
Id of the parent tool use, if any.
no setter
raw Map<String, dynamic>
The full original wire JSON for this message.
finalinherited
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
type String
The SDK type discriminator (assistant, user, result, …).
no setterinherited
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