-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Python: Add requirements.txt and .env.example to the a2a/ sample for pip-based setup
#5510
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
4 commits
Select commit
Hold shift + click to select a range
9d19b1a
Add requirements.txt and .env.example to a2a sample
36749a8
Python: Add `requirements.txt` and `.env.example` to the `a2a/` sampl…
296b6c3
fix(a2a-sample): address PR review feedback for issue #5395
3992029
Address review feedback for #5395: Python: [Samples][Python] a2a/ sam…
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,8 @@ | ||
| # Azure AI Foundry Configuration (required for a2a_server.py and a2a_agent_as_function_tools.py) | ||
| FOUNDRY_PROJECT_ENDPOINT=https://your-project.services.ai.azure.com/api/projects/your-project | ||
| FOUNDRY_MODEL=gpt-4o | ||
|
|
||
| # A2A Client Configuration (required for agent_with_a2a.py and a2a_agent_as_function_tools.py) | ||
| # The function-tools flow uses http://localhost:5000/ in the sample docs/output. | ||
| # Update this value if you start a different local A2A server instance on another port. | ||
| A2A_AGENT_HOST=http://localhost:5000/ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,23 @@ | ||
| # Agent Framework packages | ||
| # To use the deployed version, uncomment the lines below and comment out the local installation lines | ||
| # agent-framework-a2a | ||
| # agent-framework-foundry | ||
|
|
||
| # Local installation (for development and testing) | ||
| # Each package must be listed explicitly because pip doesn't resolve uv workspace sources. | ||
| # Without explicit entries, pip would fetch transitive dependencies from PyPI instead of local source. | ||
| -e ../../../packages/core # Core framework - base dependency for all packages | ||
| -e ../../../packages/foundry # Foundry support - dependency for FoundryChatClient in a2a_server.py | ||
| -e ../../../packages/a2a # A2A integration - provides A2AAgent and a2a-sdk | ||
|
|
||
| # Azure authentication | ||
| azure-identity | ||
|
|
||
| # A2A server runtime | ||
| uvicorn | ||
|
|
||
| # HTTP client used by A2A client samples | ||
| httpx | ||
|
|
||
| # Environment variable loading | ||
| python-dotenv |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.