Skip to main content

Module dispatch

Module dispatch 

Expand description

ProviderDispatch — single source of truth for attribution_span! on the ModelProvider surface.

Structs§

AcceptedRoute
Immutable actual route of a transport-successful Reliable completion.
AccountedAttempt
One actual physical provider leaf, in first-poll order.
AccountedCallReport
Final immutable accounting projection for one dispatch-scoped call.
AccountedChatResponse
A successful response plus billed usage from Reliable attempts that were rejected before that response was accepted.
ProviderDispatch
Wraps a model provider so every call opens the correct attribution_span! automatically. See the module docs for the rationale and the CI gate that enforces routing through this type.
ProviderDispatchRef
RejectedAttempt
Immutable billing identity for one rejected attempt.

Enums§

AttemptUsageOutcome
Completeness of one physical provider attempt’s usage observation.
CallAccountingState
Derived completeness of all physical leaves in one call report.
InvalidUsageReason
Why a provider supplied usage observation cannot be billed as complete.

Functions§

commit_accepted_provider_route
Commit a semantically accepted route for the existing fallback presenter.