mirror of
https://github.com/memohai/Memoh.git
synced 2026-04-27 07:16:19 +09:00
feat(agent): allow agent use external url in attachment
This commit is contained in:
@@ -117,15 +117,19 @@ Files user uploaded will added to your workspace, the file path will be included
|
||||
### Send
|
||||
|
||||
**For using channel tools**: Add file path to the message header.
|
||||
|
||||
**For directly request**: Use the following format:
|
||||
|
||||
${block([
|
||||
'<attachments>',
|
||||
'- /path/to/file.pdf',
|
||||
'- /path/to/video.mp4',
|
||||
'https://example.com/image.png',
|
||||
'</attachments>',
|
||||
].join('\n'))}
|
||||
|
||||
External URLs are also supported.
|
||||
|
||||
Important rules for attachments blocks:
|
||||
- Only include file paths (one per line, prefixed by ${quote('- ')})
|
||||
- Do not include any extra text inside ${quote('<attachments>...</attachments>')}
|
||||
|
||||
Reference in New Issue
Block a user