Skip to content

Commit 0c8cc7f

Browse files
committed
fix jsonrpc method name
1 parent 418a433 commit 0c8cc7f

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

src/a2a/compat/v0_3/jsonrpc_adapter.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ class JSONRPC03Adapter:
5959
'tasks/pushNotificationConfig/list': types_v03.ListTaskPushNotificationConfigRequest,
6060
'tasks/pushNotificationConfig/delete': types_v03.DeleteTaskPushNotificationConfigRequest,
6161
'tasks/resubscribe': types_v03.TaskResubscriptionRequest,
62-
'agent/authenticatedExtendedCard': types_v03.GetAuthenticatedExtendedCardRequest,
62+
'agent/getAuthenticatedExtendedCard': types_v03.GetAuthenticatedExtendedCardRequest,
6363
}
6464

6565
def __init__( # noqa: PLR0913
@@ -225,7 +225,7 @@ async def _process_non_streaming_request(
225225
id=request_id, result=None
226226
)
227227
)
228-
elif method == 'agent/authenticatedExtendedCard':
228+
elif method == 'agent/getAuthenticatedExtendedCard':
229229
res_card = await self.get_authenticated_extended_card(
230230
request_obj, context
231231
)
@@ -248,7 +248,7 @@ async def get_authenticated_extended_card(
248248
request: types_v03.GetAuthenticatedExtendedCardRequest,
249249
context: ServerCallContext,
250250
) -> types_v03.AgentCard:
251-
"""Handles the 'agent/authenticatedExtendedCard' JSON-RPC method."""
251+
"""Handles the 'agent/getAuthenticatedExtendedCard' JSON-RPC method."""
252252
if not self.agent_card.capabilities.extended_agent_card:
253253
raise ExtendedAgentCardNotConfiguredError(
254254
message='Authenticated card not supported'

src/a2a/compat/v0_3/jsonrpc_transport.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -376,7 +376,7 @@ async def get_extended_agent_card(
376376
return card
377377

378378
rpc_request = JSONRPC20Request(
379-
method='agent/authenticatedExtendedCard',
379+
method='agent/getAuthenticatedExtendedCard',
380380
params={},
381381
_id=str(uuid4()),
382382
)

0 commit comments

Comments
 (0)