refactor(office): keep skill API and carrier composition unchanged

This commit is contained in:
yudshj committed 2026-10-12 11:57:13 +08:00
1 parent 839033f993
commit 88f5ed353e
205 files changed
+678 -843

No files matched your search

+1 -1
View File
@@ -927,7 +927,7 @@ def _smoke_sdk_authoring_cached(base_url: str, executable: Path, update_snapshot
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"):
assert (name in prompt) == (mode == "replacement" and name == "office-docx"), (mode, name)
assert (name in prompt) == (mode != "disabled"), (mode, name)
assert "render --input" not in prompt and "libreofficeKit" not in prompt, mode
assert ("CUSTOM_OFFICE_DOCX" in prompt) == (mode == "replacement"), mode
tool_result = next(block for message in requests[1]["messages"]