mirror of
https://github.com/infiniflow/ragflow.git
synced 2025-12-08 20:42:30 +08:00
### What problem does this PR solve? Feat: Let system variables appear in operator prompts #3221 ### Type of change - [x] New Feature (non-breaking change which adds functionality)
This commit is contained in:
@ -1,3 +1,4 @@
|
||||
import { AgentGlobals } from '@/constants/agent';
|
||||
import { DSL, IFlow, IFlowTemplate } from '@/interfaces/database/flow';
|
||||
import i18n from '@/locales/config';
|
||||
import { BeginId } from '@/pages/agent/constant';
|
||||
@ -61,10 +62,10 @@ export const EmptyDsl = {
|
||||
history: [],
|
||||
path: [],
|
||||
globals: {
|
||||
'sys.query': '',
|
||||
'sys.user_id': '',
|
||||
'sys.conversation_turns': 0,
|
||||
'sys.files': [],
|
||||
[AgentGlobals.SysQuery]: '',
|
||||
[AgentGlobals.SysUserId]: '',
|
||||
[AgentGlobals.SysConversationTurns]: 0,
|
||||
[AgentGlobals.SysFiles]: [],
|
||||
},
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user