-
Notifications
You must be signed in to change notification settings - Fork 1.5k
feat: support image writing for filewrite toolkit #2478
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thanks @JINO-ROHIT 's contribution, the goal of this issue is to enable embedding images within other file formats, such as PDFs, rather than solely generating standalone image files (e.g., .png), I think I didn't explain it's clearly in the issue, sorry for the confusion
@@ -31,12 +34,13 @@ | |||
|
|||
@MCPServer() | |||
class FileWriteToolkit(BaseToolkit): | |||
r"""A toolkit for creating, writing, and modifying text in files. | |||
"""A toolkit for creating, writing, and modifying text and image files. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
use r
for docstring writing, refer to https://github.com/camel-ai/camel/blob/master/CONTRIBUTING.md#1-use-the-triple-quoted-string-with-r-raw-string
"""A toolkit for creating, writing, and modifying text and image files. | |
r"""A toolkit for creating, writing, and modifying text and image files. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not quite sure if agent can use this tool to generate image but generating bytes. Correct me if I am wrong
hello @JINO-ROHIT ,Does anything block you?please lets us know if you need any help,thanks |
Links #2441