From 9ef46461eaebead171d633211626496ade8cba58 Mon Sep 17 00:00:00 2001 From: yepeiwen01 Date: Wed, 22 Jan 2025 16:34:03 +0800 Subject: [PATCH] =?UTF-8?q?=E6=94=AF=E6=8C=81=E8=BE=93=E5=85=A5dict?= =?UTF-8?q?=E5=88=9B=E5=BB=BAjson=E8=BE=93=E5=87=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- python/tests/test_base_component.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/python/tests/test_base_component.py b/python/tests/test_base_component.py index 26d9b407..bf40e072 100644 --- a/python/tests/test_base_component.py +++ b/python/tests/test_base_component.py @@ -33,7 +33,7 @@ def test_valid_output_with_dict(self): output9 = self.component.create_output(type="plan", text={"detail": "hello", "steps":[{"name": "1", "arguments": {"query": "a", "chat_history": "world"}}]}) output10 = self.component.create_output(type="function_call", text={"thought": "hello", "name": "AppBuilder", "arguments": {"query": "a", "chat_history": "world"}}) output11 = self.component.create_output(type="references", text={"type": "engine", "doc_id": "1", "content": "hello, world", "title": "Have a nice day", "source": "bing", "extra": {"key": "value"}}) - output12 = self.component.create_output(type="json", text={"key": "value"}) + output12 = self.component.create_output(type="json", text={"data": "value"}) self.assertIsInstance(output1, ComponentOutput) self.assertIsInstance(output2, ComponentOutput) self.assertIsInstance(output3, ComponentOutput)