From dedbe3c906807f9f1ede4d4b941960b0b34e05dc Mon Sep 17 00:00:00 2001 From: Gabriel Luiz Freitas Almeida Date: Wed, 31 May 2023 15:40:20 -0300 Subject: [PATCH] =?UTF-8?q?=F0=9F=8E=A8=20refactor(complex=5Fexample.json)?= =?UTF-8?q?:=20rename=20"PythonFunction"=20to=20"PythonFunctionTool"=20and?= =?UTF-8?q?=20add=20"description"=20and=20"name"=20fields=20The=20"PythonF?= =?UTF-8?q?unction"=20type=20has=20been=20renamed=20to=20"PythonFunctionTo?= =?UTF-8?q?ol"=20to=20better=20reflect=20its=20purpose.=20Additionally,=20?= =?UTF-8?q?two=20new=20fields=20have=20been=20added:=20"description"=20and?= =?UTF-8?q?=20"name".=20These=20fields=20are=20required=20and=20allow=20fo?= =?UTF-8?q?r=20a=20more=20detailed=20description=20of=20the=20tool=20and?= =?UTF-8?q?=20its=20name.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- tests/data/complex_example.json | 22 +++++++++++++++++++++- 1 file changed, 21 insertions(+), 1 deletion(-) diff --git a/tests/data/complex_example.json b/tests/data/complex_example.json index 8d46a97d6..89a3b9324 100644 --- a/tests/data/complex_example.json +++ b/tests/data/complex_example.json @@ -197,7 +197,7 @@ "y": 136.29836646158452 }, "data": { - "type": "PythonFunction", + "type": "PythonFunctionTool", "node": { "template": { "code": { @@ -210,6 +210,26 @@ "type": "str", "list": false }, + "description": { + "required": true, + "placeholder": "", + "show": true, + "multiline": true, + "value": "My description", + "name": "description", + "type": "str", + "list": false + }, + "name": { + "required": true, + "placeholder": "", + "show": true, + "multiline": true, + "value": "My Tool", + "name": "name", + "type": "str", + "list": false + }, "_type": "python_function" }, "description": "Python function to be executed.",