Replies: 1 comment
-
|
maybe just a download option for md files will be enough i realise now that the csv download is part of the tables tool! |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Summary
Allow agents to create and output downloadable files (CSV, JSON, PDF, TXT, MD) in chat messages, similar to how the image generation tool currently works.
Current State
FileMessagePartUI component fully supports displaying and downloading filesDesired Behavior
When an agent tool needs to output a file:
serverFileStorage.upload()APIFileMessagePartcomponent)Use Cases
Technical Details
The infrastructure already exists:
serverFileStorage.upload()in/src/lib/file-storage/FileMessagePartcomponent in/src/components/message-parts.tsxThe gap: Agents need:
serverFileStorage.upload()from within toolsImageToolResult)FileUIPartin message renderingAcceptance Criteria
Example Implementation Pattern
Based on existing image tool pattern:
Related Files
/src/lib/file-storage/file-storage.interface.ts- Storage interface/src/lib/ai/tools/image/index.ts- Working example (image tool)/src/components/message-parts.tsx- File rendering UI/src/lib/ai/file-support.ts- Supported MIME typesBeta Was this translation helpful? Give feedback.
All reactions