BatchEmbedTextRequest class final

Batch request to get a text embedding from the model.

Inheritance
  • Object
  • ProtoMessage
  • BatchEmbedTextRequest

Constructors

BatchEmbedTextRequest({required String model, List<String> texts = const [], List<EmbedTextRequest> requests = const []})
BatchEmbedTextRequest.fromJson(Object? j)
factory

Properties

hashCode int
The hash code for this object.
no setterinherited
model String
Required. The name of the Model to use for generating the embedding. Examples: models/embedding-gecko-001
final
qualifiedName String
The fully qualified name of this message, i.e., google.protobuf.Duration or google.rpc.ErrorInfo.
finalinherited
requests List<EmbedTextRequest>
Optional. Embed requests for the batch. Only one of texts or requests can be set.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
texts List<String>
Optional. The free-form input texts that the model will turn into an embedding. The current limit is 100 texts, over which an error will be thrown.
final

Methods

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

Operators

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

Constants

fullyQualifiedName → const String