Skip to content

JsonRPCMessage

Sub classes

Name Children Inherits
ClientNotificationMessage
aclientp.schema.messages
A message (request, response, or notification) with `"jsonrpc": "2.0"`.
    ClientResponseMessage
    aclientp.schema.messages
    A message (request, response, or notification) with `"jsonrpc": "2.0"`.
      AgentResponseMessage
      aclientp.schema.messages
      A message (request, response, or notification) with `"jsonrpc": "2.0"`.
        ClientRequestMessage
        aclientp.schema.messages
        A message (request, response, or notification) with `"jsonrpc": "2.0"`.
          AgentRequestMessage
          aclientp.schema.messages
          A message (request, response, or notification) with `"jsonrpc": "2.0"`.
            AgentNotificationMessage
            aclientp.schema.messages
            A message (request, response, or notification) with `"jsonrpc": "2.0"`.
              ErrorMessage
              aclientp.schema.messages
              A message (request, response, or notification) with `"jsonrpc": "2.0"`.

                Base classes

                Name Children Inherits
                Schema
                aclientp.schema.base
                Base class for generated models.

                ⋔ Inheritance diagram

                graph TD
                  95970860198832["messages.JsonRPCMessage"]
                  95970862254416["base.Schema"]
                  95970851503232["main.BaseModel"]
                  125067848591872["builtins.object"]
                  95970862254416 --> 95970860198832
                  95970851503232 --> 95970862254416
                  125067848591872 --> 95970851503232

                🛈 DocStrings

                Bases: Schema

                JSON-RPC 2.0 message.

                Source code in src/aclientp/schema/messages.py
                class JsonRPCMessage(Schema):
                    """JSON-RPC 2.0 message."""
                
                    jsonrpc: Literal["2.0"] = Field(default="2.0", init=False)
                    """JSON RPC Messsage."""
                

                jsonrpc class-attribute instance-attribute

                jsonrpc: Literal['2.0'] = Field(default='2.0', init=False)
                

                JSON RPC Messsage.

                :fa-brands-github: Show source on GitHub