Parallel Tool Calling

Question - anybody know if SambaNova can support parallel tool calls.

For example currently what i see for SambaNova is ;

// First API call
{
“model”: “Meta-Llama-3.1-8B-Instruct”,
“messages”: [{“role”: “user”, “content”: “Compare Bitcoin and Ethereum prices and get weather in Sydney”}],
“tools”: […],
“tool_choice”: “auto”
}

// Response 1: Only one tool call
{
“choices”: [{
“message”: {
“tool_calls”: [{
“id”: “call_abc123”,
“type”: “function”,
“function”: {
“name”: “coin_data”,
“arguments”: “{"coinId": "bitcoin"}”
}
}]
}
}]
}

// Then another API call needed for the second tool…

but what is OpenAI/Anthropic standard is;
// Single API call
{
“model”: “Meta-Llama-3.1-8B-Instruct”,
“messages”: [{“role”: “user”, “content”: “Compare Bitcoin and Ethereum prices and get weather in Sydney”}],
“tools”: […],
“tool_choice”: “auto”
}

// Response with multiple parallel tool calls
{
“choices”: [{
“message”: {
“tool_calls”: [
{
“id”: “call_abc123”,
“type”: “function”,
“function”: {
“name”: “coin_data”,
“arguments”: “{"coinId": "bitcoin"}”
}
},
{
“id”: “call_def456”,
“type”: “function”,
“function”: {
“name”: “coin_data”,
“arguments”: “{"coinId": "ethereum"}”
}
},
{
“id”: “call_ghi789”,
“type”: “function”,
“function”: {
“name”: “get_weather_data”,
“arguments”: “{"location": "Sydney, Australia"}”
}
}
]
}
}]
}

2 Likes

Hi @david.keane , thank you for your query. I’ll review it and get back to you at the earliest possible time.

Regards,
Tanish S

2 Likes

Hi @david.keane , I tested parallel tool calling with different models. The model you’re currently using, Meta-Llama-3.1-8B-Instruct, does not support it. However, DeepSeek-V3-0324 and Llama-3.3-Swallow-70B-Instruct-v0.4 do support parallel tool calling.
I hope this helps!

Regards,
Tanish S

2 Likes

@tanish.sakate please test Llama 4 Maverick as well.

-Coby

1 Like

Hello @coby.adams @david.keane
Llama 4 Maverick also supports parallel tool call.
List of models that support parallel tool calls

  1. DeepSeek-V3-0324
  2. Meta-Llama-3.1-8B-Instruct
  3. Llama-4-Maverick-17B-128E-Instruct
  4. Meta-Llama-3.1-405B-Instruct
1 Like