Skip to main content

Module objects

Module objects 

Source
Expand description

Core gateway object records: requests, responses, runs, and events.

Structs§

GatewayEvent
Represents one event emitted during a GatewayRun.
GatewayRequest
Represents an inbound HTTP request to the OpenAI-compatible gateway.
GatewayResponse
Represents an HTTP response produced by the gateway.
GatewayResponseValue
Wraps a GatewayResponse as a runtime Object value.
GatewayRun
Represents a single gateway run: one accepted request being processed.

Constants§

GATEWAY_EVENT_OBJECT
Object-kind tag identifying a GatewayEvent in its Expr projection.
GATEWAY_REQUEST_OBJECT
Object-kind tag identifying a GatewayRequest in its Expr projection.
GATEWAY_RESPONSE_OBJECT
Object-kind tag identifying a GatewayResponse in its Expr projection.
GATEWAY_RUN_OBJECT
Object-kind tag identifying a GatewayRun in its Expr projection.

Functions§

content_id_expr
Projects a ContentId into an Expr map with its algorithm, raw bytes, and hex-encoded digest.
content_id_hex
Returns the lowercase hex encoding of a ContentId’s digest bytes.