Package-level declarations

Types

Link copied to clipboard
data class EmbeddingsRequest(val model: String, val input: List<String>, val truncate: Boolean? = true, val options: ModelOptions? = null, val keepAlive: String? = null)

Represents a request to generate embeddings for a single string or list of string inputs with a provided model.

Link copied to clipboard
data class EmbeddingsResponse(val embeddings: List<List<Float>>, val model: String, val createdAt: Instant, val totalDuration: Long? = null, val loadDuration: Long? = null, val promptEvalCount: Int? = null, val promptEvalDuration: Long? = null)

Represents a response from the embeddings endpoint.

Link copied to clipboard

OllamaEmbedBuildingStep is a specialized implementation of AbstractBuildingStep intended for constructing and managing embedding responses as part of the Ollama Mock Server setup.

Link copied to clipboard

Specification for matching embedding requests.

Link copied to clipboard
class OllamaEmbedResponseSpecification(var embeddings: List<List<Float>>? = null, var model: String? = null, delay: Duration = 0.seconds) : AbstractResponseSpecification<EmbeddingsRequest, EmbeddingsResponse>

Specification for configuring embedding responses.