mirror of
https://github.com/microsoft/agent-framework.git
synced 2026-06-16 21:04:09 +08:00
636e3acf37
* Change implementation to use AsFunctionTool extension method to create a function from an agent * Update dotnet/tests/Microsoft.Extensions.AI.Agents.UnitTests/AgentExtensionsTests.cs Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> * Address code review feedback and add a new sample * Address some code review feedback --------- Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
636e3acf37
ยท
2025-09-15 08:39:38 +00:00
History
A2A Client Sample
Show how to create an A2A Client with a command line interface which invokes agents using the A2A protocol.
Run the Sample
To run the sample, follow these steps:
- Run the A2A client:
cd A2AClient dotnet run - Enter your request e.g. "Show me all invoices for Contoso?"
Set Environment Variables
The agent urls are provided as a delimited list of strings
cd dotnet/samples/A2AClientServer/A2AClient
$env:OPENAI_MODEL_ID="gpt-4o-mini"
$env:OPENAI_API_KEY="<Your OPENAI api key>"
$env:AGENT_URLS="http://localhost:5000/policy;http://localhost:5000/invoice;http://localhost:5000/logistics"