ClassificationApiResult class

The API result of a classification task.

Annotations
  • @JsonSerializable()

Constructors

ClassificationApiResult(dynamic completion, String label, String model, String object, String? prompt, String searchModel, List<ClassificationExampleData> selectedExamples)
ClassificationApiResult.fromJson(Map<String, dynamic> json)
factory

Properties

completion → dynamic
The unique id of this result. In the case of logprobs != null or if the expand array contained "completion", this is a Map.
final
hashCode int
The hash code for this object.
no setterinherited
label String
The predicted label for the input query.
final
model String
The id of the engine or model used on the OpenAI backend.
final
object String
What kind of prompt this was, e.g. "classification".
final
prompt String?
The prompt that was given to the API. Only available when "return_prompt" was enabled.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
searchModel String
The name of the engine or model used on the OpenAI backend for the search.
final
selectedExamples List<ClassificationExampleData>
final

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