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.
class documentation
class McpResponse: (source)
Compose protocol content without knowing the transport or DI container.
| Class Method | audio |
Encode raw audio bytes once. |
| Class Method | error |
Return an application-visible tool error, with an explicit safe message. |
| Class Method | image |
Encode raw image bytes once. |
| Class Method | progress |
Yield progress; the dispatcher suppresses it without client opt-in. |
| Class Method | resource |
Embed text or binary resource content at an explicit URI. |
| Class Method | resource |
Link to a resource without loading it. |
| Class Method | structured |
Return any JSON value and the recommended serialized text content. |
| Class Method | text |
Return text content. |
| Method | as |
Assign the assistant role for a prompt response. |
| Method | as |
Assign the user role for a prompt response. |
| Method | with |
Set audience, priority and modification hints on content blocks. |
| Method | with |
Attach application metadata to each content block. |
| Method | with |
Attach result metadata without allowing reserved protocol keys. |
| Class Variable | content |
Undocumented |
| Class Variable | is |
Undocumented |
| Class Variable | meta |
Undocumented |
| Class Variable | progress |
Undocumented |
| Class Variable | role |
Undocumented |
Return an application-visible tool error, with an explicit safe message.
| Parameters | |
message:str | Value supplied for message. |
| Returns | |
Self | An application-visible tool error, with an explicit safe message. |
def progress(cls, current:
float, total: float | None = None, message: str | None = None) -> Self:
(source)
¶
Yield progress; the dispatcher suppresses it without client opt-in.
| Parameters | |
current:float | Value supplied for current. |
total:float | None | Value supplied for total. |
message:str | None | Value supplied for message. |
| Returns | |
Self | Result of the operation described above. |
Embed text or binary resource content at an explicit URI.
| Parameters | |
uri:str | Value supplied for uri. |
value:str | bytes | Value to inspect, transform or validate. |
mimestr | None | Value supplied for mime_type. |
| Returns | |
Self | Result of the operation described above. |
def resourceLink(cls, uri:
str, name: str, *, title: str | None = None, description: str | None = None, mime_type: str | None = None) -> Self:
(source)
¶
Link to a resource without loading it.
| Parameters | |
uri:str | Value supplied for uri. |
name:str | Value supplied for name. |
title:str | None | Value supplied for title. |
description:str | None | Value supplied for description. |
mimestr | None | Value supplied for mime_type. |
| Returns | |
Self | Result of the operation described above. |
Return any JSON value and the recommended serialized text content.
| Parameters | |
value:object | Value to inspect, transform or validate. |
| Returns | |
Self | Any JSON value and the recommended serialized text content. |
Return text content.
| Parameters | |
value:str | Value to inspect, transform or validate. |
| Returns | |
Self | Text content. |
Set audience, priority and modification hints on content blocks.
| Parameters | |
annotations:ContentAnnotations | Value supplied for annotations. |
| Returns | |
Self | Result of the operation described above. |