CompletionsDto class

Annotations
  • @JsonSerializable()

Constructors

CompletionsDto.new({required TokenUsageDto usage, required String id, required String model})
CompletionsDto.fromJson(Map<String, dynamic> json)
factory
CompletionsDto.fromModel(Completions completions)
factory

Properties

hashCode int
The hash code for this object.
no setterinherited
id String
When role is llm, this is current llm calling token usage
getter/setter pair
model String
When role is llm, this is current /chat/completions return message id
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
usage TokenUsageDto
getter/setter pair

Methods

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

Operators

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