Rhizome Web API

网页面板 · REST API · Docker 部署

检查服务中...

运行任务

服务器部署后,用户附件必须上传到服务器,不能填写自己电脑上的本地路径。

运行输出

流式接口会把后端 CLI 日志实时显示在这里。

等待任务...

最终结果

暂无结果
字段填写和 API 调用说明

字段怎么填

任务问题:必填,写自然语言问题。

配置文件:必填,网页/API 推荐填 agent_qwen_web;深度多智能体任务可填 agent_qwen_multi

上传附件:可选。服务器部署后,用户自己的文件必须先上传,页面会自动把上传后的服务器路径带入任务。

自动编号:页面会自动为每次运行生成编号;API 不传 task_id 时后端也会自动生成。

健康检查

curl http://localhost:8801/api/health

上传附件

curl -X POST http://localhost:8801/api/files \
  -F "file=@/path/to/your/report.xlsx"

使用上传后的附件调用任务

curl -X POST http://localhost:8801/api/research \
  -H "Content-Type: application/json" \
  -d '{"question":"请分析这个附件","config_file_name":"agent_qwen_web","task_file_name":"uploads/接口返回的路径.xlsx"}'

Python 调用

import requests

with open("report.xlsx", "rb") as f:
    upload = requests.post(
        "http://localhost:8801/api/files",
        files={"file": f},
        timeout=120,
    ).json()

resp = requests.post(
    "http://localhost:8801/api/research",
    json={
        "question": "请分析这个附件",
        "config_file_name": "agent_qwen_web",
        "task_file_name": upload["task_file_name"],
    },
    timeout=1200,
)
print(resp.json()["boxed_answer"])
print(resp.json()["output"])

完整 OpenAPI 文档在 /api/docs