Add external agent sample#717
Closed
ninghu wants to merge 2 commits into
Closed
Conversation
Co-authored-by: Copilot <copilot@github.com>
Contributor
|
👋 Thanks for your contribution, @ninghu! This repository is read-only. As a Microsoft contributor, please submit your PR to the private staging repository instead: See CONTRIBUTING.md for full instructions. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This pull request introduces a new sample for external agent observability in Foundry, featuring a weather agent built with LangChain and instrumented with Microsoft's OpenTelemetry Python distribution. The sample demonstrates how to deploy the agent to Azure Container Apps, generate telemetry, register the agent in Foundry, and run trace-based evaluations. The changes include all necessary code, deployment scripts for both Bash and PowerShell, documentation, and configuration templates.
The most important changes are:
Sample code and configuration:
weather_agent.py), traffic generator (generate_traffic.py), agent registration script (register_external_agent.py), and requirements (requirements.txt). [1] [2] [3].env.examplefile listing all required environment variables for local development and deployment.Deployment automation:
deploy.sh) and PowerShell (deploy.ps1) to build, push, and deploy the agent container to Azure Container Apps, as well as generate test traffic and handle environment configuration. [1] [2]Dockerfileto containerize the weather agent for deployment.Documentation:
README.mdexplaining the architecture, prerequisites, step-by-step instructions for deployment, registration, evaluation, and cleanup of the external agent sample.