StreamToken class

Token from structured output stream Matches iOS StreamToken from Features/LLM/StructuredOutput/StreamToken.swift

Constructors

StreamToken({required String text, bool isFinal = false, int? index})
const

Properties

hashCode int
The hash code for this object.
no setterinherited
index int?
Token index in the stream
final
isFinal bool
Whether this is the final token
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
text String
The token text
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.
inherited