From d6fa43655d6adb3915a3323dbfecccef3cd0deea Mon Sep 17 00:00:00 2001 From: "mintlify[bot]" <109931778+mintlify[bot]@users.noreply.github.com> Date: Mon, 11 Aug 2025 07:38:50 +0000 Subject: [PATCH] Documentation edits made through Mintlify web editor --- zh-hans/guides/workflow/node/code.mdx | 18 ++++++++---------- 1 file changed, 8 insertions(+), 10 deletions(-) diff --git a/zh-hans/guides/workflow/node/code.mdx b/zh-hans/guides/workflow/node/code.mdx index a339676c..7155fabe 100644 --- a/zh-hans/guides/workflow/node/code.mdx +++ b/zh-hans/guides/workflow/node/code.mdx @@ -132,39 +132,37 @@ It will be automatically generated by the script. 当代码节点运行失败时: - 系统会捕获代码和错误信息。 - - 这些信息会作为上下文变量传递到提示中。 - - 系统会生成一个新版本的代码供审查和重试。 ## 配置: 1. **编写修复提示:** -/在提示编辑器中,使用变量插入菜单(“/”或“{”)插入变量。 - 你可以自定义一个提示,例如: +在提示编辑器中,使用变量插入菜单(“/”或“{”)插入变量。 + 根据以下错误信息修复代码: 代码: {{current_code}} +{{current_code}} + 错误: {{error_message}} - +![Codefix PN](/images/codefix.PNG) -2. **使用上下文变量(如果在工作流程后续需要)** +**使用上下文变量(如果在工作流程后续需要)** 要启用自动代码修复,请在提示中引用以下上下文变量: -- {{current_code}}:此节点上次运行的代码。 -- {{error_message}}:如果上次运行失败,则为错误消息。 +- {current_code}:此节点上次运行的代码。 +- {error_message}:如果上次运行失败,则为错误消息。 你还可以引用任何前置节点的输出变量。