You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Python: Hosted Agent Framework: human-in-the-loop tool approval not working #5654
we see the following warning in the logs: WARNING agent_framework_foundry_hosting._responses: Content type 'function_approval_request' is not supported yet. This is usually safe to ignore.
We are using:
agent-framework-foundry-hosting 1.0.0a260429
agent-framework = 1.2.2
At the same time, we do not get a usable response in the playground, so the human-in-the-loop approval flow does not appear to work in the hosted scenario.
What we understand
From the warning and the playground behavior, our current understanding is that the hosting adapter layer may not yet support the function_approval_request content type required for human-in-the-loop tool approval.
What we are trying to achieve
We want to support human-in-the-loop approval for tool execution in our Agent Framework orchestrations.
For orchestration scenarios involving plan review and tool approval, it appears these human-in-the-loop interactions are not currently supported in the hosted flow. If correct, this means hosted orchestration cannot yet support these approval steps end-to-end.
Question
Is there a planned timeline or roadmap for support of human in the loop in hosted adapter Agent Framework scenarios?
changed the title [-]Hosted Agent Framework: human-in-the-loop tool approval not working[/-][+]Python: Hosted Agent Framework: human-in-the-loop tool approval not working[/+]on May 5, 2026
It works fine for a plain Agent, but breaks when the same tool is used inside a workflow agent. We get the following warning and error:
WARNING agent_framework_foundry_hosting._responses: Content type 'usage' is not supported yet. This is usually safe to ignore.
TypeError: Object of type Content is not JSON serializable
Could you please help us understand if tool approval is supported for workflow agents?
Activity
[-]Hosted Agent Framework: human-in-the-loop tool approval not working[/-][+]Python: Hosted Agent Framework: human-in-the-loop tool approval not working[/+]cs609 commentedon May 11, 2026
Tao Chen (@TaoChenOSU)
We followed the official sample (https://github.com/microsoft/agent-framework/blob/main/python/samples/04-hosting/foundry-hosted-agents/responses/02_tools/main.py) to use approval_mode="always_require" on a tool using the latest agent-framework-foundry-hosting(1.0.0a260507).
It works fine for a plain Agent, but breaks when the same tool is used inside a workflow agent. We get the following warning and error:
Could you please help us understand if tool approval is supported for workflow agents?
TaoChenOSU commentedon Jun 5, 2026
Hi cs609,
PR #6259 should resolve the issue you reported. Please give it a try and let us know if it's working for you. Thanks!