g
Hi
t
Thanks for reaching out, YASH. I'm an AI assistant and I'm here to help. Give me a moment while I research this topic.
Hi — thanks for reaching out! How can I help you today? If you have an issue, please share a brief description plus any relevant details (project/room IDs, SDK/language, error messages, or steps to reproduce) and I’ll jump in. , with interactive elements
g
I am getting this error from last 8 hours livekit - selfhosted, using realtime nova sonic 2 model {"message": "Error in _execute_tools_task\nTraceback (most recent call last):\n File \"/usr/local/lib/python3.13/site-packages/livekit/agents/utils/log.py\", line 17, in async_fn_logs\n return await fn(*args, **kwargs)\n ^^^^^^^^^^^^^^^^^^^^^^^^^\n File \"/usr/local/lib/python3.13/site-packages/livekit/agents/voice/generation.py\", line 547, in _execute_tools_task\n fnc_args, fnc_kwargs = llm_utils.prepare_function_arguments(\n ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^\n fnc=function_tool,\n ^^^^^^^^^^^^^^^^^^\n ...<5 lines>...\n ),\n ^^\n )\n ^\n File \"/usr/local/lib/python3.13/site-packages/livekit/agents/llm/utils.py\", line 404, in prepare_function_arguments\n if param_name in args_dict and args_dict[param_name] is None:\n ~~~~~~~~~^^^^^^^^^^^^\nTypeError: string indices must be integers, not 'str'", "level": "ERROR", "name": "livekit.agents", "exc_info": "Traceback (most recent call last):\n File \"/usr/local/lib/python3.13/site-packages/livekit/agents/utils/log.py\", line 17, in async_fn_logs\n return await fn(*args, **kwargs)\n ^^^^^^^^^^^^^^^^^^^^^^^^^\n File \"/usr/local/lib/python3.13/site-packages/livekit/agents/voice/generation.py\", line 547, in _execute_tools_task\n fnc_args, fnc_kwargs = llm_utils.prepare_function_arguments(\n ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^\n fnc=function_tool,\n ^^^^^^^^^^^^^^^^^^\n ...<5 lines>...\n ),\n ^^\n )\n ^\n File \"/usr/local/lib/python3.13/site-packages/livekit/agents/llm/utils.py\", line 404, in prepare_function_arguments\n if param_name in args_dict and args_dict[param_name] is None:\n ~~~~~~~~~^^^^^^^^^^^^\nTypeError: string indices must be integers, not 'str'", "pid": 189, "job_id": "AJ_vJjTBNigxX93", "room_id": "RM_465DpeoPh2nK", "timestamp": "2026-04-10T104343.250866+00:00"} {"message": "Error in _realtime_generation_task\nTraceback (most recent call last):\n File \"/usr/local/lib/python3.13/site-packages/livekit/agents/utils/log.py\", line 17, in async_fn_logs\n return await fn(*args, **kwargs)\n ^^^^^^^^^^^^^^^^^^^^^^^^^\n File \"/usr/local/lib/python3.13/site-packages/livekit/agents/voice/agent_activity.py\", line 2724, in _realtime_generation_task\n await self._realtime_generation_task_impl(\n ...<4 lines>...\n )\n File \"/usr/local/lib/python3.13/site-packages/livekit/agents/voice/agent_activity.py\", line 3077, in _realtime_generation_task_impl\n await exe_task\n File \"/usr/local/lib/python3.13/site-packages/livekit/agents/utils/log.py\", line 17, in async_fn_logs\n return await fn(*args, **kwargs)\n ^^^^^^^^^^^^^^^^^^^^^^^^^\n File \"/usr/local/lib/python3.13/site-packages/livekit/agents/voice/generation.py\", line 547, in _execute_tools_task\n fnc_args, fnc_kwargs = llm_utils.prepare_function_arguments(\n ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^\n fnc=function_tool,\n ^^^^^^^^^^^^^^^^^^\n ...<5 lines>...\n ),\n ^^\n )\n ^\n File \"/usr/local/lib/python3.13/site-packages/livekit/agents/llm/utils.py\", line 404, in prepare_function_arguments\n if param_name in args_dict and args_dict[param_name] is None:\n ~~~~~~~~~^^^^^^^^^^^^\nTypeError: string indices must be integers, not 'str'", "level": "ERROR", "name": "livekit.agents", "exc_info": "Traceback (most recent call last):\n File \"/usr/local/lib/python3.13/site-packages/livekit/agents/utils/log.py\", line 17, in async_fn_logs\n return await fn(*args, **kwargs)\n ^^^^^^^^^^^^^^^^^^^^^^^^^\n File \"/usr/local/lib/python3.13/site-packages/livekit/agents/voice/agent_activity.py\", line 2724, in _realtime_generation_task\n await self._realtime_generation_task_impl(\n ...<4 lines>...\n )\n File \"/usr/local/lib/python3.13/site-packages/livekit/agents/voice/agent_activity.py\", line 3077, in _realtime_generation_task_impl\n await exe_task\n File \"/usr/local/lib/python3.13/site-packages/livekit/agents/utils/log.py\", line 17, in async_fn_logs\n return await fn(*args, **kwargs)\n ^^^^^^^^^^^^^^^^^^^^^^^^^\n File \"/usr/local/lib/python3.13/site-packages/livekit/agents/voice/generation.py\", line 547, in _execute_tools_task\n fnc_args, fnc_kwargs = llm_utils.prepare_function_arguments(\n ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^\n fnc=function_tool,\n ^^^^^^^^^^^^^^^^^^\n ...<5 lines>...\n ),\n ^^\n )\n ^\n File \"/usr/local/lib/python3.13/site-packages/livekit/agents/llm/utils.py\", line 404, in prepare_function_arguments\n if param_name in args_dict and args_dict[param_name] is None:\n ~~~~~~~~~^^^^^^^^^^^^\nTypeError: string indices must be integers, not 'str'", "pid": 189, "job_id": "AJ_vJjTBNigxX93", "room_id": "RM_465DpeoPh2nK", "timestamp": "2026-04-10T104343.258069+00:00"}
t
I don't have the answer you're looking for. You could also try asking your question: • in one of the other Slack channels or • to https://deepwiki.com/livekit/livekit_composite which is trained on all LiveKit source code If you find the answer, please post it here to help others!