Skip to main content

Module provider

Module provider 

Source
Expand description

InferenceProvider trait and request/response types.

Providers are I/O only: inputs in, outputs + usage out. Task framing and response parsing belong to the adapter.

Structs§

InferenceParams
Parameters that shape a request and version the result cache.
InferenceRequest
One homogeneous batch of inputs for a single task and model.
InferenceResponse
Result of a batch inference call.
Usage
Token and cost accounting for a batch call. Local backends report Usage::ZERO.

Enums§

InferenceOutputs
Per-row outputs of a batch. Shape is homogeneous within a request.
ProviderError
Errors a provider can return for a batch call.

Traits§

InferenceProvider
I/O transport over a model backend. Shared as Arc<dyn InferenceProvider>; driven from Ring 1, never Ring 0.