Expand description
§acyclic-inference
Customer-side Inference SDK for immutable Context revisions, recoverable Runs, streamed events, and explicit warm retention. Context content operations do not imply a deployed inference service.
cargo add acyclic-inferenceConnect over authenticated HTTPS with Inference::connect(endpoint, api_key, ca_pem). Supply a trusted PEM CA when the service uses a private CA; transport validation remains enabled. Create or attach a Context, then use the typed operation builders to fork, edit, generate, and retain. Save the Run identity after admission so an interrupted caller can recover it. Warm commitments have their own inspect, renew, and release lifecycle.
See the Rust API, repository example, and customer protocol. Provider availability, model access, and billing are deployment-specific.
Modules§
- wire
- Generated customer contract and service traits, also used by deterministic mocks.
Structs§
- Context
- Immutable revision handle; cloning a handle does not create a fork or retention edge.
- Context
Mutation - Replayable mutation with a pre-dispatch command identity, not an execution retry.
- Create
Context - Replayable creation builder. Reusing it reconciles the same exact command.
- Create
Evaluation - Replayable immutable evaluation admission. Reusing this value reconciles the same candidate/suite/grader contract and never creates another evaluation.
- Evaluation
- Recoverable immutable evaluation handle.
- Generate
Run - Replayable Run admission builder. Reusing it reconciles one logical Run.
- Inference
- Authenticated customer connection; infrastructure remains entirely service-owned.
- Release
Warm - Replayable cleanup-complete release.
- Renew
Warm - Replayable warm renewal.
- Retain
Warm - Replayable warm admission. A failed observation must be reconciled by sending this same value, never by allocating another request identity.
- Retention
- Explicit customer warm-retention policy. Distribution and capacity remain service-owned; the opaque profile must come from model discovery.
- Run
- Recoverable logical Run. Cloning this handle never repeats execution.
- RunEvents
- Validating event-stream observation. Dropping it never cancels the Run.
- Warm
Context - Recoverable warm commitment. It never exposes physical placement or KV allocation identity and therefore remains valid through service rebalancing.
Enums§
- Error
- Transport or contract failure. Reuse the same builder to reconcile uncertainty.
Constants§
- DESCRIPTOR
- Customer-only reflection; no backend descriptors or implementation are packaged.
- MAXIMUM_
CA_ CERTIFICATE_ BYTES - Largest caller-supplied PEM trust bundle accepted by
Inference::connect. - MAXIMUM_
EVALUATION_ CANDIDATES - Maximum immutable candidates admitted by one evaluation.
- MAXIMUM_
EVALUATION_ CASES - Maximum ordered cases admitted by one evaluation suite.
- MAXIMUM_
EVALUATION_ METRICS - Maximum metric identities admitted by one evaluation.
- MAXIMUM_
EVALUATION_ RESULTS - Maximum materialized candidate/case results in one evaluation.
- MAXIMUM_
MESSAGE_ BYTES - Bounded customer transport ceiling, not a published retention entitlement.