Files
wehub-resource-sync b957a53def
CodeQL / Analyze (csharp) (push) Waiting to run
CodeQL / Analyze (python) (push) Waiting to run
chore: import upstream snapshot with attribution
2026-07-13 13:21:23 +08:00
..

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 Secrets with Secret Manager

The agent urls are provided as a delimited list of strings

cd dotnet/samples/Demos/A2AClientServer/A2AClient

dotnet user-secrets set "A2AClient:ModelId" "..."
dotnet user-secrets set "A2AClient":ApiKey" "..."
dotnet user-secrets set "A2AClient:AgentUrls" "http://localhost:5000/policy;http://localhost:5000/invoice;http://localhost:5000/logistics"