is
{
"message": {
"timestamp": 1678901234567,
"type": "tool-calls",
"toolCallList": [
{
"id": "toolu_01DTPAzUm5Gk3zxrpJ969oMF",
"name": "get_weather",
"arguments": {
"location": "San Francisco"
}
}
],
"toolWithToolCallList": [
{
"type": "function",
"name": "get_weather",
"parameters": {
"type": "object",
"properties": {
"location": {
"type": "string"
}
}
},
"description": "Retrieves the current weather for a specified location"
},
"server": {
"url": "https://your-api-server.com/weather"
},
"messages": [],
"toolCall": {
"id": "toolu_01DTPAzUm5Gk3zxrpJ969oMF",
"type": "function",
"function": {......
But in reality, I get this:
{
"message": {
"timestamp": 1678901234567,
"type": "tool-calls",
"toolCalls": [
{
"id": "toolu_01DTPAzUm5Gk3zxrpJ969oMF",
"name": "get_weather",
"arguments": {
"location": "San Francisco"
}
}
],
"toolCallList": [
{
"id": "....
had to clip both JSONs for brevity. The point im highlighting is the extra "toolCalls" before the "toolCallList"
The question is what is the actual part of the payload i should be paying attention to. lots of seemingly repeated info, not explained in docs.