Skip to main content

Crate siumai_server

Crate siumai_server 

Source
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§

GatewayEvent
Stable JSON envelope used by server adapters.
GatewayHeaderPolicy
Allow/deny policy for optional Siumai-owned response headers.
GatewayLimits
Finite ingress, upstream, and projection limits.
GatewayLoss
Bounded diagnostic describing one intentionally omitted value.
GatewayPolicy
Complete server-side ingress and projection policy.
GatewayStreamPolicy
Timers owned by the downstream SSE projection.
ServerGateway
Clone-cheap server route over one model and one shared runtime.
ServerTrustContext
Host-authenticated identity and route binding for a server request.

Enums§

GatewayErrorDetail
Detail level used by HTTP-facing error messages.
GatewayLossPolicy
Server behavior when a canonical value cannot be projected without loss.
GatewayPolicyError
GatewayProjectionError
Failure to project a canonical value into the public gateway vocabulary.
ServerGatewayError
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§

TrustedApprovalDecider
Host policy for a required local tool call under an authenticated request.