Skip to content
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

PDF and DOCX support in Write File - Feature Improvement, close #548 #1209

Closed
wants to merge 34 commits into from

Conversation

Arkajit-Datta
Copy link
Contributor

@Arkajit-Datta Arkajit-Datta commented Sep 7, 2023

Description

The Write File Tool can now support writing the results and discussions in a PDF or a DOCX file, with proper formatting and images embedded.

Related Issues

#548

Solution and Design

Libraries called pdfkit and htmldocx are being leveraged to do the writing process.
The content initially used to be stored in a Txt file using the write tool is formatted and styled through an HTML file using an LLM.
Images generated by the agent are extracted and embedded in the same HTML file.
This HTML file is now stored in various formats like PDF & DOCX.

Test Plan

Asking the Agent to store the results in a PDF or DOCX file.
Navigate to the workspace folder to find the generated PDF or DOCX.

Type of change

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)
  • Docs update

Checklist

  • My pull request is atomic and focuses on a single change.
  • I have read the contributing guide and my code conforms to the guidelines.
  • I have documented my changes clearly and comprehensively.
  • I have added the required tests.

Arkajit-Datta and others added 30 commits July 21, 2023 18:52
… are fetched inorder to be embedded in the respective file type.
@luciferlinx101
Copy link
Collaborator

Can you resolve the conflicts and raise a PR containing the complete feature along with bug fixes as your previous change was reverted back.

@Arkajit-Datta
Copy link
Contributor Author

yes @luciferlinx101 on it!

@Arkajit-Datta Arkajit-Datta deleted the branch TransformerOptimus:dev September 10, 2023 16:10
@Arkajit-Datta Arkajit-Datta deleted the dev branch September 10, 2023 16:10
@Arkajit-Datta Arkajit-Datta restored the dev branch September 10, 2023 17:02
@Arkajit-Datta Arkajit-Datta reopened this Sep 10, 2023
@Arkajit-Datta Arkajit-Datta deleted the dev branch September 20, 2023 11:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants