Provide unique identifier for tool calls and responses

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!

Answered by DTS Engineer in 851074022

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.

Hi @grabbou,

For these kinds of feature suggestions please file an enhancement request using Feedback Assistant.

Best,

-J

Will do. FB19054369

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.

Provide unique identifier for tool calls and responses
 
 
Q