feat(file-check): 更新文件检核工具 API Key 配置及相关文档

This commit is contained in:
hugo committed 2026-06-17 22:29:15 +08:00
1 parent 634dee4b81
commit 55cf7ff734
74 files changed
+1525 -1182

No files matched your search

@@ -28,11 +28,15 @@ def tool_response(
forbidden_next_tools: list[str] | None = None,
stop_agent_turn: bool = False,
) -> dict[str, Any]:
"""Build a shipping-notice tool JSON response.
"""
构建发货通知 Tool 标准 JSON 响应。
When ``checkpoint`` is omitted and ``task`` is given, checkpoint / human_options /
action_buttons are derived from ``resolve_task_ui_state(task)`` (single read path).
Explicit ``checkpoint`` wins (e.g. ``parse_ok``, ``task_exists``).
核心逻辑:未显式传 checkpoint 时从 task DB 状态推导 checkpoint/human_options/action_buttons;
显式 checkpoint 优先(如 parse_ok、task_exists)。
Args:
stop_agent_turn: True 时要求 Agent 本回合停止,等待用户操作。
forbidden_next_tools: 禁止 Agent 同轮调用的 Tool 名称列表。
"""
from app.services.shipping_notice.state_machine import (
action_buttons_for_checkpoint,