Skip to content

Validation Error in RemoteA2AAgent #2851

@Shreya-Shree47

Description

@Shreya-Shree47

Describe the bug
I have two scripts 'web_greeter.py' and 'tester.py'. In 'web_greeter.py', I have a remote Agent which is created using CrewAI. Then in 'tester.py', I have used 'RemoteA2AAgent' from google adk. Here by this, the request is being sent to the CrewAIAgent and the response is getting displayed in the CrewAIAgent terminal. But later getting the below error in the second script.

A2A request failed: 7 validation errors for SendMessageResponse
JSONRPCErrorResponse.error
  Field required [type=missing, input_value={'jsonrpc': '2.0', 'resul...47e8-8cf7-3569f854dbdc'}, input_type=dict]
    For further information visit https://errors.pydantic.dev/2.11/v/missing
SendMessageSuccessResponse.result.Task.contextId
  Field required [type=missing, input_value={'Task': {'id': '5284b570...ext'}]}, 'snapshot': {}}, input_type=dict]
    For further information visit https://errors.pydantic.dev/2.11/v/missing
SendMessageSuccessResponse.result.Task.id
  Field required [type=missing, input_value={'Task': {'id': '5284b570...ext'}]}, 'snapshot': {}}, input_type=dict]
    For further information visit https://errors.pydantic.dev/2.11/v/missing
SendMessageSuccessResponse.result.Task.status
  Field required [type=missing, input_value={'Task': {'id': '5284b570...ext'}]}, 'snapshot': {}}, input_type=dict]
    For further information visit https://errors.pydantic.dev/2.11/v/missing
SendMessageSuccessResponse.result.Message.messageId
  Field required [type=missing, input_value={'Task': {'id': '5284b570...ext'}]}, 'snapshot': {}}, input_type=dict]
    For further information visit https://errors.pydantic.dev/2.11/v/missing
SendMessageSuccessResponse.result.Message.parts
  Field required [type=missing, input_value={'Task': {'id': '5284b570...ext'}]}, 'snapshot': {}}, input_type=dict]
    For further information visit https://errors.pydantic.dev/2.11/v/missing
SendMessageSuccessResponse.result.Message.role
  Field required [type=missing, input_value={'Task': {'id': '5284b570...ext'}]}, 'snapshot': {}}, input_type=dict]
    For further information visit https://errors.pydantic.dev/2.11/v/missing

To Reproduce
Steps to reproduce the behavior:

  1. In Terminal1, run 'python web_greeter.py'
  2. In Termina2, run 'python tester.py'

Code:

web_greeter.py
tester.py

In Terminal1, I get the result

Image

But in Terminal2, I get the error

Image

Desktop (please complete the following information):

  • Python version(python -V): 3.12.11
  • ADK version(pip show google-adk): 1.13.0

Expected Doubt
Can 'RemoteA2AAgent' be used to call a other framework agents? Or is it specific to GoogleADK models alone?

Metadata

Metadata

Assignees

Labels

bot triaged[Bot] This issue is triaged by ADK botcore[Component] This issue is related to the core interface and implementation

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions