If my agent is doing multiple parallel tool calls,...
# ask-ai
c
If my agent is doing multiple parallel tool calls, then is there a way in which the agent can start answering from the response of the quickest tool call and then weave into it's response the results of the tool call taking longer?
t
Thanks for reaching out, Tamaghna. I'm an AI assistant and I'm here to help. Give me a moment while I research this topic.
Yes, LiveKit's Agents framework supports parallel tool calls, allowing the agent to make multiple tool calls simultaneously. This feature can improve performance for complex tasks. However, the ability to start responding based on the quickest tool call and then incorporate results from longer tool calls depends on how the agent is programmed to handle responses. You can configure this feature using the
parallel_tool_calls
boolean parameter in integrations like Groq, xAI (Grok), and Cerebras. Sources: Groq LLM integration guide | LiveKit Docs | xAI LLM integration guide | LiveKit Docs | Cerebras LLM integration guide | LiveKit Docs
c
I have
parallel_tool_calls
as
True
but one tool takes longer, causing a lag, how to make the agent start responding from the tool calls that have returned their response and then bake in the response from the longer running tool call?