mirror of
https://github.com/langgenius/dify-docs.git
synced 2026-03-27 13:28:32 +07:00
Documentation edits made through Mintlify web editor
This commit is contained in:
@@ -132,39 +132,37 @@ It will be automatically generated by the script.
|
||||
当代码节点运行失败时:
|
||||
|
||||
- 系统会捕获代码和错误信息。
|
||||
|
||||
- 这些信息会作为上下文变量传递到提示中。
|
||||
|
||||
- 系统会生成一个新版本的代码供审查和重试。
|
||||
|
||||
## 配置:
|
||||
|
||||
1. **编写修复提示:**
|
||||
|
||||
/在提示编辑器中,使用变量插入菜单(“/”或“{”)插入变量。
|
||||
|
||||
你可以自定义一个提示,例如:
|
||||
|
||||
在提示编辑器中,使用变量插入菜单(“/”或“{”)插入变量。
|
||||
|
||||
根据以下错误信息修复代码:
|
||||
|
||||
代码:
|
||||
|
||||
{{current_code}}
|
||||
|
||||
{{current_code}}
|
||||
|
||||
错误:
|
||||
|
||||
{{error_message}}
|
||||
|
||||
<img
|
||||
style={{ width:"2874%" }}
|
||||
/>
|
||||

|
||||
|
||||
2. **使用上下文变量(如果在工作流程后续需要)**
|
||||
**使用上下文变量(如果在工作流程后续需要)**
|
||||
|
||||
要启用自动代码修复,请在提示中引用以下上下文变量:
|
||||
|
||||
- {{current_code}}:此节点上次运行的代码。
|
||||
- {{error_message}}:如果上次运行失败,则为错误消息。
|
||||
- {current_code}:此节点上次运行的代码。
|
||||
- {error_message}:如果上次运行失败,则为错误消息。
|
||||
|
||||
你还可以引用任何前置节点的输出变量。
|
||||
|
||||
|
||||
Reference in New Issue
Block a user