TopLogprob class

Information about a top log probability token alternative.

Annotations
  • @immutable

Constructors

TopLogprob({required String token, required double logprob, List<int>? bytes})
Creates a TopLogprob.
const
TopLogprob.fromJson(Map<String, dynamic> json)
Creates a TopLogprob from JSON.
factory

Properties

bytes List<int>?
The UTF-8 bytes representation of the token.
final
hashCode int
The hash code for this object.
no setteroverride
logprob double
The log probability of this token.
final
probability double
The probability of this token (converted from log probability).
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
token String
The token string.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
Converts to JSON.
toString() String
A string representation of this object.
override

Operators

operator ==(Object other) bool
The equality operator.
override