New lab - add AI Foundry Hosted Agents lab with custom frameworks#366
Merged
Conversation
added 15 commits
July 8, 2026 16:48
- Implemented main.py to handle responses using Strands Agents SDK. - Added tools for weather retrieval and environment variable debugging. - Integrated Azure OpenAI model with support for incremental token streaming. - Created requirements.txt for necessary dependencies including azure-ai-agentserver-responses and strands-agents.
- Introduced a new XML policy file to manage inbound requests for the Foundry Responses API. - Implemented managed identity authentication to retrieve access tokens. - Set necessary headers including Authorization, Content-Type, and Foundry-Features for API requests. - Added a query parameter for API versioning to ensure compatibility with the preview version.
…nt architecture, and monitoring details
- Implemented the Strands agent framework in main.py, enabling server-side function calling and multi-turn conversation tracking. - Added environment variable configurations for Azure OpenAI integration. - Created requirements-strands.txt to manage dependencies for the Strands framework, including azure-ai-agentserver-responses and strands-agents.
…ions, clarify dependencies, and improve validation steps
…k overviews, comparison table, and official references
… and Pydantic frameworks
…put and replace configuration values with placeholders
…ers in Strands setup notebook; update README to simplify framework descriptions.
…ameworks; remove comparison table and official references for clarity.
Updates to the lab and restructuring
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.
PR: AI Foundry Hosted Agents with Custom Frameworks
Purpose
ai-foundry-hosted-agents-custom-framework) that extends the existing Hosted Agents scenario with framework-specific agent implementations.Does this introduce a breaking change?
Pull Request Type
What kind of change does this Pull Request introduce?
How to Test
git clone [repo-address] cd [repo-name] git checkout [branch-name]What to Check
Verify that the following are valid:
runningstate.Foundry-Features: HostedAgents=V1Preview) are working.conversation_id/previous_response_id) works correctly for the Strands implementation.TextResponsedelta SSE events) are emitted correctly for the Strands agent.Other Information
azure-ai-agentserver).hosted-agent-policy.xml) proxies Foundry Hosted Agent Responses and injects a managed identity bearer token; client authentication uses an APIM subscription key.python:3.12-slim.src/responses/agents/frameworks/strands/example.envandsrc/responses/agents/frameworks/pydantic/example.env.