EmbedContentRequest

@Serializable
data class EmbedContentRequest(val content: Content, val model: String, val taskType: TaskType? = null, val title: String? = null)

Represents a request to embed content using a specified model, optionally including additional parameters such as task type and title.

Constructors

Link copied to clipboard
constructor(content: Content, model: String, taskType: TaskType? = null, title: String? = null)

Properties

Link copied to clipboard

The Content to be embedded. This encapsulates the actual data or text that needs to be processed by the embedding model.

Link copied to clipboard
val model: String

A string specifying the model to use for embedding. This identifies which pre-trained model or algorithm should process the content.

Link copied to clipboard
val taskType: TaskType? = null

An optional TaskType indicating the type of embedding task being requested. This can influence how the model processes the content.

Link copied to clipboard
val title: String? = null

An optional string providing a title or name for the embedding task. This can be useful for identifying the request or its purpose in logs or results.