add autogpt, readfile and writefile tools

This commit is contained in:
Henry
2023-04-22 15:06:13 +01:00
parent 237eca2fd0
commit 4c576db1eb
12 changed files with 204 additions and 11 deletions
+2 -2
View File
@@ -292,9 +292,9 @@ export const rearrangeToolsOrdering = (newValues, sourceNodeId) => {
newValues.push(`{{${sourceNodeId}.data.instance}}`)
const sortKey = (item) => {
if (item.includes('requestsGet')) {
if (item.includes('requestsGet') || item.includes('readFile')) {
return 0
} else if (item.includes('requestsPost')) {
} else if (item.includes('requestsPost') || item.includes('writeFile')) {
return 1
} else {
return 2