Skip to content

Commit

Permalink
feat(backend): improve prompt about attaching files
Browse files Browse the repository at this point in the history
  • Loading branch information
Mati365 committed Dec 26, 2024
1 parent 31445ce commit 2451771
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,11 @@ export function createAttachedFilesMessagePrefix(files: SdkMessageFileT[]) {
'User attached these files to this message:',
...files.map(file => `- ${file.resource.name}`),
'\n---\n',
'Rules for handling attached files:',
'- Please skip describing the content of these files if it is not necessary.',
'- If any app is attached, please let the application analyze the content of the files.',
'- Use attached app approach to analyze the content of the files.',
'- You can add your own comments to the content of the files.',
].join('\n');
};
}

0 comments on commit 2451771

Please sign in to comment.