StopReason class final
Reasons why an agent stops active session work.
See protocol docs: Stop Reasons
- Implemented types
Constructors
- StopReason(String value)
-
Validates and creates a StopReason value.
factory
- StopReason.fromJson(Object? json)
-
Decodes a wire string.
factory
Properties
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toAcpJson(
) → AcpJsonString -
Converts this protocol value to its immutable JSON representation.
override
-
toJson(
) → String - Encodes the wire string.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
override
Constants
- cancelled → const StopReason
-
The
cancelledschema value. - endTurn → const StopReason
-
The
end_turnschema value. - maxTokens → const StopReason
-
The
max_tokensschema value. - maxTurnRequests → const StopReason
-
The
max_turn_requestsschema value. - refusal → const StopReason
-
The
refusalschema value.