Fix: Fixed the issue of clicking to run the agent causing an error #3221 (#8956)

### What problem does this PR solve?

Fix: Fixed the issue of clicking to run the agent causing an error #3221

### Type of change

- [x] Bug Fix (non-breaking change which fixes an issue)
This commit is contained in:
balibabu
2025-07-22 09:27:21 +08:00
committed by GitHub
parent 6691532079
commit 45b01e1bcb
3 changed files with 7 additions and 8 deletions

View File

@ -1295,6 +1295,9 @@ This delimiter is used to split the input text into several text pieces echo of
agentDescription: agentDescription:
'Builds agent components equipped with reasoning, tool usage, and multi-agent collaboration. ', 'Builds agent components equipped with reasoning, tool usage, and multi-agent collaboration. ',
maxRecords: 'Max records', maxRecords: 'Max records',
stringTransform: 'String transform',
userFillUp: 'Input',
codeExec: 'Code',
}, },
llmTools: { llmTools: {
bad_calculator: { bad_calculator: {

View File

@ -1248,6 +1248,9 @@ General实体和关系提取提示来自 GitHub - microsoft/graphrag基于
agent: 'Agent', agent: 'Agent',
agentDescription: '构建具备推理、工具调用和多智能体协同的智能体组件。', agentDescription: '构建具备推理、工具调用和多智能体协同的智能体组件。',
maxRecords: '最大记录数', maxRecords: '最大记录数',
stringTransform: '文本处理',
userFillUp: '等待输入',
codeExec: '代码',
}, },
footer: { footer: {
profile: 'All rights reserved @ React', profile: 'All rights reserved @ React',

View File

@ -269,14 +269,7 @@ export const useSendNextMessage = () => {
answer: prologue, answer: prologue,
}); });
} }
}, [ }, [addNewestOneAnswer, agentId, prologue, send, sendFormMessage]);
addNewestOneAnswer,
agentId,
getBeginNodeDataQuery,
prologue,
send,
sendFormMessage,
]);
useEffect(() => { useEffect(() => {
addEventList(answerList); addEventList(answerList);