AiReply class

What the model returned for one request.

Constructors

AiReply({String? text, AiAction? action, String? refusal})
Creates a reply.
const

Properties

action AiAction?
The action it chose, when it called the tool.
final
hasAction bool
Whether the model chose a command to run.
no setter
hashCode int
The hash code for this object.
no setterinherited
refusal String?
Set when the provider declined the request outright.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
text String?
Free text from the model. Present when it answered instead of acting.
final

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