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(Map<
String, dynamic> json) -
factory
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- model → String
-
Required. The name of the
Modelto use for generating the embedding. Examples: models/embedding-gecko-001final - qualifiedName → String
-
The fully qualified name of this message, i.e.,
google.protobuf.Durationorgoogle.rpc.ErrorInfo.finalinherited -
requests
→ List<
EmbedTextRequest> -
Optional. Embed requests for the batch. Only one of
textsorrequestscan 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