Crate lib_client_ollama

Crate lib_client_ollama 

Source
Expand description

Ollama API client library.

A type-safe, async client for the Ollama REST API.

Structs§

ChatRequest
Request to generate a chat completion.
ChatResponse
Response from a chat completion.
Client
Ollama API client.
ClientBuilder
Client builder.
ErrorResponse
Error response from the API.
FunctionCall
Function call details.
FunctionDefinition
Function definition.
GenerateRequest
Request to generate a completion (non-chat).
GenerateResponse
Response from a generate request.
Message
A message in the conversation.
ModelDetails
Model details.
ModelInfo
Model information.
ModelList
List of models.
Options
Options for generation.
Tool
Tool definition.
ToolCall
Tool call made by the assistant.

Enums§

OllamaError
Ollama API error type.
Role
Message role.

Type Aliases§

Result
Result type alias for Ollama operations.