Skip to content

/responses endpoint returns "conversation": null, causing AgentThreadAndHITL flow to fail. #547

@ankit-terawe

Description

@ankit-terawe

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions