Skip to content

AgentResponseMessage

Base classes

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

⋔ Inheritance diagram

graph TD
  95970859837168["messages.AgentResponseMessage"]
  95970860198832["messages.JsonRPCMessage"]
  95970862254416["base.Schema"]
  95970851503232["main.BaseModel"]
  125067848591872["builtins.object"]
  95970860198832 --> 95970859837168
  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 AgentResponseMessage(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: AgentResponse | Any
    """All possible responses that an agent can send to a client.

    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 `ClientRequest` variants."""

id class-attribute instance-attribute

id: int | str | None = None

JSON RPC Request Id.

result instance-attribute

result: AgentResponse | Any

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

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 ClientRequest variants.

:fa-brands-github: Show source on GitHub