feat(agent): add download_asset tool and prompt instructions

This commit is contained in:
yiling
2026-07-29 16:56:06 +08:00
parent 4a4d9cdfb7
commit db04df88f1
5 changed files with 295 additions and 0 deletions
@@ -174,6 +174,8 @@ export class AgentChatPromptBuilder {
}
}
instruction += `\n\nIf you need a local file on disk to run bash commands or scripts (e.g. processing or combining assets), call the 'download_asset' tool with assetId. After finishing the job, remember to delete the temporary downloaded file.`
if (this.userInfo) {
instruction += `\n\nUser Info:\nName: ${this.userInfo.name}\nRole: ${this.userInfo.role}`
}