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 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"