EmbeddingsResult class
Result returned by embeddings providers.
- Inheritance
-
- Object
- LanguageModelResult<
List< double> > - EmbeddingsResult
Constructors
-
EmbeddingsResult.new({required List<
double> output, required FinishReason finishReason, required Map<String, dynamic> metadata, required LanguageModelUsage usage, String? id}) - Creates a new embeddings result instance.
Properties
-
embeddings
→ List<
double> -
The embedding vectors.
no setter
- finishReason → FinishReason
-
The reason the model stopped generating tokens.
finalinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
- id → String
-
Result id.
finalinherited
-
metadata
→ Map<
String, dynamic> -
Other metadata about the generation.
finalinherited
-
output
→ List<
double> -
Generated output.
finalinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- usage → LanguageModelUsage
-
Usage stats for the generation.
finalinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited