EmbedContentParametersPrivate

@Serializable
data class EmbedContentParametersPrivate(val model: String? = null, val contents: List<Content>? = null, val content: Content? = null, val embeddingApiType: EmbeddingApiType? = null, val config: EmbedContentConfig? = null)

Parameters for the _embed_content method.

Constructors

Link copied to clipboard
constructor(model: String? = null, contents: List<Content>? = null, content: Content? = null, embeddingApiType: EmbeddingApiType? = null, config: EmbedContentConfig? = null)

Properties

Link copied to clipboard

Configuration that contains optional parameters.

Link copied to clipboard
val content: Content? = null

The single content to embed. Only the parts.text fields will be counted.

Link copied to clipboard
val contents: List<Content>? = null

The content to embed. Only the parts.text fields will be counted.

Link copied to clipboard

The Gemini Enterprise Agent Platform embedding API to use.

Link copied to clipboard
val model: String? = null

ID of the model to use. For a list of models, see Google models <https://cloud.google.com/vertex-ai/generative-ai/docs/learn/models>_.