From 914a7db44825fd9692dca073150f09a4964eaf9d Mon Sep 17 00:00:00 2001 From: Teknium Date: Sun, 5 Apr 2026 11:41:07 -0700 Subject: [PATCH] fix(acp): rename AuthMethod to AuthMethodAgent for agent-client-protocol 0.9.0 Straight rename to match the 0.9.0 API where AuthMethod was split into AuthMethodAgent, AuthMethodEnvVar, AuthMethodTerminal. Bump pin to >=0.9.0,<1.0. Co-authored-by: Mibayy --- acp_adapter/server.py | 4 ++-- pyproject.toml | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/acp_adapter/server.py b/acp_adapter/server.py index c5c29c5ad3..2e835afc21 100644 --- a/acp_adapter/server.py +++ b/acp_adapter/server.py @@ -12,7 +12,7 @@ import acp from acp.schema import ( AgentCapabilities, AuthenticateResponse, - AuthMethod, + AuthMethodAgent, ClientCapabilities, EmbeddedResourceContentBlock, ForkSessionResponse, @@ -177,7 +177,7 @@ class HermesACPAgent(acp.Agent): auth_methods = None if provider: auth_methods = [ - AuthMethod( + AuthMethodAgent( id=provider, name=f"{provider} runtime credentials", description=f"Authenticate Hermes using the currently configured {provider} runtime credentials.", diff --git a/pyproject.toml b/pyproject.toml index a36af37839..14a35607ab 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -61,7 +61,7 @@ honcho = ["honcho-ai>=2.0.1,<3"] mcp = ["mcp>=1.2.0,<2"] homeassistant = ["aiohttp>=3.9.0,<4"] sms = ["aiohttp>=3.9.0,<4"] -acp = ["agent-client-protocol>=0.8.1,<0.9"] +acp = ["agent-client-protocol>=0.9.0,<1.0"] dingtalk = ["dingtalk-stream>=0.1.0,<1"] feishu = ["lark-oapi>=1.5.3,<2"] rl = [