Update args field in RTVILLMFunctionCallInProgressMessageData to match API of existing RTVILLMFunctionCallResultData.

This commit is contained in:
mattie ruth backman
2026-02-09 16:27:15 -05:00
committed by Mattie Ruth
parent aa6c9797ca
commit f2688deb0d

View File

@@ -691,7 +691,7 @@ class RTVILLMFunctionCallInProgressMessageData(BaseModel):
tool_call_id: str
function_name: Optional[str] = None
args: Optional[Mapping[str, Any]] = None
arguments: Optional[Mapping[str, Any]] = None
class RTVILLMFunctionCallInProgressMessage(BaseModel):
@@ -1299,7 +1299,7 @@ class RTVIObserver(BaseObserver):
):
data.function_name = frame.function_name
if report_level == RTVIFunctionCallReportLevel.FULL:
data.args = frame.arguments
data.arguments = frame.arguments
message = RTVILLMFunctionCallInProgressMessage(data=data)
await self.send_rtvi_message(message)
elif isinstance(frame, FunctionCallCancelFrame):