🎨 refactor(complex_example.json): rename "PythonFunction" to "PythonFunctionTool" and add "description" and "name" fields
The "PythonFunction" type has been renamed to "PythonFunctionTool" to better reflect its purpose. Additionally, two new fields have been added: "description" and "name". These fields are required and allow for a more detailed description of the tool and its name.
This commit is contained in:
parent
647f7b7a16
commit
dedbe3c906
1 changed files with 21 additions and 1 deletions
|
|
@ -197,7 +197,7 @@
|
||||||
"y": 136.29836646158452
|
"y": 136.29836646158452
|
||||||
},
|
},
|
||||||
"data": {
|
"data": {
|
||||||
"type": "PythonFunction",
|
"type": "PythonFunctionTool",
|
||||||
"node": {
|
"node": {
|
||||||
"template": {
|
"template": {
|
||||||
"code": {
|
"code": {
|
||||||
|
|
@ -210,6 +210,26 @@
|
||||||
"type": "str",
|
"type": "str",
|
||||||
"list": false
|
"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"
|
"_type": "python_function"
|
||||||
},
|
},
|
||||||
"description": "Python function to be executed.",
|
"description": "Python function to be executed.",
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue