Feat: Fixed the issue where the newly created agent begin node displayed "undefined". #10427 (#12348)

### What problem does this PR solve?
Feat: Fixed the issue where the newly created agent begin node displayed
"undefined". #10427

### Type of change


- [x] New Feature (non-breaking change which adds functionality)
This commit is contained in:
balibabu
2025-12-31 11:19:33 +08:00
committed by GitHub
parent ae4692a845
commit a07e947644
5 changed files with 28 additions and 16 deletions

View File

@ -15,19 +15,15 @@ import {
initialLlmBaseValues,
} from '@/constants/agent';
export {
AgentDialogueMode,
AgentStructuredOutputField,
JsonSchemaDataType,
Operator,
initialBeginValues,
} from '@/constants/agent';
export * from './pipeline';
export enum AgentDialogueMode {
Conversational = 'conversational',
Task = 'task',
Webhook = 'Webhook',
}
import { ModelVariableType } from '@/constants/knowledge';
import { t } from 'i18next';
@ -109,11 +105,6 @@ export const initialRetrievalValues = {
},
};
export const initialBeginValues = {
mode: AgentDialogueMode.Conversational,
prologue: `Hi! I'm your assistant. What can I do for you?`,
};
export const initialRewriteQuestionValues = {
...initialLlmBaseValues,
language: '',
@ -750,6 +741,8 @@ export const NodeMap = {
[Operator.Loop]: 'loopNode',
[Operator.LoopStart]: 'loopStartNode',
[Operator.ExitLoop]: 'exitLoopNode',
[Operator.ExcelProcessor]: 'ragNode',
[Operator.PDFGenerator]: 'ragNode',
};
export enum BeginQueryType {