Skip to main content

Crate provider_core

Crate provider_core 

Source
Expand description

Deterministic credential-free transformed provider used only by M1 tests.

Modules§

anthropic_chat
Anthropic Messages API adapter (PRD-001y S2) serving the claude_subscription and claude_api phases.
catalog
Provider-native catalog normalization and immutable last-known-good state.
catalog_authority
Offline verification checkpoint for ADR-002 signed catalog-authority envelopes.
catalog_authority_payload
Canonical typed payloads for the ADR-002 R1 catalog authority envelopes.
catalog_discovery
Bounded, read-only provider catalog discovery.
gemini_chat
Gemini generateContent adapter (PRD-001y S2) serving the gemini_subscription and gemini_api phases.
http_transport
Transport-independent, injected HTTP seam for provider request specifications.
local_credential_store
Device-local credential files addressed only by opaque references.
local_credential_types
Platform-neutral public types for the device-local credential store.
ollama_chat
Transport-independent Ollama /api/chat request and NDJSON contracts.
openai_compat_chat
Transport-independent OpenAI-compatible Chat Completions adapter shared by the follow-on providers (PRD-001s) and the DeepSeek direct API phase (PRD-001y S1): Qwen/DashScope, xAI Grok, Z.ai/GLM, Moonshot/Kimi, and DeepSeek (api.deepseek.com).
openrouter_chat
Transport-independent OpenRouter Chat Completions request and SSE contracts.
usage_ledger
Per-credential usage accounting (PRD-001s AC-08).

Structs§

AdapterCapabilityDispositions
BoundFixtureContinuityAdapter
FixtureContinuityAdapter
FixtureProvider
PreparedAttempt
PreparedProviderDispatch
ProviderRoute
RawProviderResponse
ToolSelectionDiagnostics
TransformedFixtureRequest

Enums§

AdapterBoundaryError
AdapterDisposition
FailureClass
FixtureAdapterKind
FixtureBehavior
ProviderFailureEvidence
ReviewedSafeCategory
ToolSelectionStage

Traits§

ProviderAdapter

Functions§

classify_failure
classify_raw_provider_response
event_stream_is_retryable