Package-level declarations

Types

Link copied to clipboard
@Serializable
data class EmbeddingRequest(val model: String, val prompt: String)

Represents a request to generate an embedding using a specific model.

Link copied to clipboard
@Serializable
data class EmbeddingResponse(val embedding: List<Double>, val modelId: String? = null)

Represents the response for an embedding operation, containing the result of the operation.

Link copied to clipboard
@Serializable
data class OllamaChatMessageDTO(val role: String, val content: String, val images: List<String>? = null, val toolCalls: List<OllamaToolCallDTO>? = null)

Message for the chat API.

Link copied to clipboard
@Serializable
data class OllamaChatRequestDTO(val model: String, val messages: List<OllamaChatMessageDTO>, val tools: List<OllamaToolDTO>? = null, val format: JsonElement? = null, val options: OllamaChatRequestDTO.Options? = null, val stream: Boolean, val keepAlive: String? = null)

Request for the /api/chat endpoint.

Link copied to clipboard
@Serializable
data class OllamaChatResponseDTO(val model: String, val message: OllamaChatMessageDTO? = null, val done: Boolean)

Response from the /api/chat endpoint.

Link copied to clipboard
@Serializable
data class OllamaToolCallDTO(val function: OllamaToolCallDTO.Call)

Tool call for the chat API.

Link copied to clipboard
@Serializable
data class OllamaToolDTO(val type: String, val function: OllamaToolDTO.Definition)

Tool definition for the chat API.