File BLOB tool interface (create_blob_message) #6663
Unanswered
Karlostavitch1
asked this question in
Help
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Self Checks
Content
I am trying to make a custom built-in tool for the DIFY project and have trouble understanding the create_blob_message tool interface.
According to the documentation:
File BLOB
If you need to return the raw data of a file, such as images, audio, video, PPT, Word, Excel, etc., you can use the following interface.
An example output I am receiving is:
{
"text": "Link: /files/tools/7819aadc-85de-4b2f-b7c2-1e8b17eeb5c9.bin\nLink: /files/tools/9e1b28c3-2cc9-4a98-8aa3-121e56b92381.bin\nLink: /files/tools/ac840a7b-1f9f-48f2-9fbc-3e18f2927658.pdf",
"files": [],
"json": []
}
It appears as if word, ppt, excel etc are just being saved as .bin files despite assigning the meta and save_as parameters and the links just point to an API endpoint, unusable in context.
I also note they are added to the text parameter in the output JSON, rather than files? not understanding what they are used for, is that expected behaviour?
I've tried finding as much documentation as I can, but I can't find specific information about the usage of this feature.
Is anyone able to enlighten me on the expected use and behavior of this interface please?
Beta Was this translation helpful? Give feedback.
All reactions