how to disable parallel tool calls in livekit pyth...
# ask-ai
f
how to disable parallel tool calls in livekit python library
t
Thanks for reaching out, Amjad. I'm an AI assistant and I'm here to help. Give me a moment while I research this topic.
If you'd like to disable parallel tool calls in the LiveKit Python library, it's pretty simple! Just set the
parallel_tool_calls
parameter to
False
. You can do this either when you’re initializing or right when you call the
chat
method: • *During Initialization:*`llm = LLM( model="your-model", parallel_tool_calls=False, # Other parameters as needed )` • *When Calling
chat
Method:*`response = llm.chat( chat_ctx=your_chat_context, parallel_tool_calls=False, # Other parameters as needed )` By setting
parallel_tool_calls=False
, you’re making sure the tool calls happen one after the other, rather than all at once. Hope that helps! Sources: livekit-plugins/livekit-plugins-anthropic/livekit/plugins/anthropic/llm.py | Telnyx LLM integration guide | LiveKit Docs | Together AI LLM integration guide | LiveKit Docs | Fireworks AI LLM integration guide | LiveKit Docs | DeepSeek LLM integration guide | LiveKit Docs