Skip to content

Conversation

@aviralgarg05
Copy link

Description

This pull request introduces the PptxNodeToolkit, a new toolkit designed to generate PowerPoint (.pptx) presentations by leveraging the PptxGenJS Node.js library.

While CAMEL already provides a native PPTXToolkit based on python-pptx, this new toolkit offers a "hybrid" alternative for users who require the specific layout capabilities, template support, or ease of use provided by the PptxGenJS ecosystem.

Key Changes:

  1. PptxNodeToolkit: A Python wrapper that manages the execution of a Node.js bridge.
  2. generate_pptx.js: A Node.js script located in camel/toolkits/scripts/ that handles the actual presentation creation, slide formatting (titles, headings, bullets), and table rendering.
  3. Seamless Integration: Serializes toolkit content to JSON and communicates with the Node.js process via subprocess, returning status messages to the agent.

Note: Users will need node and pptxgenjs installed in their environment to utilize this specific toolkit.

Checklist

Go over all the following points, and put an x in all the boxes that apply.

  • I have read the CONTRIBUTION guide (required)
  • I have linked this PR to an issue using the Development section on the right sidebar or by adding Fixes #915 in the PR description (required)
  • I have checked if any dependencies need to be added or updated in pyproject.toml and uv lock (Node.js dependency is external)
  • I have updated the tests accordingly (required for a bug fix or a new feature)
  • I have updated the documentation if needed
  • I have added examples if this is a new feature

@coderabbitai
Copy link
Contributor

coderabbitai bot commented Jan 18, 2026

Important

Review skipped

Auto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

  • 🔍 Trigger a full review
✨ Finishing touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

Copy link
Member

@lightaime lightaime left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @aviralgarg05. Great work. Left some minor comments

Copy link
Collaborator

@JINO-ROHIT JINO-ROHIT left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thanks @aviralgarg05 can you add/update the example file to show the new changes/differences, would be also nice to add in the comments the pre-reqs for using this toolkit, ie node etc

Copy link
Collaborator

@bytecii bytecii left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Left some comments. Thanks!

- Add node engine requirement in package.json
- Add scripts README
- Implement theme support in JS and Python
- Update unit tests
- Fix unused variable in test
- Sort imports in camel/toolkits/__init__.py
- Fix line length violations in camel/toolkits/pptx_node_toolkit.py
Resolved merge conflicts, added PyYAML dependency, fixed formatting issues, and verified tests.
@review-notebook-app
Copy link

Check out this pull request on  ReviewNB

See visual diffs & provide feedback on Jupyter Notebooks.


Powered by ReviewNB

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.

5 participants