Skip to content

chore(deps): Update python samples' optional deps - #191

Merged
holtskinner merged 6 commits into
a2aproject:mainfrom
darkhaniop:update-python-samples-http-deps
Jul 21, 2025
Merged

holtskinner merged 6 commits into
a2aproject:mainfrom
darkhaniop:update-python-samples-http-deps

Conversation

@darkhaniop

Copy link
Copy Markdown
Contributor

Description

In future versions of a2a-sdk, HTTP server packages may become optional. See a2aproject/a2a-python/pull/217 for details. This PR ensures that agents in samples/python/agents/ continue to work with future versions of a2a-sdk.


Thank you for opening a Pull Request!
Before submitting your PR, there are a few things you can do to make sure it goes smoothly:

Fixes #190 🦕

In future versions of a2a-sdk, HTTP server packages may become optional.
See a2aproject/a2a-python/pull/217 for details. This PR ensures that
agents in `samples/python/agents/` continue to work with the future
versions on a2a-sdk.

Refs a2aproject#190
@darkhaniop
darkhaniop requested a review from a team as a code owner July 2, 2025 15:54

@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.

Summary of Changes

Hello @darkhaniop, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed!

This pull request updates the optional dependencies for Python samples to ensure continued functionality with future versions of the a2a-sdk. Specifically, it addresses upcoming changes where HTTP server packages within the SDK may become optional, by explicitly adding necessary HTTP-related dependencies to the sample agents.

Highlights

  • Dependency Alignment: Explicitly adds sse-starlette and starlette as direct dependencies to several Python sample agents (analytics, helloworld, langgraph, azureaifoundry_sdk) to maintain compatibility with future a2a-sdk versions where HTTP server components might be optional.
  • SDK Version Update: Bumps the a2a-sdk version in uv.lock files across multiple samples, reflecting an upgrade to 0.2.10 (from 0.2.4 or 0.2.5).
  • Transitive Dependency Resolution: Updates and adds numerous transitive dependencies within the uv.lock files (e.g., grpcio, protobuf, langchain-core, langsmith, openai, tiktoken, distro, jiter, regex, setuptools, cachetools, google-api-core, google-auth, googleapis-common-protos, grpcio-reflection, grpcio-tools, pyasn1, pyasn1-modules, rsa, fastapi), ensuring a consistent and functional dependency tree for the updated SDK and explicit HTTP packages.
  • Python Version Compatibility: Adjusts the minimum required Python version in azureaifoundry_sdk/azurefoundryagent/uv.lock from >=3.13 to >=3.12 and adds resolution markers for Python 3.13.
Using Gemini Code Assist

The full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips.

Invoking Gemini

You can request assistance from Gemini at any point in your pull request via creating an issue comment (i.e. comment on the pull request page) using either /gemini <command> or @gemini-code-assist <command>. Below is a summary of the supported commands.

Feature Command Description
Code Review /gemini review Performs a code review for the current pull request in its current state.
Pull Request Summary /gemini summary Provides a summary of the current pull request in its current state.
Comment @gemini-code-assist Responds in comments when explicitly tagged, both in issue comments and review comments.
Help /gemini help Displays a list of available commands.

Customization

To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a .gemini/ folder in the base of the repository. Detailed instructions can be found here.

Limitations & Feedback

Gemini Code Assist is currently in preview and may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments to provide feedback.

You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension.

Footnotes

  1. Review the Privacy Notices, Generative AI Prohibited Use Policy, Terms of Service, and learn how to configure Gemini Code Assist in GitHub here. Gemini can make mistakes, so double check it and use code with caution. ↩

@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 updates optional dependencies for Python samples to ensure compatibility with future versions of a2a-sdk. The changes correctly add starlette and sse-starlette to the pyproject.toml files. The lock files have been updated accordingly. I've found one issue in samples/python/agents/langgraph/uv.lock where a new dependency seems to have been added inconsistently. Please see my comment for details.

Comment thread samples/python/agents/langgraph/uv.lock Resolved
@darkhaniop

Copy link
Copy Markdown
Contributor Author

@gemini-code-assist review

@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 updates the Python samples' dependencies to explicitly include HTTP server packages like starlette and sse-starlette, ensuring they work with future versions of a2a-sdk where these might become optional. The lock files have been updated accordingly, which also brings in several other dependency updates. The changes look good and align with the PR's objective. I have one comment regarding the Python version change in one of the lock files.

@holtskinner
holtskinner merged commit f45b657 into a2aproject:main Jul 21, 2025
pstephengoogle pushed a commit that referenced this pull request Aug 4, 2025
* chore(deps): Update python samples' optional deps

In future versions of a2a-sdk, HTTP server packages may become optional.
See a2aproject/a2a-python/pull/217 for details. This PR ensures that
agents in `samples/python/agents/` continue to work with the future
versions on a2a-sdk.

Refs #190

* Add langchain-openai dep to the langgraph sample

This issue was noted by the automated code review bot.
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.

Update samples/python/agents dependencies to include HTTP frameworks

2 participants