Skip to content

UnsupportedProtocolError

Base classes

Name Children Inherits
AgentError
acptui.protocol.connection
The agent could not be started or used; the message is meant for the user.

⋔ Inheritance diagram

graph TD
  107846717193040["connection.UnsupportedProtocolError"]
  107846717192048["connection.AgentError"]
  137699722739040["builtins.Exception"]
  137699722739904["builtins.BaseException"]
  137699722799616["builtins.object"]
  107846717192048 --> 107846717193040
  137699722739040 --> 107846717192048
  137699722739904 --> 137699722739040
  137699722799616 --> 137699722739904

🛈 DocStrings

Bases: AgentError

The agent does not speak ACP v2.

Source code in src/acptui/protocol/connection.py
class UnsupportedProtocolError(AgentError):
    """The agent does not speak ACP v2."""

    def __init__(self, agent_name: str, received: object) -> None:
        self.agent_name = agent_name
        self.received = received
        version = f"v{received}" if isinstance(received, int) else repr(received)
        super().__init__(
            f"{agent_name} speaks ACP {version}, but acptui only supports ACP v2.\n"
            "Update the agent (or its ACP adapter) to a version with ACP v2 support."
        )

:fa-brands-github: Show source on GitHub