Module traits

Module traits 

Source
Expand description

Core traits that every provider and model implementation must satisfy.

Structs§

GenerationOptions
Sampling and length parameters for text generation.
GenerationResult
The output of a text generation call.
ProviderCapabilities
Advertised capabilities of a ModelProvider.
ScoredDoc
A single scored document returned by a RerankerModel.
TokenUsage
Token counts for a generation request.

Enums§

ProviderHealth
Health status reported by a provider.

Traits§

EmbeddingModel
A model that produces dense vector embeddings from text.
GeneratorModel
A model that generates text from a conversational message history.
ModelProvider
A pluggable backend that knows how to load models for one or more ModelTask types.
RerankerModel
A model that re-scores documents against a query for relevance ranking.

Type Aliases§

LoadedModelHandle
A type-erased, reference-counted handle to a loaded model instance.