AgentTextPart class final

Text the assistant wrote, usually markdown.

Inheritance

Constructors

AgentTextPart(String text, {AgentAnswerStatus status = AgentAnswerStatus.complete})
Creates a text part.
const

Properties

hashCode → int
The hash code for this object.
no setteroverride
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
status → AgentAnswerStatus
Whether the text is still streaming, finished or failed.
final
text → String
The text so far.
final

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