Skip to content

Latest commit

 

History

History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 

Tool Configuration

Install dependencies

npm install

- If plugins report errors, please manually configure the absolute path of plugins. Configuration example: -

Agent Tools

config.json

"plugins": {
  "python_execute": {
    "params": {
      "python_bin": "python",
      "delay_time": 10,
      "threshold": 10000
    },
    "enabled": true
  },
  "file_load": {
    "extra": [
      {
        "type": "file-upload"
      }
    ],
    "show": false,
    "params": {
      "threshold": 10000
    },
    "enabled": true
  },
  "search_files": {
    "enabled": true
  },
  "list_files": {
    "params": {
      "threshold": 50
    },
    "enabled": true
  },
  "write_to_file": {
    "enabled": true
  },
  "replace_in_file": {
    "enabled": true
  }
}

Custom Tools

  • Agent Tools must implement the getPrompt function

config.json

"plugins": {
  "baidu_translate": {
    "path": "{resourcesPath}/resources/plugins/script/baidu_translate.js",
    "show": true
  },
  "get_think": {
    "path": "{resourcesPath}/resources/plugins/script/get_think.js",
    "show": false
  },
  "json_parse": {
    "path": "{resourcesPath}/resources/plugins/script/json_parse.js",
    "show": false
  }
}

- More examples: -

./script