Skip to main content

Module grpc

Module grpc 

Source
Expand description

gRPC server implementation with dynamic schema support

Implements a gRPC server where the LLM provides protobuf schema definitions and controls RPC request/response handling through JSON.

Re-exports§

pub use value_codec::dynamic_message_to_json;
pub use value_codec::json_to_dynamic_message;
pub use value_codec::proto_value_to_json;

Modules§

actions
gRPC protocol actions implementation
http1
Shared affine body lifetime and HTTP header limits for native HTTP/1 RPC bindings.
stream_codec
Library-owned framing with the audited field-name JSON conversion for streaming RPCs.
value_codec
Bounded conversion of the field-name JSON representation used by both gRPC peers.

Structs§

GrpcServer
gRPC server with dynamic schema support

Enums§

GrpcStatus
gRPC status codes (google.rpc.Code) this server produces.

Constants§

MAX_REQUEST_BYTES
Largest request body buffered, before gRPC framing. Matches gRPC’s own default maxReceiveMessageLength of 4 MiB.

Functions§

grpc_status_for_llm_failure
The gRPC status a failed handler call must be reported as.
grpc_status_for_value_failure
Classify a peer value conversion refusal without exposing its data in an error header.