lively-minister-89835
12/10/2025, 7:25 AMtall-airline-16756
12/10/2025, 7:25 AMtall-airline-16756
12/10/2025, 7:26 AMraw_schema so LiveKit passes inputs as a single raw_arguments dict.
• Your function’s signature does not include raw_arguments, so Python raises: TypeError: got an unexpected keyword argument 'raw_arguments'.
What to do
1. Find functions decorated with @function_tool(raw_schema=...).
2. Change their signatures to accept raw_arguments: dict[str, object]. Example:
@function_tool(raw_schema={...})
async def my_tool(raw_arguments: dict[str, object]):
value = raw_arguments["some_field"]
...
1. Alternatively, remove raw_schema and use normal annotated parameters (e.g., def fn(location: str)) if you prefer per-argument binding.
If you’d like, paste the tool decorator + function signature that’s failing and I’ll point out the exact change.
Sources: Tool definition and use | LiveKit docs