Skip to content

ClientResponseMessage

Base classes

Name Children Inherits
JsonRPCMessage
aclientp.schema.messages
JSON-RPC 2.0 message.

⋔ Inheritance diagram

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

🛈 DocStrings

Bases: JsonRPCMessage

A message (request, response, or notification) with "jsonrpc": "2.0".

Specified as required by JSON-RPC 2.0 Specification.

Source code in src/aclientp/schema/messages.py
class ClientResponseMessage(JsonRPCMessage):
    """A message (request, response, or notification) with `"jsonrpc": "2.0"`.

    Specified as [required by JSON-RPC 2.0 Specification][1].

    [1]: https://www.jsonrpc.org/specification#compatibility
    """

    id: int | str | None = None
    """JSON RPC Request Id."""

    result: ClientResponse | Any
    """All possible responses that a client can send to an agent.

    This enum is used internally for routing RPC responses. You typically won't need
    to use this directly - the responses are handled automatically by the connection.
    These are responses to the corresponding `AgentRequest` variants."""

id class-attribute instance-attribute

id: int | str | None = None

JSON RPC Request Id.

result instance-attribute

result: ClientResponse | Any

All possible responses that a client can send to an agent.

This enum is used internally for routing RPC responses. You typically won't need to use this directly - the responses are handled automatically by the connection. These are responses to the corresponding AgentRequest variants.

:fa-brands-github: Show source on GitHub