Expand description
Runtime-independent LLM Bridge contracts and implementations.
Structs§
- Bridge
Capabilities - Provider and model capabilities used for local request preflight.
- Bridge
Config - Serializable configuration for constructing one LLM Bridge.
- Bridge
Config Builder - A Rust builder producing the same validated configuration model as TOML and JSON.
- Bridge
Resolve Context - Optional host-owned services and policies used while resolving a Bridge configuration.
- Compatibility
Fact - A safe, content-free fact produced by target Provider projection.
- Error
Metadata - Safe, normalized facts attached to a Provider failure.
- Message
Content Location - The canonical message/content position associated with a compatibility fact.
- Output
Format Capabilities - Structured-output modes supported by a Bridge.
- Output
Validation - A compiled final-response check shared by Drivers and mocks.
- Projection
Report - The observable result of projecting one canonical request to a target Provider.
- Resolved
Bridge Config - A validated Bridge configuration paired with its non-serializable Secret.
- Tool
Choice Capabilities - Tool-choice modes supported by a Bridge.
- Transport
Config - Network transport settings independent of generation and retry policy.
Enums§
- Bridge
Error - A normalized failure from Bridge construction or one model call.
- Compatibility
Action - An explicit action taken while projecting a canonical request.
- Credential
Ref - A serializable reference to a credential, never the Secret value itself.
- Structured
Output Error Kind - Content-free failure facts; never includes schema or generated values.
- Transport
Error Kind - Fixed diagnostic categories; never contains a raw client error or URL.
Constants§
Traits§
- Bridge
Factory - Constructs a runtime-selected Bridge from validated, resolved configuration.
- Endpoint
Policy - An optional host restriction applied after structural endpoint validation.
- LlmBridge
- A runtime-selected Bridge that performs exactly one model call.
- Secret
Resolver - A host-provided asynchronous resolver for named Secret references.
Type Aliases§
- BoxFuture
- An owned dynamically typed
Futurefor use in cases where you can’t statically type your result or need to add some indirection. - Completion
Stream - A boxed semantic completion-event stream.
- Secret
String - Secret string type.