Logprobs class

Log probability information for a token.

Provides detailed probability information for each token in the response, useful for understanding model confidence and debugging.

Annotations
  • @immutable

Constructors

Logprobs({List<TokenLogprob>? content, List<TokenLogprob>? refusal})
Creates a Logprobs.
const
Logprobs.fromJson(Map<String, dynamic> json)
Creates a Logprobs from JSON.
factory

Properties

content List<TokenLogprob>?
A list of message content tokens with log probability information.
final
hashCode int
The hash code for this object.
no setteroverride
refusal List<TokenLogprob>?
A list of message refusal tokens with log probability information.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

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