AgentMessagePart class sealed

One piece of an Agent message's content.

A message is an ordered list of parts, like the AI SDK's UIMessage.parts: text, steps (reasoning), tool calls, sources and host data. Each part changes in place as the run advances, so a host maps its stream onto these values and rebuilds.

The type is sealed: a switch over a part is exhaustive.

Implementers
Annotations

Properties

hashCode → int
The hash code for this object.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

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