Feat: Add the JS code (or other) executor component to Agent. #4977 (#7677)

### What problem does this PR solve?

Feat: Add the JS code (or other) executor component to Agent. #4977

### Type of change


- [x] New Feature (non-breaking change which adds functionality)
This commit is contained in:
balibabu
2025-05-16 09:53:00 +08:00
committed by GitHub
parent 772992812a
commit 008e55a65e
14 changed files with 293 additions and 7 deletions

View File

@ -1262,6 +1262,9 @@ This delimiter is used to split the input text into several text pieces echo of
knowledgeBasesTip:
'Select the knowledge bases to associate with this chat assistant, or choose variables containing knowledge base IDs below.',
knowledgeBaseVars: 'Knowledge base variables',
code: 'Code',
codeDescription: 'It allows developers to write custom Python logic.',
inputVariables: 'Input variables',
runningHintText: 'is running...🕞',
},
},

View File

@ -364,7 +364,8 @@ export default {
{knowledge}
上記がナレッジベースです。`,
systemMessage: '入力してください!',
systemTip: 'LLMが質問に答える際に従う指示を設定します。モデルがネイティブで推論をサポートしている場合、推論を停止するためにプロンプトに //no_thinking を追加できます。',
systemTip:
'LLMが質問に答える際に従う指示を設定します。モデルがネイティブで推論をサポートしている場合、推論を停止するためにプロンプトに //no_thinking を追加できます。',
topN: 'トップN',
topNTip: `類似度スコアがしきい値を超えるチャンクのうち、上位N件のみがLLMに供給されます。`,
variable: '変数',

View File

@ -1158,6 +1158,9 @@ export default {
promptMessage: '提示詞是必填項',
promptTip:
'系統提示為大型模型提供任務描述、規定回覆方式,以及設定其他各種要求。系統提示通常與 key變數合用透過變數設定大型模型的輸入資料。你可以透過斜線或 (x) 按鈕顯示可用的 key。',
code: '程式碼',
codeDescription: '它允許開發人員編寫自訂 Python 邏輯。',
inputVariables: '輸入變數',
runningHintText: '正在運行...🕞',
},
footer: {

View File

@ -1217,6 +1217,10 @@ General实体和关系提取提示来自 GitHub - microsoft/graphrag基于
'系统提示为大模型提供任务描述、规定回复方式,以及设置其他各种要求。系统提示通常与 key (变量)合用,通过变量设置大模型的输入数据。你可以通过斜杠或者 (x) 按钮显示可用的 key。',
knowledgeBasesTip: '选择关联的知识库或者在下方选择包含知识库ID的变量。',
knowledgeBaseVars: '知识库变量',
code: '代码',
codeDescription: '它允许开发人员编写自定义 Python 逻辑。',
inputVariables: '输入变量',
addVariable: '新增变量',
runningHintText: '正在运行中...🕞',
},
footer: {