092f3b78f2
http/db 类工具的子进程是瘦壳(纯计算),危险操作全在受信任主进程, 套容器是纯开销无隔离收益。调整为: - 开发者预写工具:移除 spec 的 sandbox: profile: stdio,回默认 local 本地执行(仍保留 env_clear + 白名单注入) - tool_manager 产出的工具:spec_yaml 自动写 sandbox: profile: stdio, 不受信任代码(LLM 提供 rust_code)默认进 stdio 容器 - tool_manager 编译:仍走 builder 容器 - 移除 ias-network-runner Dockerfile(当前无工具直接联网) - executor docker 分支仅保留 stdio/builder,删 network 分支 验证:datetime 本地执行 +08:00;tool_manager 产出工具 spec 含 sandbox: profile: stdio 且容器内执行成功;25 测试通过。
22 lines
698 B
YAML
22 lines
698 B
YAML
name: amap_poi_search
|
|
desc: 搜索指定城市内的POI地点(餐饮、酒店、景点、商场、加油站、银行等)。返回名称和地址。用于"附近有什么好吃的""北京有什么景点"等问题
|
|
type: http
|
|
tool: amap
|
|
command: poi_search
|
|
path: /target/release/amap
|
|
risk_level: low
|
|
timeout_secs: 15
|
|
env:
|
|
- AMAP_KEY
|
|
params:
|
|
- name: keywords
|
|
required: true
|
|
desc: 搜索关键词,如"咖啡厅"、"银行"、"加油站"。支持POI类型名称
|
|
- name: city
|
|
required: false
|
|
desc: 城市名称,限定搜索范围。不填则在当前城市搜索
|
|
- name: radius
|
|
required: false
|
|
desc: 搜索半径(米),如 500、1000、3000。默认 1000 米
|
|
|