Skip to content

fix: suppress RemoteA2aAgent experimental warning log spam#1388

Open
jsonmp-k8 wants to merge 2 commits intokagent-dev:mainfrom
jsonmp-k8:fix/suppress-remote-a2a-experimental-warning-1379
Open

fix: suppress RemoteA2aAgent experimental warning log spam#1388
jsonmp-k8 wants to merge 2 commits intokagent-dev:mainfrom
jsonmp-k8:fix/suppress-remote-a2a-experimental-warning-1379

Conversation

@jsonmp-k8
Copy link
Contributor

Summary

  • Wraps RemoteA2aAgent instantiation in warnings.catch_warnings() to suppress the upstream google-adk experimental mode UserWarning that floods logs during A2A agent interactions
  • The suppression is scoped to only the RemoteA2aAgent constructor call site, not applied globally

Closes #1379

Test plan

  • Existing proxy/A2A tests pass (17 passed)
  • Deploy agents with A2A tools and verify experimental warnings no longer flood logs

Copilot AI review requested due to automatic review settings February 26, 2026 22:56
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR fixes log spam caused by experimental mode warnings from the google-adk library's RemoteA2aAgent class. The warning appears repeatedly during A2A agent interactions, flooding logs with notifications about the experimental status of the A2A implementation.

Changes:

  • Added warning suppression using warnings.catch_warnings() context manager around RemoteA2aAgent instantiation
  • Scoped the suppression to only the specific experimental warning message, not applied globally

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Wrap RemoteA2aAgent instantiation in warnings.catch_warnings() to
suppress the upstream google-adk experimental mode UserWarning that
floods logs during A2A agent interactions.

Closes kagent-dev#1379

Signed-off-by: Jaison Paul <paul.jaison@gmail.com>
Anchor the pattern to the start of the message to avoid accidentally
matching unrelated warnings.

Signed-off-by: Jaison Paul <paul.jaison@gmail.com>
@jsonmp-k8 jsonmp-k8 force-pushed the fix/suppress-remote-a2a-experimental-warning-1379 branch from 22b4533 to 4fc18ac Compare February 26, 2026 23:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[BUG] Warning - RemoteA2aAgent experimental mode log spam

2 participants