refactor: system prompts

This commit is contained in:
Acbox
2026-02-06 16:41:00 +08:00
parent fe71e7d36d
commit 4ad7b2abd7
5 changed files with 40 additions and 63 deletions
+4 -4
View File
@@ -13,8 +13,8 @@ export const createAgent = ({
language = 'Same as the user input',
allowedActions = allActions,
identity,
platforms = [],
currentPlatform = 'Unknown Platform',
channels = [],
currentChannel = 'Unknown Channel',
}: AgentParams, fetch: AuthFetcher) => {
const model = createModel(modelConfig)
@@ -23,7 +23,7 @@ export const createAgent = ({
date: new Date(),
language,
maxContextLoadTime: activeContextTime,
platforms,
channels,
skills: [],
enabledSkills: [],
})
@@ -42,7 +42,7 @@ export const createAgent = ({
const text = user(input.query, {
contactId: identity.contactId,
contactName: identity.contactName,
platform: currentPlatform,
channel: currentChannel,
date: new Date(),
attachments: files,
})