Skip to content

All messages converted to thoughts in a2a #3819

@mfojtak

Description

@mfojtak

Describe the bug
All messages are converted to thoughts when using a2a remote agent.

This is because:

if event.content and update.status.state in [
              TaskState.submitted,
              TaskState.working,
          ]:
            for part in event.content.parts:
              part.thought = True

code in agents/remote_a2a_agent.py

This is not appropriate as it converts genuine content messages into thoughs. Removing this code fixes the problem.

To Reproduce
Use remote a2a connection in version 1.20 or 1.19

Expected behavior
Nature of a2a should be respected and not blindly converting all of them to thoughts.

Screenshots
If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

  • OS: [e.g. macOS, Linux, Windows] Linux
  • Python version(python -V): 3.13
  • ADK version(pip show google-adk): 1.20

Model Information:

  • Are you using LiteLLM: Yes
  • Which model is being used(e.g. gemini-2.5-pro) - Bedrock

Additional context
Add any other context about the problem here.

Metadata

Metadata

Labels

a2a[Component] This issue is related a2a support inside ADK.needs review[Status] The PR/issue is awaiting review from the maintainer

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions