Feat: inject sys.date into canvas (#13567)

### What problem does this PR solve?

Inject sys.date into canvas.

### Type of change

- [x] New Feature (non-breaking change which adds functionality)
This commit is contained in:
Yongteng Lei
2026-03-12 17:49:13 +08:00
committed by GitHub
parent eda7835d47
commit 13a34d7689
2 changed files with 10 additions and 2 deletions

View File

@ -33,6 +33,7 @@ export enum AgentGlobals {
SysConversationTurns = 'sys.conversation_turns',
SysFiles = 'sys.files',
SysHistory = 'sys.history',
SysDate = 'sys.date',
}
export const AgentGlobalsSysQueryWithBrace = `{${AgentGlobals.SysQuery}}`;
@ -272,5 +273,6 @@ export const EmptyDsl = {
[AgentGlobals.SysConversationTurns]: 0,
[AgentGlobals.SysFiles]: [],
[AgentGlobals.SysHistory]: [],
[AgentGlobals.SysDate]: '',
},
};