GoogleAssistantContextAggregator: allow any value as function call result

This commit is contained in:
Aleix Conchillo Flaqué
2025-03-25 19:11:27 -07:00
parent 9450b07ec5
commit 077952b658
2 changed files with 7 additions and 8 deletions

View File

@@ -735,4 +735,4 @@ class TestGoogleAssistantContextAggregator(
def check_function_call_result(self, context: OpenAILLMContext, index: int, content: Any):
obj = glm.Content.to_dict(context.messages[index])
assert obj["parts"][0]["function_response"]["response"] == content
assert obj["parts"][0]["function_response"]["response"]["value"] == json.dumps(content)