Files
Agent-System-Backend/internal/prompts/library/tool-run-python.md
weichen 9aa9129753 Retire legacy Word guidance from production workflows
Why: Agent-facing prompts and house-style recipes must exercise the shared renderer instead of leaving the old Python Word builder as the ordinary production route.
Evidence: Prompt routing tests, house-style Python tests, affected-package race checks, full Go tests, vet, builds, and static binary verification passed locally.
Impact: Word guidance now calls render_document, labels the pending organization-default candidate, routes controlled/project work to RDM, and gates housestyle.build behind AGENT_SYSTEM_LEGACY_WORD_COMPARISON=1.
Refs: Unified Document Renderer Task 10; Renderer d449b9f779f2f968f8ac556b89940a6c9aaf3fdc
2026-10-15 19:41:39 +00:00

9 lines
684 B
Markdown

---
id: tool.run_python
layer: tool
version: 4
title: run_python 工具描述
description: Python 执行原语的模型侧说明文案
---
执行完整 Python 脚本(python3,工作目录=会话工作区)。适用:数据处理、生成 Excel/PPT/图片(housestyle kit)、批量操作。普通 Word 生产交付不用 Python,调用 `render_document`;受控或项目 Word 交给 RDM。任何 Office 交付物都禁止用 zipfile 或字符串手工拼 OOXML。基础层已有 openpyxl、python-pptx 等;缺包用 python_env,禁止 pip install。失败先读退出码与 traceback,不原样盲试。生成 xlsx/pptx 前读 `$AGENT_SKILLS_DIR/house-style/SKILL.md`。