GeneratedEmbeddings class

Represents a collection of generated embeddings.

Constructors

GeneratedEmbeddings([List<Embedding>? embeddings])
Creates a new GeneratedEmbeddings.

Properties

additionalProperties AdditionalPropertiesDictionary?
Additional properties.
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
isEmpty bool
Whether the collection is empty.
no setter
iterator Iterator<Embedding>
Returns an iterator over the embeddings.
no setter
length int
The number of embeddings.
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
usage UsageDetails?
Usage details for the embedding generation.
getter/setter pair

Methods

add(Embedding embedding) → void
Adds an embedding to the collection.
addAll(Iterable<Embedding> embeddings) → void
Adds all embeddings from embeddings.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toList() List<Embedding>
Returns the embeddings as a list.
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited
operator [](int index) Embedding
Access an embedding by index.