Skip to content

feat(samples): add official autogen sample server - #232

Closed
victordibia wants to merge 14 commits into
a2aproject:mainfrom
victordibia:main
Closed

victordibia wants to merge 14 commits into
a2aproject:mainfrom
victordibia:main

Conversation

@victordibia

@victordibia victordibia commented Apr 18, 2025 •

Copy link
Copy Markdown

This sample demonstrates how to implement an A2A protocol server using Microsoft's AutoGen framework. The implementation creates a simple Weather Agent that provides (simulated) weather information via tool calls for various locations.

a2a1080.mp4

Note: There are a few version resolution disagreements (pillow version in AutoGen vs Llamaindex), so AutoGen is not added to the samples workspace for now.

@google-cla

google-cla Bot commented Apr 18, 2025

Copy link
Copy Markdown

Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).

View this failed invocation of the CLA check for more information.

For the most up to date status, view the checks section at the bottom of the pull request.

@victordibia victordibia changed the title Add AutoGen Sample Server feat(samples) : Add Official AutoGen Sample Server May 4, 2025
@victordibia victordibia changed the title feat(samples) : Add Official AutoGen Sample Server feat(samples): add official autogen sample server May 4, 2025
@moonbox3

Copy link
Copy Markdown
Contributor

Hi @rajeshvelicheti and @kthota-g, could you please help review? Thank you.

@gagb

gagb commented May 16, 2025 •

Copy link
Copy Markdown

@victordibia which directory should the

# Connect to the agent (specify the agent URL with correct port)
uv run hosts/cli --agent http://localhost:10000

be run in?

image

uv run . --host 0.0.0.0 --port 10000
```

5. In a separate terminal, run the A2A client:

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Add instructions for which directory and how to activate the correct environment.
Presumably, this is the samples/python dir and user has to do uv sync. But I kept getting an error for a missing package:
image
Once I installed it manually, it worked.

@holtskinner

Copy link
Copy Markdown
Member

Please move this PR to the new samples repo here https://github.com/google-a2a/a2a-samples

@gagb

gagb commented Jun 2, 2025

Copy link
Copy Markdown

I see some code added for AutoGen in the other repo pointed out by @holtskinner -- but its not using the correct dependencies and the code looks unfamiliar. Something is weird cc @ekzhu @victordibia

@gagb

gagb commented Jun 2, 2025

Copy link
Copy Markdown

@ekzhu

ekzhu commented Jun 3, 2025

Copy link
Copy Markdown

I think we should update that sample.

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.

5 participants