Skip to content

feat: add Data Engineering Agent A2A client example [2/2]#14387

Open
xtan999 wants to merge 2 commits into
GoogleCloudPlatform:mainfrom
xtan999:data-engineering-agent-client-complete
Open

feat: add Data Engineering Agent A2A client example [2/2]#14387
xtan999 wants to merge 2 commits into
GoogleCloudPlatform:mainfrom
xtan999:data-engineering-agent-client-complete

Conversation

@xtan999

@xtan999 xtan999 commented Jul 6, 2026

Copy link
Copy Markdown
Contributor

Description

Adds a sample Python client implementation using the Agent-to-Agent (A2A) protocol to interact with the Google Cloud Data Engineering Agent.

Key features:

  • A2A SDK integration for discovery and client creation.
  • ADC authentication support.
  • Multi-turn conversation state persistence via local tokens.
  • Handling of DEADLINE_EXCEEDED with automated resumption.
  • Support for custom agent instructions.

Fixes #14252

Checklist

Testing

  • [ x] I have tested this change on a live environment and verified it works as intended.

Compliance & Style


Post-Approval Actions

  • [ x] Please merge this PR for me once it is approved

@product-auto-label product-auto-label Bot added the samples Issues that are directly related to samples. label Jul 7, 2026

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Code Review

This pull request introduces a sample Python client for the Google Cloud Data Engineering Agent (DEA) using the Agent-to-Agent (A2A) protocol, complete with documentation and unit tests. The client supports session persistence, custom instruction loading, and automated resumption on deadline exceeded. The reviewer provided valuable feedback to improve the robustness of the implementation, including correcting the return type annotation of the main interaction function, implementing a retry limit to prevent infinite loops during repeated deadline exceeded errors, and handling potential file reading errors and hidden files when loading instructions.

Comment thread geminidataanalytics/dataengineeringagent/dea_a2a_client.py Outdated
Comment thread geminidataanalytics/dataengineeringagent/dea_a2a_client.py
Comment thread geminidataanalytics/dataengineeringagent/dea_a2a_client.py
Comment thread geminidataanalytics/dataengineeringagent/dea_a2a_client.py Outdated
@xtan999 xtan999 force-pushed the data-engineering-agent-client-complete branch from 513108b to 0cc0e3e Compare July 7, 2026 00:08
@xtan999 xtan999 marked this pull request as ready for review July 7, 2026 00:13
@xtan999 xtan999 requested review from a team as code owners July 7, 2026 00:13
@snippet-bot

snippet-bot Bot commented Jul 7, 2026

Copy link
Copy Markdown

Here is the summary of changes.

You are about to add 1 region tag.

This comment is generated by snippet-bot.
If you find problems with this result, please file an issue at:
https://github.com/googleapis/repo-automation-bots/issues.
To update this comment, add snippet-bot:force-run label or use the checkbox below:

  • Refresh this comment

@saurabh-net

Copy link
Copy Markdown

LGTM

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

samples Issues that are directly related to samples.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

feat(geminidataanalytics): Add Python A2A client sample for Data Engineering Agent

2 participants