refactor(office): 移除 render/recalculate/export-pdf 技能,改为直接调用 office 工具

This commit is contained in:
yudshj committed 2026-11-04 18:17:58 +08:00
1 parent 611e42b9a5
commit 78da437976
63 files changed
+312 -495

No files matched your search

+1 -2
View File
@@ -996,9 +996,8 @@ def _smoke_sdk_authoring_cached(base_url: str, executable: Path, update_snapshot
assert len(requests) == 2, requests
prompt = json.dumps(requests[0], ensure_ascii=False)
assert ("- `office`:" in prompt) == (mode != "disabled"), mode
for name in ("office-docx", "office-pptx", "office-xlsx", "office-render", "office-recalculate", "office-export-pdf"):
for name in ("office-docx", "office-pptx", "office-xlsx"):
assert (name in prompt) == (mode != "disabled"), (mode, name)
assert "Render the saved deliverable" not in prompt, mode
assert ("CUSTOM_OFFICE_DOCX" in prompt) == (mode == "replacement"), mode
tool_result = next(block for message in requests[1]["messages"]
for block in message.get("content", [])