THE ORIONIS API
Build with clarity.
Explore the building blocks of an async-first Python framework. Every module, class, and method — connected, searchable, and ready to build with.
module documentation
Undocumented
| Function | decode |
Parse a single UTF-8 JSON-RPC message without decoding its payload. |
| Function | decode |
Validate method-specific parameters and per-request metadata. |
| Function | encode |
Serialize only explicitly public exception fields. |
| Constant | _ENVELOPE |
Undocumented |
| Constant | METHOD |
Undocumented |
Parse a single UTF-8 JSON-RPC message without decoding its payload.
| Parameters | |
data:bytes | Value supplied for data. |
| Returns | |
JsonRpcRequest | Result of the operation described above. |
Validate method-specific parameters and per-request metadata.
| Parameters | |
request:JsonRpcRequest | Current request and its trusted execution context. |
| Returns | |
RequestParams | Result of the operation described above. |
def encode_error(exception:
McpProtocolException, request_id: str | int | msgspec.UnsetType = msgspec.UNSET) -> bytes:
(source)
¶
Serialize only explicitly public exception fields.
| Parameters | |
exception:McpProtocolException | Exception being inspected or reported. |
requeststr | int | msgspec.UnsetType | Value supplied for request_id. |
| Returns | |
bytes | Result of the operation described above. |
Undocumented
| Value |
|