tool call does not accept multiple responses
# support
g
{"results": [{"toolCallId": "toolu_01EATzVr3jktWVTnkqjiwsDq", "result": "[[{\"total_count\": 3, \"min_price\": 25000.0, \"max_price\": 27991.0}], [{\"title\": \"2018 RAM 1500 Harvest\", \"price\": 25000.0, \"inventory_type\": \"used\", \"mileage\": 83403, \"is_certified\": 0}, {\"title\": \"2018 RAM 1500 Laramie\", \"price\": 27500.0, \"inventory_type\": \"used\", \"mileage\": 72616, \"is_certified\": 1}, {\"title\": \"2019 RAM 1500 Big Horn/Lone Star\", \"price\": 27991.0, \"inventory_type\": \"used\", \"mileage\": 57585, \"is_certified\": 0}]]"}, {"toolCallId": "toolu_01LjcYBfZT2HhcKzrkpnpfS1", "result": "[[{\"exterior_color\": \"Baltic Gray Metallic Clearcoat\"}, {\"exterior_color\": \"Velvet Red Pearlcoat\"}, {\"exterior_color\": \"Bright White Clearcoat\"}, {\"exterior_color\": \"Diamond Black Crystal Pearlcoat\"}, {\"exterior_color\": \"Silver Zynith\"}, {\"exterior_color\": \"Diamond Black Crystal P/C\"}]]"}]} this is example of a response I am sending to multiple tool calls the second one gets registered but not the first one. Why?
s
Sorry didn't get what you mean.
Can you rephrase your question?
g
i am sending back this response to a tool call that comes with two tool calls in a single request, the assistant registers only one and ignore the other
i test my tool calls using chat
@Sahil
s
Do you mind sending the call_id? As per the code logic, we iterate all the tool requests by the llm and send the request in one by one
2 Views