I tried to interact with the agent workflow at https://github.com/microsoft-foundry/foundry-samples/tree/main/samples/csharp/hosted-agents/AgentFramework/AgentThreadAndHITL using:
- The
test_requests.py file to test and prompt the agent
- Any OpenAI Responses compatible client by sending requests to
http://localhost:8080/
The response contains:
"conversation": null
response output example snippet:
{ "status": "completed", "output": [ { "type": "function_call", "id": "msg_ffzNgCBMBDvnEoUmpy04qiQX11DcfTCuani6MPi5O51kZ6oHV9", "created_by": { "response_id": "resp_ffzNgCBMBDvnEoUmpyN6826hrdV3g4ojGJsYh0R4BwzM5MhwJf" }, "status": "in_progress", "call_id": "call_O6udgoGJXxoaHjAJhoLADgvG", "name": "__hosted_agent_adapter_hitl__", } ], "conversation": null, "agent": { "type": "agent_reference", "name": "local_agent", }, }
Since "conversation" is null:
conversation_id cannot be extracted
- Follow-up request with function_call_output cannot be tied to a conversation
- HITL flow cannot continue
Because of this, it is not possible to extract a conversation_id and continue the HITL workflow by sending function call output in a follow-up request.
I tried to interact with the agent workflow at https://github.com/microsoft-foundry/foundry-samples/tree/main/samples/csharp/hosted-agents/AgentFramework/AgentThreadAndHITL using:
test_requests.pyfile to test and prompt the agenthttp://localhost:8080/The response contains:
"conversation": nullresponse output example snippet:
{ "status": "completed", "output": [ { "type": "function_call", "id": "msg_ffzNgCBMBDvnEoUmpy04qiQX11DcfTCuani6MPi5O51kZ6oHV9", "created_by": { "response_id": "resp_ffzNgCBMBDvnEoUmpyN6826hrdV3g4ojGJsYh0R4BwzM5MhwJf" }, "status": "in_progress", "call_id": "call_O6udgoGJXxoaHjAJhoLADgvG", "name": "__hosted_agent_adapter_hitl__", } ], "conversation": null, "agent": { "type": "agent_reference", "name": "local_agent", }, }Since "conversation" is null:
conversation_idcannot be extractedBecause of this, it is not possible to extract a conversation_id and continue the HITL workflow by sending function call output in a follow-up request.