Преглед изворни кода

fix(demo): no isNodeChildrenPrivate default config in demo (#473)

Yiwei Mao пре 6 месеци
родитељ
комит
185480d540

+ 0 - 5
apps/demo-free-layout/src/hooks/use-editor-props.tsx

@@ -179,11 +179,6 @@ export function useEditorProps(
        */
       variableEngine: {
         enable: true,
-        chainConfig: {
-          isNodeChildrenPrivate(node) {
-            return false;
-          },
-        },
       },
       /**
        * Redo/Undo enable

+ 4 - 4
apps/docs/src/en/guide/advanced/variable/basic.mdx

@@ -19,9 +19,9 @@ For example, in an "Intelligent Q&A" flow:
 <div style={{display: 'flex', gap: '20px'}}>
   <img style={{width: "50%"}} loading="lazy" src="/variable/variable-biz-context-websearch-llm.png" />
   <div>
-    <p style={{marginTop: 10}}>1. **`WebSearch` Node**: Responsible for searching the web and putting the found knowledge (e.g., the answer to "What's the weather like today?") into a variable named `searchResult`.</p>
-    <p style={{marginTop: 5}}>2. **`LLM` Node**: It takes the `searchResult` "messenger," reads its content, and then answers the user in a more natural and friendly way.</p>
-    <p style={{marginTop: 5}}>3. In this process, the type of `searchResult` is "string" because it contains text content.</p>
+    <p style={{marginTop: 10}}>1. **`WebSearch` Node**: Responsible for searching the web and putting the found knowledge (e.g., the answer to "What's the weather like today?") into a variable named `natural_language_desc`.</p>
+    <p style={{marginTop: 5}}>2. **`LLM` Node**: It takes the `natural_language_desc` "messenger," reads its content, and then answers the user in a more natural and friendly way.</p>
+    <p style={{marginTop: 5}}>3. In this process, the type of `natural_language_desc` is "string" because it contains text content.</p>
   </div>
 </div>
 
@@ -78,4 +78,4 @@ You can enable the Variable Engine with a simple configuration to experience its
     enable: true
   }
 }
-```
+```

+ 3 - 3
apps/docs/src/zh/guide/advanced/variable/basic.mdx

@@ -19,9 +19,9 @@
 <div style={{display: 'flex', gap: '20px'}}>
   <img style={{width: "50%"}} loading="lazy" src="/variable/variable-biz-context-websearch-llm.png" />
   <div>
-    <p style={{marginTop: 10}}>1. **`WebSearch` 节点**:负责上网搜索,然后把搜到的知识(比如“今天天气怎么样?”的答案)放进一个名为 `searchResult` 的变量里。</p>
-    <p style={{marginTop: 5}}>2. **`LLM` 节点**:它会接过 `searchResult` 这个“信使”,读取里面的内容,然后用更自然、更友好的方式回答用户。</p>
-    <p style={{marginTop: 5}}>3. 在这个过程中,`searchResult` 的类型就是“字符串”,因为它装的是文字内容。</p>
+    <p style={{marginTop: 10}}>1. **`WebSearch` 节点**:负责上网搜索,然后把搜到的知识(比如“今天天气怎么样?”的答案)放进一个名为 `natural_language_desc` 的变量里。</p>
+    <p style={{marginTop: 5}}>2. **`LLM` 节点**:它会接过 `natural_language_desc` 这个“信使”,读取里面的内容,然后用更自然、更友好的方式回答用户。</p>
+    <p style={{marginTop: 5}}>3. 在这个过程中,`natural_language_desc` 的类型就是“字符串”,因为它装的是文字内容。</p>
   </div>
 </div>