ORIONIS API REFERENCE

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 McpTestResponse: (source)

View In Hierarchy

Decoded result and notifications from a complete wire round trip.

Method assertOk Require a successful protocol and tool result.
Method assertTextContains Check returned tool text without bypassing response serialization.
Class Variable message Final decoded JSON-RPC response, or an empty mapping when none arrived.
Class Variable notifications Decoded notifications received before the final response.
def assertOk(self): (source)

Require a successful protocol and tool result.

Returns
NoneNo return value when the response succeeds.
Raises
AssertionErrorIf the result is absent, malformed, or reports a protocol or tool error.
def assertTextContains(self, text: str): (source)

Check returned tool text without bypassing response serialization.

Parameters
text:strSubstring required in at least one text content block.
Returns
NoneNo return value when a matching text block exists.
Raises
AssertionErrorIf no valid text block contains the requested substring.
message: dict[str, Any] = (source)

Final decoded JSON-RPC response, or an empty mapping when none arrived.

notifications: tuple[dict[str, object], ...] = (source)

Decoded notifications received before the final response.