Files
SergeyMenshykh 69225b4aa2 .NET: [BREAKING] Change namespaces of the Microsoft.Agents.AI.OpenAI classes (#2627)
* change namespaces for agents and extension methods of the Microsoft.Agents.AI.OpenAI package

* remove unnecessary namespace

* remove unused namespaces

* fix compilation issues and rrolled back removed run methods

* sort usings

* add extension methods for AIAgent to work with OpenAI Responses primitives

* Move OpenAIChatClientAgent and OpenAIResponseClientAgent to samples

* sort usings

* sort usings
69225b4aa2 ยท 2025-12-09 12:58:44 +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:

  1. Run the A2A client:
    cd A2AClient
    dotnet run
    
  2. 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="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"