AgentDataPart class final

Host data the conversation renders with a registered builder.

Maps the AI SDK's data-<name> parts. name selects the builder and is never shown to the reader.

Inheritance

Constructors

AgentDataPart({required String name, String? id, Object? data})
Creates a data part.
const

Properties

data → Object?
The payload for the builder.
final
hashCode → int
The hash code for this object.
no setteroverride
id → String?
Stable identity, when the host updates the part in place.
final
name → String
The key a host builder is registered under.
final
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.
override

Operators

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