SdkUserInput class
One user message for AgentSdkClient.streamQuery — the SDK's
SDKUserMessage input shape.
Constructors
-
SdkUserInput.blocks(List<
Map< blocks, {String? uuid})String, dynamic> > -
A message made of content blocks (
{'type': 'text', 'text': …}, images, …), passed through as given. - SdkUserInput.text(String text, {String? uuid})
-
A plain-text message.
const
Properties
- content → Object
-
The message content: a
String, or a list of content-block maps.final - hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- uuid → String?
-
Optional client uuid. The CLI echoes it on the result that answers this
message (
user_message_uuids), which lets a caller tell its own reply apart from a background-task follow-up.final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> -
The wire JSON (
type: 'user',message: {role, content}, …). -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited