Skip to content

Add external agent sample#717

Closed
ninghu wants to merge 2 commits into
microsoft-foundry:mainfrom
ninghu:main
Closed

Add external agent sample#717
ninghu wants to merge 2 commits into
microsoft-foundry:mainfrom
ninghu:main

Conversation

@ninghu
Copy link
Copy Markdown

@ninghu ninghu commented May 20, 2026

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:

  • Added a complete sample for an external weather agent, including the main agent code (weather_agent.py), traffic generator (generate_traffic.py), agent registration script (register_external_agent.py), and requirements (requirements.txt). [1] [2] [3]
  • Provided a .env.example file listing all required environment variables for local development and deployment.

Deployment automation:

  • Added deployment scripts for both Bash (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]
  • Included a Dockerfile to containerize the weather agent for deployment.

Documentation:

  • Added a comprehensive README.md explaining the architecture, prerequisites, step-by-step instructions for deployment, registration, evaluation, and cleanup of the external agent sample.

ninghu and others added 2 commits May 15, 2026 13:51
Co-authored-by: Copilot <copilot@github.com>
@github-actions
Copy link
Copy Markdown
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:

👉 foundry-samples-pr

See CONTRIBUTING.md for full instructions.

@github-actions github-actions Bot closed this May 20, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant