A fully managed platform in Microsoft Foundry for hosting, scaling, and securing AI agents built with any supported framework or model
Hi Amira,
Thank you for your response.
I wanted to share the current setup and challenges for guidance:
Current Approach
- I initially created all agents and tested them individually — everything worked as expected.
- I then created a Foundry Workflow and orchestrated these agents together.
- All agents are natural language generation-based, with no coding involved.
Initial Issue & Resolution
- When running the full workflow, I encountered a network error.
- Based on a colleague’s suggestion, I:
- Optimized the prompts
- Added instructions in all agents to limit token usage in outputs
- This resolved the issue, and the workflow started functioning correctly.
- Optimized the prompts
New Challenge
I introduced a new agent for diagram/image generation using the Code Interpreter tool.
This agent:
- Works fine when tested independently
- Has a significantly higher response time (~300+ seconds)
Constraint
- Since this is not a language-generation agent, prompt optimization is not very applicable here.
Ask
- I’m unsure how to handle this scenario, especially with the longer execution time of the Code Interpreter agent.
- Looking for guidance on:
- Best practices for integrating such high-latency agents into workflows
- Any architectural or workflow design recommendations to avoid these errors