Formerly known as Azure AI Services or Azure Cognitive Services is a unified collection of prebuilt AI capabilities within the Microsoft Foundry platform
Hello @Debesh Mohanty ,
Welcome to Microsoft Q&A .Thank you for reaching out to us.
The observed behavior appears to be associated with how agent activity is displayed within Teams and Microsoft 365 Copilot, but the underlying cause has not been publicly documented.
Regarding displaying Code Interpreter or tool execution details expected behavior - Code Interpreter operates as part of the agent execution process and can generate intermediate actions before producing a final response. In this scenario, those intermediate activities are being surfaced to end users within the chat experience. While the behavior is technically valid, it is currently unclear whether this presentation is intended for all published agents or whether the experience has changed over time.
As asked if there is a setting to suppress tool invocation details and show only the final response - At present, no known configuration has been identified that specifically controls the visibility of tool-execution activity within Teams or Microsoft 365 Copilot for published Foundry agents. The practical focus therefore needs to be on validating how the host experience is rendering agent activity rather than adjusting agent execution settings.
Please check if the following steps help-
- Compare the same prompt across Azure AI Foundry Playground, Microsoft Teams, and Microsoft 365 Copilot.
- Validate whether the behavior is consistent across multiple users and conversations.
- Review agent instructions to ensure responses are optimized for concise final-answer generation.
- Identify when the behavior was first observed and whether it coincided with any service-side changes in the environment.
The following are the differences between Azure AI Foundry Playground, Teams, and Microsoft 365 Copilot-
- Azure AI Foundry Playground - Primarily intended for development, testing, and validation scenarios.
- Microsoft Teams and Microsoft 365 Copilot - Provide separate end-user experiences and may present agent outputs differently from the Playground. Because of these differences, identical agent executions may appear differently across environments even when the underlying agent behavior remains unchanged.
The following references might be helpful , please check them out
- Publish agents to Microsoft 365 Copilot and Microsoft Teams - Microsoft Foundry | Microsoft Learn
- Use Code Interpreter with Microsoft Foundry agents - Microsoft Foundry | Microsoft Learn
- Agent tools overview for Microsoft Foundry Agent Service - Microsoft Foundry | Microsoft Learn
- Code Interpreter Capability for Declarative Agents for Microsoft 365 Copilot | Microsoft Learn
Thank you
Please "Accept" the answer with an "Upvote" if the response was helpful. This will be benefitting other community members who face the same issue.