I find it incredible that the endpoint to retrieve previous responses does not include a responseId
https://platform.openai.com/docs/api-reference/responses/input-items
In our case, we use the metadata to store certain information about how we processed a tool call, this allows a user to swipe through history and see data about how we processed the function call. Since the Assistants API List endpoint returned full messages, this worked really well
However since the ResponseAPI returns weird sub objects that don’t really represent any other output format, it seems our strategy no longer works. At first I thought this was just a weird move but I could circumvent an issue by just retrieving the full response whenever I see a function call output item. But then I realized there is no responseId anywhere in this API call. ItemId is either a msg_id. or a fco_id (function output). And there doesnt appear to be a deterministic way to determine a responseId from another id.
This kind of makes the whole “fork conversation” concept moot since the responseIds are not exposed in the API.
Has anyone found a solution for this? I’d rather not keep a copy of the responseID mapping to messageIds in the database