Tools extension for @easynet/agent-tool: FS, HTTP, util, security (sandbox, SSRF). Same contract as any other extension.
npm install @easynet/agent-tool-buildin内置工具扩展包,配合 @easynet/agent-tool 使用。
在 tool.yaml 中添加该包:
``yaml`
tools:
sandboxedPath: .
allowedHosts: []
blockedHosts: []
list:
- npm:@easynet/agent-tool-buildin
`yaml`
tools:
sandboxedPath: .
allowedHosts: [api.github.com]
blockedHosts: []
list:
- npm:@easynet/agent-tool-buildin#fs.readText
- npm:@easynet/agent-tool-buildin#fs.writeText
- npm:@easynet/agent-tool-buildin#http.fetchJson
说明:
- fs.* 受 sandboxedPath 限制http.*
- 受 allowedHosts / blockedHosts` 限制