Each project of the sample has its own set of secrets, managed by dotnet user-secrets
Specifically, the following secrets are required for each agent (Teams, Districts, Events, Matches):
AzureOpenAIEndpointAzureOpenAIKeyTBA_API_KEY
Note: If you wish to run the samples as-is, you'll need an API key for The Blue Alliance website. These are free after signup, you can find more information on their API documentation.
Future work for this repo includes samples that either do not require an API key or are more generic in nature.
For the orchestrator:
AzureOpenAIEndpointAzureOpenAIKey
And for the SignalR hub:
Azure:SignalR:ConnectionString
So, for example, to set the Azure OpenAI endpoint for the Teams agent of the SignalR sample, you would run:
dotnet user-secrets set "AzureOpenAIEndpoint" "https://<your-openai-endpoint>.openai.azure.com/" --project ./dotnet/signalr/Agents/SignalR/Teams_SignalRfrom this location of this README.
Note: Setting a secret for a project in one sample shares that secret with the same project in all other samples.
Samples can each be built with their ./build/build.ps1 files, you can use the following command to build them:
./build/build.ps1 [-NoBuild] [-NoDocker] [-Deploy Docker|Kubernetes]NoBuild: Skips the build stepNoDocker: Skips creating docker images for the agents, orchestrator, etc.Deploy: Deploys the agent to your local Docker or Kubernetes cluster
You can run each component of the samples with ./launch.ps1.
If you deploy the sample to Docker, you need only run the client application via ./launch.ps1 client.
Otherwise, you can launch the orchestrator and each agent with:
./launch.ps1 signalrhub(if using the SignalR sample)./launch.ps1 orchestrator./launch.ps1 teamsagent./launch.ps1 districtsagent./launch.ps1 matchesagent./launch.ps1 eventsagent
and finally
./launch.ps1 clientto run the client application.