Expand description
Bounded server projections over Siumai’s provider-neutral runtime.
This crate owns the downstream trust boundary, finite ingress limits, safe HTTP responses, and canonical stream projection. It does not own a second tool loop or provider-native protocol codec.
Modules§
- axum
- Axum ingress and canonical response projection.
Structs§
- Gateway
Event - Stable JSON envelope used by server adapters.
- Gateway
Header Policy - Allow/deny policy for optional Siumai-owned response headers.
- Gateway
Limits - Finite ingress, upstream, and projection limits.
- Gateway
Loss - Bounded diagnostic describing one intentionally omitted value.
- Gateway
Policy - Complete server-side ingress and projection policy.
- Gateway
Stream Policy - Timers owned by the downstream SSE projection.
- Server
Gateway - Clone-cheap server route over one model and one shared runtime.
- Server
Trust Context - Host-authenticated identity and route binding for a server request.
Enums§
- Gateway
Error Detail - Detail level used by HTTP-facing error messages.
- Gateway
Loss Policy - Server behavior when a canonical value cannot be projected without loss.
- Gateway
Policy Error - Gateway
Projection Error - Failure to project a canonical value into the public gateway vocabulary.
- Server
Gateway Error - Server gateway configuration or runtime failure.
Constants§
- DEFAULT_
JSON_ RESPONSE_ LIMIT_ BYTES - DEFAULT_
REQUEST_ BODY_ LIMIT_ BYTES - DEFAULT_
SSE_ EVENT_ LIMIT_ BYTES - DEFAULT_
UPSTREAM_ BODY_ LIMIT_ BYTES - MAX_
RESPONSE_ HEADER_ RULES - MAX_
SERVER_ BODY_ LIMIT_ BYTES - MIN_
SERVER_ RESPONSE_ LIMIT_ BYTES
Traits§
- Trusted
Approval Decider - Host policy for a required local tool call under an authenticated request.