Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 21 additions & 0 deletions examples/a2a/.env.alice.template
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# Alice's Teams bot registration (separate App ID from Bob).
CLIENT_ID=<Alice-Bot-App-Id>
CLIENT_SECRET=<Alice-Bot-App-Secret>
TENANT_ID=<Tenant-Id>

# This bot listens on PORT; the A2A endpoint is mounted on the same server.
PORT=3978

# Shared Azure OpenAI for the LLM behind both bots.
AZURE_OPENAI_ENDPOINT=https://<your-resource>.openai.azure.com
AZURE_OPENAI_API_KEY=<your-api-key>
AZURE_OPENAI_MODEL_DEPLOYMENT_NAME=<your-deployment-name>
AZURE_OPENAI_API_VERSION=2024-10-21

# A2A identity. Description goes into this bot's AgentCard — the peer's LLM
# reads it to decide whether to hand off here.
BOT_NAME=Alice
BOT_DESCRIPTION=questions about cats
BOT_SELF_URL=http://localhost:3978
PEER_NAME=Bob
PEER_URL=http://localhost:3979
17 changes: 17 additions & 0 deletions examples/a2a/.env.bob.template
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# Bob's Teams bot registration (separate App ID from Alice).
CLIENT_ID=<Bob-Bot-App-Id>
CLIENT_SECRET=<Bob-Bot-App-Secret>
TENANT_ID=<Tenant-Id>

PORT=3979

AZURE_OPENAI_ENDPOINT=https://<your-resource>.openai.azure.com
AZURE_OPENAI_API_KEY=<your-api-key>
AZURE_OPENAI_MODEL_DEPLOYMENT_NAME=<your-deployment-name>
AZURE_OPENAI_API_VERSION=2024-10-21

BOT_NAME=Bob
BOT_DESCRIPTION=questions about dogs
BOT_SELF_URL=http://localhost:3979
PEER_NAME=Alice
PEER_URL=http://localhost:3978
3 changes: 3 additions & 0 deletions examples/a2a/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,6 @@ env/
infra/
node_modules/
.vscode/
.env
.env.alice
.env.bob
205 changes: 0 additions & 205 deletions examples/a2a/CHANGELOG.md

This file was deleted.

Loading
Loading