Skip to content

JsonOutput

Base classes

Name Children Inherits
RootModel
pyt3client.tool

⋔ Inheritance diagram

graph TD
  106982416895008["tool.JsonOutput"]
  106982416889456["tool.RootModel[JsonValue]"]
  106982302604864["root_model.RootModel"]
  106982291377056["main.BaseModel"]
  129768776280576["builtins.object"]
  106982277958800["typing.Generic"]
  106982416889456 --> 106982416895008
  106982302604864 --> 106982416889456
  106982291377056 --> 106982302604864
  129768776280576 --> 106982291377056
  106982277958800 --> 106982302604864
  129768776280576 --> 106982277958800

🛈 DocStrings

Bases: RootModel[JsonValue]

Result of a tool whose server advertises no outputSchema.

Those tools (for example t3_pending_request or t3_queue) still answer with a JSON text block; it is decoded but not validated against a schema.

Source code in src/pyt3client/tool.py
16
17
18
19
20
21
class JsonOutput(RootModel[JsonValue]):
    """Result of a tool whose server advertises no `outputSchema`.

    Those tools (for example `t3_pending_request` or `t3_queue`) still answer
    with a JSON text block; it is decoded but not validated against a schema.
    """

:fa-brands-github: Show source on GitHub