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 | _common |
Validate annotations and metadata shared by content variants. |
| Function | _message |
Validate a prompt role and its single content block. |
| Function | _object |
Convert a public wire struct without a second JSON serialization. |
| Function | _result |
Check only dynamic application payloads; registry metadata is precompiled. |
| Function | _validate |
Check completion count and total bounds before serialization. |
| Function | validate |
Validate all five standard MCP content variants. |
| Function | validate |
Reject non-JSON values and nonfinite numbers rather than changing data. |
| Function | validate |
Check text/blob resource contents and their explicit URI. |
| Function | validate |
Reject invalid direct Struct construction and method/result mismatches. |
| Constant | _CONTENT |
Undocumented |
| Constant | _MAX |
Undocumented |
| Constant | _RESULT |
Undocumented |
Check completion count and total bounds before serialization.
| Parameters | |
result:CompleteCompletionResult | Completion response supplied by the application. |
| Returns | |
None | Completion values and total satisfy the protocol limits. |
| Raises | |
ValueError | If the number of values or declared total is invalid. |
Undocumented
| Value |
|
Undocumented
| Value |
|