GoogleAssistantContextAggregator: properly update function response
This commit is contained in:
@@ -622,7 +622,7 @@ class GoogleAssistantContextAggregator(OpenAIAssistantContextAggregator):
|
|||||||
if message.role == "user":
|
if message.role == "user":
|
||||||
for part in message.parts:
|
for part in message.parts:
|
||||||
if part.function_response and part.function_response.id == tool_call_id:
|
if part.function_response and part.function_response.id == tool_call_id:
|
||||||
part.function_response.response = result
|
part.function_response.response = {"response": result}
|
||||||
|
|
||||||
async def handle_user_image_frame(self, frame: UserImageRawFrame):
|
async def handle_user_image_frame(self, frame: UserImageRawFrame):
|
||||||
await self._update_function_call_result(
|
await self._update_function_call_result(
|
||||||
|
|||||||
Reference in New Issue
Block a user