What happened / 发生了什么
创建了一个数据库:法律知识库 上传了一份最近的法律条文
查询是 如果开启了 Agentic 知识库检索
有一定概率会出现
ID:
call_95fae017db5b4a91b1259abacall_95fae017db5b4a91b1259aba
Args:
{
"query": "反外国不当域外管辖条例 中国法律"
}
Result:
error: Tool astr_kb_searchastr_kb_search not found. Available tools are: astr_kb_search, astrbot_execute_shell, astrbot_execute_python, astrbot_file_read_tool, astrbot_file_write_tool, astrbot_file_edit_tool, astrbot_grep_tool, future_task, send_message_to_user
Reproduce / 如何复现?
知识库:打开 Agentic 知识库检索
AstrBot version, deployment method (e.g., Windows Docker Desktop deployment), provider used, and messaging platform used. / AstrBot 版本、部署方式(如 Windows Docker Desktop 部署)、使用的提供商、使用的消息平台适配器
Windows Docker Desktop docker-compose部署
services:
astrbot:
image: soulter/astrbot:latest
container_name: astrbot
restart: always
ports:
- "6185:6185"
- "6199:6199"
# - "11451:11451"
volumes:
- ./data:/AstrBot/data
environment:
- TZ=Asia/Shanghai
tty: true
stdin_open: true
deploy:
resources:
limits:
memory: 2G
cpus: "2.0"
networks:
- com_net
ollama:
restart: always
container_name: ollama-bge-m3
image: ollama/ollama:latest
ports:
- 11434:11434
environment:
- TZ=Asia/Shanghai
volumes:
- ./ollama/models/:/root/.ollama
command: serve
networks:
- com_net
networks:
com_net:
name: common
external: true
对话模型使用nvidia/minimaxai/minimax-m2.7
嵌入模型使用ollama/bge-m3
OS
Windows
Logs / 报错日志
2026-04-20 23:04:44.211 | [23:04:44.211] [Core] [INFO] [routes.config:307]: Saving config, is_core=True
2026-04-20 23:04:50.370 | [23:04:50.369] [Core] [INFO] [core.event_bus:61]: [lawyer] [webchat(webchat)] Tiziano/Tiziano: 你知道《中华人民共和国反外国不当域外管辖条例》么?
2026-04-20 23:04:50.408 | [23:04:50.408] [Core] [INFO] [respond.stage:183]: Prepare to send - Tiziano/Tiziano:
2026-04-20 23:04:50.408 | [23:04:50.408] [Core] [INFO] [respond.stage:199]: 应用流式输出(webchat)
2026-04-20 23:05:25.111 | [23:05:25.110] [Core] [INFO] [runners.tool_loop_agent_runner:883]: Agent 使用工具: ['astr_kb_search', 'astr_kb_searchastr_kb_search']
2026-04-20 23:05:25.111 | [23:05:25.111] [Core] [INFO] [runners.tool_loop_agent_runner:932]: 使用工具:astr_kb_search,参数:{'query': '中华人民共和国反外国不当域外管辖条例'}
2026-04-20 23:05:25.437 | [23:05:25.437] [Core] [INFO] [runners.tool_loop_agent_runner:932]: 使用工具:astr_kb_searchastr_kb_search,参数:{'query': '中国反外国制裁法 域外管辖'}
2026-04-20 23:05:25.437 | [23:05:25.437] [Core] [WARN] [v4.23.2] [runners.tool_loop_agent_runner:935]: 未找到指定的工具: astr_kb_searchastr_kb_search,将跳过。
2026-04-20 23:05:25.437 | [23:05:25.437] [Core] [INFO] [runners.tool_loop_agent_runner:1130]: Tool astr_kb_searchastr_kb_search Result: error: Tool astr_kb_searchastr_kb_search not found. Available tools are: astr_kb_search, astrbot_execute_shell, astrbot_execute_python, astrbot_file_read_tool, astrbot_file_write_tool, astrbot_file_edit_tool, astrbot_grep_tool, future_task, send_message_to_user
2026-04-20 23:05:26.484 | [23:05:26.483] [Core] [INFO] [core.astr_main_agent:1020]: Generated chatui title for session baf32a4b-d6f8-44b1-9d0a-4a1c5864f6a9: 了解《反外国不当域外管辖条例》
2026-04-20 23:06:12.144 | [23:06:12.144] [Core] [INFO] [result_decorate.stage:189]: 流式输出已启用,跳过结果装饰阶段
2026-04-20 23:07:23.003 | [23:07:23.003] [Core] [INFO] [core.event_bus:61]: [lawyer] [webchat(webchat)] Tiziano/Tiziano: 你知道《中华人民共和国反外国不当域外管辖条例》么?
2026-04-20 23:07:23.039 | [23:07:23.039] [Core] [INFO] [respond.stage:183]: Prepare to send - Tiziano/Tiziano:
2026-04-20 23:07:23.039 | [23:07:23.039] [Core] [INFO] [respond.stage:199]: 应用流式输出(webchat)
2026-04-20 23:08:00.170 | [23:08:00.169] [Core] [INFO] [runners.tool_loop_agent_runner:883]: Agent 使用工具: ['astr_kb_searchastr_kb_search']
2026-04-20 23:08:00.170 | [23:08:00.170] [Core] [INFO] [runners.tool_loop_agent_runner:932]: 使用工具:astr_kb_searchastr_kb_search,参数:{'query': '反外国不当域外管辖条例 中国法律'}
2026-04-20 23:08:00.170 | [23:08:00.170] [Core] [WARN] [v4.23.2] [runners.tool_loop_agent_runner:935]: 未找到指定的工具: astr_kb_searchastr_kb_search,将跳过。
2026-04-20 23:08:00.171 | [23:08:00.170] [Core] [INFO] [runners.tool_loop_agent_runner:1130]: Tool astr_kb_searchastr_kb_search Result: error: Tool astr_kb_searchastr_kb_search not found. Available tools are: astr_kb_search, astrbot_execute_shell, astrbot_execute_python, astrbot_file_read_tool, astrbot_file_write_tool, astrbot_file_edit_tool, astrbot_grep_tool, future_task, send_message_to_user
2026-04-20 23:08:04.367 | [23:08:04.366] [Core] [INFO] [core.astr_main_agent:1020]: Generated chatui title for session f983889c-2e31-477d-aebe-f58539d2ff75: 中国反外国域外管辖条例
2026-04-20 23:08:43.767 | [23:08:43.766] [Core] [INFO] [runners.tool_loop_agent_runner:883]: Agent 使用工具: ['astr_kb_searchastr_kb_search']
2026-04-20 23:08:43.767 | [23:08:43.767] [Core] [INFO] [runners.tool_loop_agent_runner:932]: 使用工具:astr_kb_searchastr_kb_search,参数:{'query': '反外国不当域外管辖条例 中国法律'}
2026-04-20 23:08:43.767 | [23:08:43.767] [Core] [WARN] [v4.23.2] [runners.tool_loop_agent_runner:935]: 未找到指定的工具: astr_kb_searchastr_kb_search,将跳过。
2026-04-20 23:08:43.767 | [23:08:43.767] [Core] [INFO] [runners.tool_loop_agent_runner:1130]: Tool astr_kb_searchastr_kb_search Result: error: Tool astr_kb_searchastr_kb_search not found. Available tools are: astr_kb_search, astrbot_execute_shell, astrbot_execute_python, astrbot_file_read_tool, astrbot_file_write_tool, astrbot_file_edit_tool, astrbot_grep_tool, future_task, send_message_to_user
2026-04-20 23:09:27.135 | [23:09:27.134] [Core] [INFO] [runners.tool_loop_agent_runner:883]: Agent 使用工具: ['astr_kb_searchastr_kb_search']
2026-04-20 23:09:27.135 | [23:09:27.135] [Core] [INFO] [runners.tool_loop_agent_runner:932]: 使用工具:astr_kb_searchastr_kb_search,参数:{'query': '反外国不当域外管辖条例 中国法律'}
2026-04-20 23:09:27.135 | [23:09:27.135] [Core] [WARN] [v4.23.2] [runners.tool_loop_agent_runner:935]: 未找到指定的工具: astr_kb_searchastr_kb_search,将跳过。
2026-04-20 23:09:27.135 | [23:09:27.135] [Core] [INFO] [runners.tool_loop_agent_runner:1130]: Tool astr_kb_searchastr_kb_search Result: error: Tool astr_kb_searchastr_kb_search not found. Available tools are: astr_kb_search, astrbot_execute_shell, astrbot_execute_python, astrbot_file_read_tool, astrbot_file_write_tool, astrbot_file_edit_tool, astrbot_grep_tool, future_task, send_message_to_user
2026-04-20 23:10:08.463 | [23:10:08.462] [Core] [INFO] [result_decorate.stage:189]: 流式输出已启用,跳过结果装饰阶段
Are you willing to submit a PR? / 你愿意提交 PR 吗?
Code of Conduct
What happened / 发生了什么
创建了一个数据库:法律知识库 上传了一份最近的法律条文
查询是 如果开启了 Agentic 知识库检索
有一定概率会出现
Reproduce / 如何复现?
知识库:打开 Agentic 知识库检索
AstrBot version, deployment method (e.g., Windows Docker Desktop deployment), provider used, and messaging platform used. / AstrBot 版本、部署方式(如 Windows Docker Desktop 部署)、使用的提供商、使用的消息平台适配器
Windows Docker Desktop docker-compose部署
对话模型使用nvidia/minimaxai/minimax-m2.7
嵌入模型使用ollama/bge-m3
OS
Windows
Logs / 报错日志
2026-04-20 23:04:44.211 | [23:04:44.211] [Core] [INFO] [routes.config:307]: Saving config, is_core=True
2026-04-20 23:04:50.370 | [23:04:50.369] [Core] [INFO] [core.event_bus:61]: [lawyer] [webchat(webchat)] Tiziano/Tiziano: 你知道《中华人民共和国反外国不当域外管辖条例》么?
2026-04-20 23:04:50.408 | [23:04:50.408] [Core] [INFO] [respond.stage:183]: Prepare to send - Tiziano/Tiziano:
2026-04-20 23:04:50.408 | [23:04:50.408] [Core] [INFO] [respond.stage:199]: 应用流式输出(webchat)
2026-04-20 23:05:25.111 | [23:05:25.110] [Core] [INFO] [runners.tool_loop_agent_runner:883]: Agent 使用工具: ['astr_kb_search', 'astr_kb_searchastr_kb_search']
2026-04-20 23:05:25.111 | [23:05:25.111] [Core] [INFO] [runners.tool_loop_agent_runner:932]: 使用工具:astr_kb_search,参数:{'query': '中华人民共和国反外国不当域外管辖条例'}
2026-04-20 23:05:25.437 | [23:05:25.437] [Core] [INFO] [runners.tool_loop_agent_runner:932]: 使用工具:astr_kb_searchastr_kb_search,参数:{'query': '中国反外国制裁法 域外管辖'}
2026-04-20 23:05:25.437 | [23:05:25.437] [Core] [WARN] [v4.23.2] [runners.tool_loop_agent_runner:935]: 未找到指定的工具: astr_kb_searchastr_kb_search,将跳过。
2026-04-20 23:05:25.437 | [23:05:25.437] [Core] [INFO] [runners.tool_loop_agent_runner:1130]: Tool
astr_kb_searchastr_kb_searchResult: error: Tool astr_kb_searchastr_kb_search not found. Available tools are: astr_kb_search, astrbot_execute_shell, astrbot_execute_python, astrbot_file_read_tool, astrbot_file_write_tool, astrbot_file_edit_tool, astrbot_grep_tool, future_task, send_message_to_user2026-04-20 23:05:26.484 | [23:05:26.483] [Core] [INFO] [core.astr_main_agent:1020]: Generated chatui title for session baf32a4b-d6f8-44b1-9d0a-4a1c5864f6a9: 了解《反外国不当域外管辖条例》
2026-04-20 23:06:12.144 | [23:06:12.144] [Core] [INFO] [result_decorate.stage:189]: 流式输出已启用,跳过结果装饰阶段
2026-04-20 23:07:23.003 | [23:07:23.003] [Core] [INFO] [core.event_bus:61]: [lawyer] [webchat(webchat)] Tiziano/Tiziano: 你知道《中华人民共和国反外国不当域外管辖条例》么?
2026-04-20 23:07:23.039 | [23:07:23.039] [Core] [INFO] [respond.stage:183]: Prepare to send - Tiziano/Tiziano:
2026-04-20 23:07:23.039 | [23:07:23.039] [Core] [INFO] [respond.stage:199]: 应用流式输出(webchat)
2026-04-20 23:08:00.170 | [23:08:00.169] [Core] [INFO] [runners.tool_loop_agent_runner:883]: Agent 使用工具: ['astr_kb_searchastr_kb_search']
2026-04-20 23:08:00.170 | [23:08:00.170] [Core] [INFO] [runners.tool_loop_agent_runner:932]: 使用工具:astr_kb_searchastr_kb_search,参数:{'query': '反外国不当域外管辖条例 中国法律'}
2026-04-20 23:08:00.170 | [23:08:00.170] [Core] [WARN] [v4.23.2] [runners.tool_loop_agent_runner:935]: 未找到指定的工具: astr_kb_searchastr_kb_search,将跳过。
2026-04-20 23:08:00.171 | [23:08:00.170] [Core] [INFO] [runners.tool_loop_agent_runner:1130]: Tool
astr_kb_searchastr_kb_searchResult: error: Tool astr_kb_searchastr_kb_search not found. Available tools are: astr_kb_search, astrbot_execute_shell, astrbot_execute_python, astrbot_file_read_tool, astrbot_file_write_tool, astrbot_file_edit_tool, astrbot_grep_tool, future_task, send_message_to_user2026-04-20 23:08:04.367 | [23:08:04.366] [Core] [INFO] [core.astr_main_agent:1020]: Generated chatui title for session f983889c-2e31-477d-aebe-f58539d2ff75: 中国反外国域外管辖条例
2026-04-20 23:08:43.767 | [23:08:43.766] [Core] [INFO] [runners.tool_loop_agent_runner:883]: Agent 使用工具: ['astr_kb_searchastr_kb_search']
2026-04-20 23:08:43.767 | [23:08:43.767] [Core] [INFO] [runners.tool_loop_agent_runner:932]: 使用工具:astr_kb_searchastr_kb_search,参数:{'query': '反外国不当域外管辖条例 中国法律'}
2026-04-20 23:08:43.767 | [23:08:43.767] [Core] [WARN] [v4.23.2] [runners.tool_loop_agent_runner:935]: 未找到指定的工具: astr_kb_searchastr_kb_search,将跳过。
2026-04-20 23:08:43.767 | [23:08:43.767] [Core] [INFO] [runners.tool_loop_agent_runner:1130]: Tool
astr_kb_searchastr_kb_searchResult: error: Tool astr_kb_searchastr_kb_search not found. Available tools are: astr_kb_search, astrbot_execute_shell, astrbot_execute_python, astrbot_file_read_tool, astrbot_file_write_tool, astrbot_file_edit_tool, astrbot_grep_tool, future_task, send_message_to_user2026-04-20 23:09:27.135 | [23:09:27.134] [Core] [INFO] [runners.tool_loop_agent_runner:883]: Agent 使用工具: ['astr_kb_searchastr_kb_search']
2026-04-20 23:09:27.135 | [23:09:27.135] [Core] [INFO] [runners.tool_loop_agent_runner:932]: 使用工具:astr_kb_searchastr_kb_search,参数:{'query': '反外国不当域外管辖条例 中国法律'}
2026-04-20 23:09:27.135 | [23:09:27.135] [Core] [WARN] [v4.23.2] [runners.tool_loop_agent_runner:935]: 未找到指定的工具: astr_kb_searchastr_kb_search,将跳过。
2026-04-20 23:09:27.135 | [23:09:27.135] [Core] [INFO] [runners.tool_loop_agent_runner:1130]: Tool
astr_kb_searchastr_kb_searchResult: error: Tool astr_kb_searchastr_kb_search not found. Available tools are: astr_kb_search, astrbot_execute_shell, astrbot_execute_python, astrbot_file_read_tool, astrbot_file_write_tool, astrbot_file_edit_tool, astrbot_grep_tool, future_task, send_message_to_user2026-04-20 23:10:08.463 | [23:10:08.462] [Core] [INFO] [result_decorate.stage:189]: 流式输出已启用,跳过结果装饰阶段
Are you willing to submit a PR? / 你愿意提交 PR 吗?
Code of Conduct