Skip to main content

Crate armillae_llm

Crate armillae_llm 

Source
Expand description

Runtime-independent LLM Bridge contracts and implementations.

Structs§

BridgeCapabilities
Provider and model capabilities used for local request preflight.
BridgeConfig
Serializable configuration for constructing one LLM Bridge.
BridgeConfigBuilder
A Rust builder producing the same validated configuration model as TOML and JSON.
BridgeResolveContext
Optional host-owned services and policies used while resolving a Bridge configuration.
CompatibilityFact
A safe, content-free fact produced by target Provider projection.
ErrorMetadata
Safe, normalized facts attached to a Provider failure.
MessageContentLocation
The canonical message/content position associated with a compatibility fact.
OutputFormatCapabilities
Structured-output modes supported by a Bridge.
OutputValidation
A compiled final-response check shared by Drivers and mocks.
ProjectionReport
The observable result of projecting one canonical request to a target Provider.
ResolvedBridgeConfig
A validated Bridge configuration paired with its non-serializable Secret.
ToolChoiceCapabilities
Tool-choice modes supported by a Bridge.
TransportConfig
Network transport settings independent of generation and retry policy.

Enums§

BridgeError
A normalized failure from Bridge construction or one model call.
CompatibilityAction
An explicit action taken while projecting a canonical request.
CredentialRef
A serializable reference to a credential, never the Secret value itself.
StructuredOutputErrorKind
Content-free failure facts; never includes schema or generated values.
TransportErrorKind
Fixed diagnostic categories; never contains a raw client error or URL.

Constants§

BRIDGE_CONFIG_API_VERSION

Traits§

BridgeFactory
Constructs a runtime-selected Bridge from validated, resolved configuration.
EndpointPolicy
An optional host restriction applied after structural endpoint validation.
LlmBridge
A runtime-selected Bridge that performs exactly one model call.
SecretResolver
A host-provided asynchronous resolver for named Secret references.

Type Aliases§

BoxFuture
An owned dynamically typed Future for use in cases where you can’t statically type your result or need to add some indirection.
CompletionStream
A boxed semantic completion-event stream.
SecretString
Secret string type.