Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions src/a2a/compat/v0_3/jsonrpc_adapter.py
Comment thread
guglielmo-san marked this conversation as resolved.
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ class JSONRPC03Adapter:
'tasks/pushNotificationConfig/list': types_v03.ListTaskPushNotificationConfigRequest,
'tasks/pushNotificationConfig/delete': types_v03.DeleteTaskPushNotificationConfigRequest,
'tasks/resubscribe': types_v03.TaskResubscriptionRequest,
'agent/authenticatedExtendedCard': types_v03.GetAuthenticatedExtendedCardRequest,
'agent/getAuthenticatedExtendedCard': types_v03.GetAuthenticatedExtendedCardRequest,
}

def __init__( # noqa: PLR0913
Expand Down Expand Up @@ -225,7 +225,7 @@ async def _process_non_streaming_request(
id=request_id, result=None
)
)
elif method == 'agent/authenticatedExtendedCard':
elif method == 'agent/getAuthenticatedExtendedCard':
res_card = await self.get_authenticated_extended_card(
request_obj, context
)
Expand All @@ -248,7 +248,7 @@ async def get_authenticated_extended_card(
request: types_v03.GetAuthenticatedExtendedCardRequest,
context: ServerCallContext,
) -> types_v03.AgentCard:
"""Handles the 'agent/authenticatedExtendedCard' JSON-RPC method."""
"""Handles the 'agent/getAuthenticatedExtendedCard' JSON-RPC method."""
if not self.agent_card.capabilities.extended_agent_card:
raise ExtendedAgentCardNotConfiguredError(
message='Authenticated card not supported'
Expand Down
2 changes: 1 addition & 1 deletion src/a2a/compat/v0_3/jsonrpc_transport.py
Original file line number Diff line number Diff line change
Expand Up @@ -376,7 +376,7 @@ async def get_extended_agent_card(
return card

rpc_request = JSONRPC20Request(
method='agent/authenticatedExtendedCard',
method='agent/getAuthenticatedExtendedCard',
params={},
_id=str(uuid4()),
)
Expand Down
Loading