db620d33df
dotnet-build-and-test / dotnet-test-functions (push) Has been cancelled
dotnet-build-and-test / paths-filter (push) Has been cancelled
dotnet-build-and-test / dotnet-build (Debug, windows-latest, net9.0) (push) Has been cancelled
dotnet-build-and-test / dotnet-build (Release, ubuntu-latest, net10.0) (push) Has been cancelled
dotnet-build-and-test / dotnet-build (Release, ubuntu-latest, net8.0) (push) Has been cancelled
dotnet-build-and-test / dotnet-build (Release, windows-latest, net472) (push) Has been cancelled
dotnet-build-and-test / dotnet-test (Release, integration, true, ubuntu-latest, net10.0) (push) Has been cancelled
dotnet-build-and-test / dotnet-test (Release, integration, true, windows-latest, net472) (push) Has been cancelled
dotnet-build-and-test / dotnet-foundry-hosted-it (push) Has been cancelled
dotnet-build-and-test / dotnet-build-and-test-check (push) Has been cancelled
dotnet-build-and-test / Integration Test Report (push) Has been cancelled
CodeQL / Analyze (csharp) (push) Has been cancelled
CodeQL / Analyze (python) (push) Has been cancelled
27 lines
700 B
Markdown
27 lines
700 B
Markdown
|
|
# 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:
|
|
```bash
|
|
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
|
|
|
|
```powershell
|
|
cd dotnet/samples/05-end-to-end/A2AClientServer/A2AClient
|
|
|
|
$env:OPENAI_CHAT_MODEL_NAME="gpt-5.4-mini"
|
|
$env:OPENAI_API_KEY="<Your OPENAI api key>"
|
|
$env:AGENT_URLS="http://localhost:5000/policy;http://localhost:5000/invoice;http://localhost:5000/logistics"
|
|
```
|