Update args field in RTVILLMFunctionCallInProgressMessageData to match API of existing RTVILLMFunctionCallResultData.
This commit is contained in:
committed by
Mattie Ruth
parent
aa6c9797ca
commit
f2688deb0d
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user