Hey,
Would be great to have an equivalent of toolCallId
for both toolCall
and toolResult
in the transcript. Otherwise, it is hard to connect tool calls with their respective responses, when there were multiple parallel calls to the same tool.
Thanks!
Thanks for filing the feedback report.
Just in case, if your intent is to find the ToolOutput
entry for a tool call in a transcript (Transcript), you can rely on the order – The entries are ordered so that the first tool call in the transcript's toolCalls
collection corresponds to the first tool output.
Concretely, assuming you have toolCallsValue
holding the value of the toolCalls
entry, and toolOutputEntries
holding all toolOutput
entries in order, then toolCallsValue[i]
should be the tool call that generates toolOutputEntries[i]
.
Best,
——
Ziqiao Chen
Worldwide Developer Relations.