EmbedContentResponse

@Serializable
data class EmbedContentResponse(val sdkHttpResponse: HttpResponse? = null, val embeddings: List<ContentEmbedding>? = null, val metadata: EmbedContentMetadata? = null, val truncated: Boolean? = null, val usageMetadata: UsageMetadata? = null)

Response for the embed_content method.

Constructors

Link copied to clipboard
constructor(sdkHttpResponse: HttpResponse? = null, embeddings: List<ContentEmbedding>? = null, metadata: EmbedContentMetadata? = null, truncated: Boolean? = null, usageMetadata: UsageMetadata? = null)

Properties

Link copied to clipboard

The embeddings for each request, in the same order as provided in the batch request.

Link copied to clipboard

Gemini Enterprise Agent Platform only. Metadata about the request.

Link copied to clipboard

Used to retain the full HTTP response.

Link copied to clipboard
val truncated: Boolean? = null

Whether the input content was truncated before generating the embedding. This field is not supported in Gemini API.

Link copied to clipboard

Usage metadata about the response(s).