taolib.symphony.prompt.internal#

内部提示词模板。

用于续运提示词和默认提示词构建,不使用 Jinja2。 使用 f-string 语法提供类型安全的模板插值, 无需外部模板引擎。

Functions#

build_continuation_prompt(→ str)

构建续运轮次提示词。

build_default_prompt(→ str)

构建默认提示词(无用户模板时的回退)。

Module Contents#

taolib.symphony.prompt.internal.build_continuation_prompt(identifier: str, title: str, turn: int, max_turns: int) str#

构建续运轮次提示词。

当 Codex 智能体需要继续上一轮未完成的工作时, 使用此模板生成引导性提示词。

参数:
  • identifier -- Issue 标识符。

  • title -- Issue 标题。

  • turn -- 当前轮次号。

  • max_turns -- 最大轮次数。

返回:

续运提示词字符串。

taolib.symphony.prompt.internal.build_default_prompt(identifier: str, title: str) str#

构建默认提示词(无用户模板时的回退)。

当用户未提供 WORKFLOW.md 模板时, 使用此模板生成基本的提示词。

参数:
  • identifier -- Issue 标识符。

  • title -- Issue 标题。

返回:

默认提示词字符串。