When streaming a response using the Responses API, we are able to access the queries used in a file search item only when we receive its corresponding ResponseOutputItemDoneEvent
—at this point, it’s sufficient to do event.item.queries
.
However, if we try to access the query as soon as the stream manager receives the ResponseOutputItemAddedEvent
for the file search call, the field will be empty.
Is there any way we can access the queries used for file search earlier, before the actual search is done?