Skip to content

Conversation

@jsimonweb
Copy link
Contributor

Add an example Python console app that demonstrates how to connect and utilize an Elastic Agent Builder agent via the Agent2Agent (A2A) Protocol orchestrated with the Microsoft Agent Framework.

@gitnotebooks
Copy link

gitnotebooks bot commented Nov 12, 2025

@jsimonweb jsimonweb requested a review from ugosan November 12, 2025 16:06
@jsimonweb jsimonweb requested a review from jeffvestal November 14, 2025 19:59
Copy link
Contributor

@carlyrichmond carlyrichmond left a comment

Choose a reason for hiding this comment

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

Added a few suggestions. It needs to move to the supporting-blog-content. For me the example is too simple for developers, and perhaps adding a more complex dataset may help (similar to https://www.elastic.co/search-labs/blog/ai-agent-builder-elasticsearch)

I'm wondering why this is a script rather than a notebook so it may be worth changing if possible.


COPY elastic_agent_builder_a2a.py test_elastic_agent_builder_a2a.py ./

RUN pip install agent-framework
Copy link
Contributor

Choose a reason for hiding this comment

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

Can you use virtual env and a requirements.txt file to ensure people don't have issues with it breaking for subsequent versions or configuraiton specific to their environment.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done.



async def main():
a2a_agent_host = "<YOUR-ELASTIC-AGENT-BUILDER-URL>"
Copy link
Contributor

Choose a reason for hiding this comment

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

I woudl change this to using env variables that are loaded from the .env file (same for API key as well)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done.

Copy link
Contributor

Choose a reason for hiding this comment

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

Add example values

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done.

Copy link
Contributor

Choose a reason for hiding this comment

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

I find it strange that you have this test in here, but it's not mentioned in the article anywhere. Is there a particular reason for that?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Removed.

Copy link
Contributor

@carlyrichmond carlyrichmond left a comment

Choose a reason for hiding this comment

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

LGTM

@carlyrichmond carlyrichmond merged commit 2ba12a7 into elastic:main Nov 20, 2025
2 checks passed
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.

2 participants