<@U084APK40NS> whenusing a simple function in my l...
# ask-ai
g
@millions-hair-24956 whenusing a simple function in my llm i get this answer: INFO livekit.agents.pipeline - max function calls nested depth reached, dropping function context. increase max_nested_fnc_calls to enable additional nesting.
g
The message you're seeing indicates that the maximum number of nested function calls has been reached in your LiveKit setup. To allow more nested function calls, you need to increase the
max_nested_fnc_calls
parameter in your
VoicePipelineAgent
or
VoiceAssistant
configuration. This parameter controls the maximum depth of function call nesting that the agent can handle. Would you like more details on how to adjust this setting? Sources: - LiveKit VoicePipelineAgent 👍 0 button 👎 0 button 💡 Hint: Mention @runllm in the thread for followups.
g
but i only have one function @millions-hair-24956
g
Even with a single function, the LiveKit agent might attempt to make additional nested calls due to the logic within the function or how the LLM interprets the conversation context. This can inadvertently trigger the nested function call limit. To address this, you can increase the
max_nested_fnc_calls
parameter to allow for more flexibility, even if you believe only one function should be called. This setting is part of the
VoicePipelineAgent
or
VoiceAssistant
configuration. Would you like more detailed guidance on how to adjust this parameter? Sources: - LiveKit VoicePipelineAgent 👍 0 button 👎 0 button 💡 Hint: Mention @runllm in the thread for followups.