AnswerApiResult class
The API result of an answer task.
- Annotations
-
- @JsonSerializable()
Constructors
-
AnswerApiResult(dynamic completion, String model, String object, String? prompt, String searchModel, List<
AnswerDocument> selectedDocuments) -
AnswerApiResult.fromJson(Map<
String, dynamic> json) -
factory
Properties
- completion → dynamic
-
The unique id of this result, or if logProbs is given a Map.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- 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. "answer".
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
-
selectedDocuments
→ List<
AnswerDocument> -
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