IdGenerator class
Mints the thr_, trn_, msg_ and tc_ ids a chat uses. Inject one
with a seeded Random for reproducible ids.
Constructors
- IdGenerator({Random? random})
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
message(
) → String - A fresh message id.
-
next(
String prefix) → String -
prefixfollowed by 16 base62 characters. -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
thread(
) → String - A fresh thread id.
-
toolCall(
) → String - A fresh tool-call id, for a call the provider did not name.
-
toString(
) → String -
A string representation of this object.
inherited
-
turn(
) → String - A fresh turn id.
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited