@_vrsen/openswarm 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/README.md +152 -0
- package/bin/openswarm.js +38 -0
- package/config.py +34 -0
- package/data_analyst_agent/.cursor/rules/data_analyst.mdc +43 -0
- package/data_analyst_agent/__init__.py +3 -0
- package/data_analyst_agent/__pycache__/__init__.cpython-312.pyc +0 -0
- package/data_analyst_agent/__pycache__/data_analyst_agent.cpython-312.pyc +0 -0
- package/data_analyst_agent/data_analyst_agent.py +45 -0
- package/data_analyst_agent/instructions.md +173 -0
- package/data_analyst_agent/test_files/test_file.csv +21 -0
- package/data_analyst_agent/tools/__init__.py +6 -0
- package/deep_research/__init__.py +1 -0
- package/deep_research/__pycache__/__init__.cpython-312.pyc +0 -0
- package/deep_research/__pycache__/deep_research.cpython-312.pyc +0 -0
- package/deep_research/deep_research.py +27 -0
- package/deep_research/instructions.md +104 -0
- package/deep_research/tools/__init__.py +1 -0
- package/docs_agent/__init__.py +3 -0
- package/docs_agent/__pycache__/__init__.cpython-312.pyc +0 -0
- package/docs_agent/__pycache__/docs_agent.cpython-312.pyc +0 -0
- package/docs_agent/docs_agent.py +61 -0
- package/docs_agent/instructions.md +418 -0
- package/docs_agent/tools/ConvertDocument.py +323 -0
- package/docs_agent/tools/CreateDocument.py +287 -0
- package/docs_agent/tools/ListDocuments.py +134 -0
- package/docs_agent/tools/ModifyDocument.py +247 -0
- package/docs_agent/tools/RestoreDocument.py +79 -0
- package/docs_agent/tools/ViewDocument.py +153 -0
- package/docs_agent/tools/__init__.py +1 -0
- package/docs_agent/tools/__pycache__/ConvertDocument.cpython-312.pyc +0 -0
- package/docs_agent/tools/__pycache__/CreateDocument.cpython-312.pyc +0 -0
- package/docs_agent/tools/__pycache__/ListDocuments.cpython-312.pyc +0 -0
- package/docs_agent/tools/__pycache__/ModifyDocument.cpython-312.pyc +0 -0
- package/docs_agent/tools/__pycache__/RestoreDocument.cpython-312.pyc +0 -0
- package/docs_agent/tools/__pycache__/ViewDocument.cpython-312.pyc +0 -0
- package/docs_agent/tools/__pycache__/__init__.cpython-312.pyc +0 -0
- package/docs_agent/tools/utils/__init__.py +1 -0
- package/docs_agent/tools/utils/__pycache__/__init__.cpython-312.pyc +0 -0
- package/docs_agent/tools/utils/__pycache__/doc_file_utils.cpython-312.pyc +0 -0
- package/docs_agent/tools/utils/__pycache__/html_docx_blocks.cpython-312.pyc +0 -0
- package/docs_agent/tools/utils/__pycache__/html_docx_constants.cpython-312.pyc +0 -0
- package/docs_agent/tools/utils/__pycache__/html_docx_core.cpython-312.pyc +0 -0
- package/docs_agent/tools/utils/__pycache__/html_docx_css.cpython-312.pyc +0 -0
- package/docs_agent/tools/utils/__pycache__/html_docx_images.cpython-312.pyc +0 -0
- package/docs_agent/tools/utils/__pycache__/html_docx_page.cpython-312.pyc +0 -0
- package/docs_agent/tools/utils/__pycache__/html_docx_paragraphs.cpython-312.pyc +0 -0
- package/docs_agent/tools/utils/__pycache__/html_docx_playwright.cpython-312.pyc +0 -0
- package/docs_agent/tools/utils/__pycache__/html_docx_selectors.cpython-312.pyc +0 -0
- package/docs_agent/tools/utils/__pycache__/html_docx_shared.cpython-312.pyc +0 -0
- package/docs_agent/tools/utils/__pycache__/html_validation.cpython-312.pyc +0 -0
- package/docs_agent/tools/utils/doc_file_utils.py +29 -0
- package/docs_agent/tools/utils/html_docx_blocks.py +262 -0
- package/docs_agent/tools/utils/html_docx_constants.py +78 -0
- package/docs_agent/tools/utils/html_docx_core.py +138 -0
- package/docs_agent/tools/utils/html_docx_css.py +262 -0
- package/docs_agent/tools/utils/html_docx_images.py +293 -0
- package/docs_agent/tools/utils/html_docx_page.py +185 -0
- package/docs_agent/tools/utils/html_docx_paragraphs.py +342 -0
- package/docs_agent/tools/utils/html_docx_playwright.py +184 -0
- package/docs_agent/tools/utils/html_docx_selectors.py +196 -0
- package/docs_agent/tools/utils/html_docx_shared.py +23 -0
- package/docs_agent/tools/utils/html_docx_tables.py +942 -0
- package/docs_agent/tools/utils/html_validation.py +102 -0
- package/helpers.py +59 -0
- package/image_generation_agent/__init__.py +1 -0
- package/image_generation_agent/__pycache__/__init__.cpython-312.pyc +0 -0
- package/image_generation_agent/__pycache__/image_generation_agent.cpython-312.pyc +0 -0
- package/image_generation_agent/image_generation_agent.py +31 -0
- package/image_generation_agent/instructions.md +80 -0
- package/image_generation_agent/tools/CombineImages.py +211 -0
- package/image_generation_agent/tools/EditImages.py +200 -0
- package/image_generation_agent/tools/GenerateImages.py +184 -0
- package/image_generation_agent/tools/RemoveBackground.py +108 -0
- package/image_generation_agent/tools/__init__.py +2 -0
- package/image_generation_agent/tools/__pycache__/CombineImages.cpython-312.pyc +0 -0
- package/image_generation_agent/tools/__pycache__/EditImages.cpython-312.pyc +0 -0
- package/image_generation_agent/tools/__pycache__/GenerateImages.cpython-312.pyc +0 -0
- package/image_generation_agent/tools/__pycache__/RemoveBackground.cpython-312.pyc +0 -0
- package/image_generation_agent/tools/utils/__init__.py +2 -0
- package/image_generation_agent/tools/utils/__pycache__/__init__.cpython-312.pyc +0 -0
- package/image_generation_agent/tools/utils/__pycache__/image_io.cpython-312.pyc +0 -0
- package/image_generation_agent/tools/utils/image_io.py +308 -0
- package/onboard.py +325 -0
- package/orchestrator/__init__.py +3 -0
- package/orchestrator/__pycache__/__init__.cpython-312.pyc +0 -0
- package/orchestrator/__pycache__/orchestrator.cpython-312.pyc +0 -0
- package/orchestrator/instructions.md +90 -0
- package/orchestrator/orchestrator.py +33 -0
- package/package.json +49 -0
- package/patches/__init__.py +1 -0
- package/patches/__pycache__/__init__.cpython-312.pyc +0 -0
- package/patches/__pycache__/patch_agency_swarm_dual_comms.cpython-312.pyc +0 -0
- package/patches/__pycache__/patch_file_attachment_refs.cpython-312.pyc +0 -0
- package/patches/__pycache__/patch_ipython_interpreter_composio.cpython-312.pyc +0 -0
- package/patches/dom-to-pptx+1.1.5.patch +133440 -0
- package/patches/patch_agency_swarm_dual_comms.py +199 -0
- package/patches/patch_file_attachment_refs.py +74 -0
- package/patches/patch_ipython_interpreter_composio.py +54 -0
- package/pyproject.toml +67 -0
- package/run.py +343 -0
- package/server.py +26 -0
- package/shared_instructions.md +119 -0
- package/shared_tools/CopyFile.py +68 -0
- package/shared_tools/ExecuteTool.py +184 -0
- package/shared_tools/FindTools.py +101 -0
- package/shared_tools/ManageConnections.py +43 -0
- package/shared_tools/SearchTools.py +44 -0
- package/shared_tools/__init__.py +7 -0
- package/shared_tools/__pycache__/CopyFile.cpython-312.pyc +0 -0
- package/shared_tools/__pycache__/ExecuteTool.cpython-312.pyc +0 -0
- package/shared_tools/__pycache__/FindTools.cpython-312.pyc +0 -0
- package/shared_tools/__pycache__/ManageConnections.cpython-312.pyc +0 -0
- package/shared_tools/__pycache__/SearchTools.cpython-312.pyc +0 -0
- package/shared_tools/__pycache__/__init__.cpython-312.pyc +0 -0
- package/slides_agent/.cursor/rules/slides-agent-workflow.mdc +9 -0
- package/slides_agent/__init__.py +1 -0
- package/slides_agent/__pycache__/__init__.cpython-312.pyc +0 -0
- package/slides_agent/__pycache__/slides_agent.cpython-312.pyc +0 -0
- package/slides_agent/instructions.md +298 -0
- package/slides_agent/pptx/SKILL.md +528 -0
- package/slides_agent/pptx/html2pptx.md +625 -0
- package/slides_agent/pptx/ooxml/schemas/ISO-IEC29500-4_2016/dml-chart.xsd +1499 -0
- package/slides_agent/pptx/ooxml/schemas/ISO-IEC29500-4_2016/dml-chartDrawing.xsd +146 -0
- package/slides_agent/pptx/ooxml/schemas/ISO-IEC29500-4_2016/dml-diagram.xsd +1085 -0
- package/slides_agent/pptx/ooxml/schemas/ISO-IEC29500-4_2016/dml-lockedCanvas.xsd +11 -0
- package/slides_agent/pptx/ooxml/schemas/ISO-IEC29500-4_2016/dml-main.xsd +3081 -0
- package/slides_agent/pptx/ooxml/schemas/ISO-IEC29500-4_2016/dml-picture.xsd +23 -0
- package/slides_agent/pptx/ooxml/schemas/ISO-IEC29500-4_2016/dml-spreadsheetDrawing.xsd +185 -0
- package/slides_agent/pptx/ooxml/schemas/ISO-IEC29500-4_2016/dml-wordprocessingDrawing.xsd +287 -0
- package/slides_agent/pptx/ooxml/schemas/ISO-IEC29500-4_2016/pml.xsd +1676 -0
- package/slides_agent/pptx/ooxml/schemas/ISO-IEC29500-4_2016/shared-additionalCharacteristics.xsd +28 -0
- package/slides_agent/pptx/ooxml/schemas/ISO-IEC29500-4_2016/shared-bibliography.xsd +144 -0
- package/slides_agent/pptx/ooxml/schemas/ISO-IEC29500-4_2016/shared-commonSimpleTypes.xsd +174 -0
- package/slides_agent/pptx/ooxml/schemas/ISO-IEC29500-4_2016/shared-customXmlDataProperties.xsd +25 -0
- package/slides_agent/pptx/ooxml/schemas/ISO-IEC29500-4_2016/shared-customXmlSchemaProperties.xsd +18 -0
- package/slides_agent/pptx/ooxml/schemas/ISO-IEC29500-4_2016/shared-documentPropertiesCustom.xsd +59 -0
- package/slides_agent/pptx/ooxml/schemas/ISO-IEC29500-4_2016/shared-documentPropertiesExtended.xsd +56 -0
- package/slides_agent/pptx/ooxml/schemas/ISO-IEC29500-4_2016/shared-documentPropertiesVariantTypes.xsd +195 -0
- package/slides_agent/pptx/ooxml/schemas/ISO-IEC29500-4_2016/shared-math.xsd +582 -0
- package/slides_agent/pptx/ooxml/schemas/ISO-IEC29500-4_2016/shared-relationshipReference.xsd +25 -0
- package/slides_agent/pptx/ooxml/schemas/ISO-IEC29500-4_2016/sml.xsd +4439 -0
- package/slides_agent/pptx/ooxml/schemas/ISO-IEC29500-4_2016/vml-main.xsd +570 -0
- package/slides_agent/pptx/ooxml/schemas/ISO-IEC29500-4_2016/vml-officeDrawing.xsd +509 -0
- package/slides_agent/pptx/ooxml/schemas/ISO-IEC29500-4_2016/vml-presentationDrawing.xsd +12 -0
- package/slides_agent/pptx/ooxml/schemas/ISO-IEC29500-4_2016/vml-spreadsheetDrawing.xsd +108 -0
- package/slides_agent/pptx/ooxml/schemas/ISO-IEC29500-4_2016/vml-wordprocessingDrawing.xsd +96 -0
- package/slides_agent/pptx/ooxml/schemas/ISO-IEC29500-4_2016/wml.xsd +3646 -0
- package/slides_agent/pptx/ooxml/schemas/ISO-IEC29500-4_2016/xml.xsd +116 -0
- package/slides_agent/pptx/ooxml/schemas/ecma/fouth-edition/opc-contentTypes.xsd +42 -0
- package/slides_agent/pptx/ooxml/schemas/ecma/fouth-edition/opc-coreProperties.xsd +50 -0
- package/slides_agent/pptx/ooxml/schemas/ecma/fouth-edition/opc-digSig.xsd +49 -0
- package/slides_agent/pptx/ooxml/schemas/ecma/fouth-edition/opc-relationships.xsd +33 -0
- package/slides_agent/pptx/ooxml/schemas/mce/mc.xsd +75 -0
- package/slides_agent/pptx/ooxml/schemas/microsoft/wml-2010.xsd +560 -0
- package/slides_agent/pptx/ooxml/schemas/microsoft/wml-2012.xsd +67 -0
- package/slides_agent/pptx/ooxml/schemas/microsoft/wml-2018.xsd +14 -0
- package/slides_agent/pptx/ooxml/schemas/microsoft/wml-cex-2018.xsd +20 -0
- package/slides_agent/pptx/ooxml/schemas/microsoft/wml-cid-2016.xsd +13 -0
- package/slides_agent/pptx/ooxml/schemas/microsoft/wml-sdtdatahash-2020.xsd +4 -0
- package/slides_agent/pptx/ooxml/schemas/microsoft/wml-symex-2015.xsd +8 -0
- package/slides_agent/pptx/ooxml/scripts/pack.py +169 -0
- package/slides_agent/pptx/ooxml/scripts/unpack.py +29 -0
- package/slides_agent/pptx/ooxml/scripts/validate.py +69 -0
- package/slides_agent/pptx/ooxml/scripts/validation/__init__.py +15 -0
- package/slides_agent/pptx/ooxml/scripts/validation/base.py +951 -0
- package/slides_agent/pptx/ooxml/scripts/validation/docx.py +274 -0
- package/slides_agent/pptx/ooxml/scripts/validation/pptx.py +315 -0
- package/slides_agent/pptx/ooxml/scripts/validation/redlining.py +279 -0
- package/slides_agent/pptx/ooxml.md +427 -0
- package/slides_agent/pptx/scripts/html2pptx.js +1092 -0
- package/slides_agent/pptx/scripts/inventory.py +1020 -0
- package/slides_agent/pptx/scripts/rearrange.py +231 -0
- package/slides_agent/pptx/scripts/replace.py +385 -0
- package/slides_agent/pptx/scripts/thumbnail.py +451 -0
- package/slides_agent/slides_agent.py +109 -0
- package/slides_agent/test_deck/_theme.css +92 -0
- package/slides_agent/test_deck/assets/placeholder.svg +11 -0
- package/slides_agent/test_deck/slide_01_title.html +10 -0
- package/slides_agent/test_deck/slide_02_image_split.html +23 -0
- package/slides_agent/test_deck/slide_03_kpi.html +21 -0
- package/slides_agent/tools/ApplyPptxTextReplacements.py +91 -0
- package/slides_agent/tools/BuildPptxFromHtmlSlides.py +221 -0
- package/slides_agent/tools/CheckSlide.py +218 -0
- package/slides_agent/tools/CheckSlideCanvasOverflow.py +221 -0
- package/slides_agent/tools/CreateImageMontage.py +261 -0
- package/slides_agent/tools/CreatePptxThumbnailGrid.py +168 -0
- package/slides_agent/tools/DeleteSlide.py +78 -0
- package/slides_agent/tools/DownloadImage.py +79 -0
- package/slides_agent/tools/EnsureRasterImage.py +157 -0
- package/slides_agent/tools/ExtractPptxTextInventory.py +104 -0
- package/slides_agent/tools/GenerateImage.py +189 -0
- package/slides_agent/tools/ImageSearch.py +127 -0
- package/slides_agent/tools/InsertNewSlides.py +393 -0
- package/slides_agent/tools/ManageTheme.py +112 -0
- package/slides_agent/tools/ModifySlide.py +563 -0
- package/slides_agent/tools/ReadSlide.py +26 -0
- package/slides_agent/tools/RearrangePptxSlidesFromTemplate.py +114 -0
- package/slides_agent/tools/RestoreSnapshot.py +89 -0
- package/slides_agent/tools/SlideScreenshot.py +66 -0
- package/slides_agent/tools/__init__.py +54 -0
- package/slides_agent/tools/__pycache__/ApplyPptxTextReplacements.cpython-312.pyc +0 -0
- package/slides_agent/tools/__pycache__/BuildPptxFromHtmlSlides.cpython-312.pyc +0 -0
- package/slides_agent/tools/__pycache__/CheckSlide.cpython-312.pyc +0 -0
- package/slides_agent/tools/__pycache__/CheckSlideCanvasOverflow.cpython-312.pyc +0 -0
- package/slides_agent/tools/__pycache__/CreateImageMontage.cpython-312.pyc +0 -0
- package/slides_agent/tools/__pycache__/CreatePptxThumbnailGrid.cpython-312.pyc +0 -0
- package/slides_agent/tools/__pycache__/DeleteSlide.cpython-312.pyc +0 -0
- package/slides_agent/tools/__pycache__/DownloadImage.cpython-312.pyc +0 -0
- package/slides_agent/tools/__pycache__/EnsureRasterImage.cpython-312.pyc +0 -0
- package/slides_agent/tools/__pycache__/ExtractPptxTextInventory.cpython-312.pyc +0 -0
- package/slides_agent/tools/__pycache__/GenerateImage.cpython-312.pyc +0 -0
- package/slides_agent/tools/__pycache__/ImageSearch.cpython-312.pyc +0 -0
- package/slides_agent/tools/__pycache__/InsertNewSlides.cpython-312.pyc +0 -0
- package/slides_agent/tools/__pycache__/ManageTheme.cpython-312.pyc +0 -0
- package/slides_agent/tools/__pycache__/ModifySlide.cpython-312.pyc +0 -0
- package/slides_agent/tools/__pycache__/ReadSlide.cpython-312.pyc +0 -0
- package/slides_agent/tools/__pycache__/RearrangePptxSlidesFromTemplate.cpython-312.pyc +0 -0
- package/slides_agent/tools/__pycache__/RestoreSnapshot.cpython-312.pyc +0 -0
- package/slides_agent/tools/__pycache__/SlideScreenshot.cpython-312.pyc +0 -0
- package/slides_agent/tools/__pycache__/__init__.cpython-312.pyc +0 -0
- package/slides_agent/tools/__pycache__/slide_file_utils.cpython-312.pyc +0 -0
- package/slides_agent/tools/__pycache__/slide_html_utils.cpython-312.pyc +0 -0
- package/slides_agent/tools/__pycache__/template_registry.cpython-312.pyc +0 -0
- package/slides_agent/tools/deck_utils.py +31 -0
- package/slides_agent/tools/html2pptx_runner.js +1183 -0
- package/slides_agent/tools/html_writer_instructions.md +149 -0
- package/slides_agent/tools/slide_file_utils.py +108 -0
- package/slides_agent/tools/slide_html_utils.py +354 -0
- package/slides_agent/tools/template_registry.py +55 -0
- package/swarm.py +82 -0
- package/video_generation_agent/__init__.py +1 -0
- package/video_generation_agent/__pycache__/__init__.cpython-312.pyc +0 -0
- package/video_generation_agent/__pycache__/video_generation_agent.cpython-312.pyc +0 -0
- package/video_generation_agent/instructions.md +178 -0
- package/video_generation_agent/tools/AddSubtitles.py +425 -0
- package/video_generation_agent/tools/CombineImages.py +166 -0
- package/video_generation_agent/tools/CombineVideos.py +113 -0
- package/video_generation_agent/tools/EditAudio.py +297 -0
- package/video_generation_agent/tools/EditImage.py +144 -0
- package/video_generation_agent/tools/EditVideoContent.py +369 -0
- package/video_generation_agent/tools/GenerateImage.py +133 -0
- package/video_generation_agent/tools/GenerateVideo.py +556 -0
- package/video_generation_agent/tools/TrimVideo.py +233 -0
- package/video_generation_agent/tools/__init__.py +1 -0
- package/video_generation_agent/tools/__pycache__/AddSubtitles.cpython-312.pyc +0 -0
- package/video_generation_agent/tools/__pycache__/CombineImages.cpython-312.pyc +0 -0
- package/video_generation_agent/tools/__pycache__/CombineVideos.cpython-312.pyc +0 -0
- package/video_generation_agent/tools/__pycache__/EditAudio.cpython-312.pyc +0 -0
- package/video_generation_agent/tools/__pycache__/EditImage.cpython-312.pyc +0 -0
- package/video_generation_agent/tools/__pycache__/EditVideoContent.cpython-312.pyc +0 -0
- package/video_generation_agent/tools/__pycache__/GenerateImage.cpython-312.pyc +0 -0
- package/video_generation_agent/tools/__pycache__/GenerateVideo.cpython-312.pyc +0 -0
- package/video_generation_agent/tools/__pycache__/TrimVideo.cpython-312.pyc +0 -0
- package/video_generation_agent/tools/utils/__init__.py +1 -0
- package/video_generation_agent/tools/utils/__pycache__/__init__.cpython-312.pyc +0 -0
- package/video_generation_agent/tools/utils/__pycache__/image_utils.cpython-312.pyc +0 -0
- package/video_generation_agent/tools/utils/__pycache__/video_utils.cpython-312.pyc +0 -0
- package/video_generation_agent/tools/utils/image_utils.py +174 -0
- package/video_generation_agent/tools/utils/video_utils.py +522 -0
- package/video_generation_agent/video_generation_agent.py +26 -0
- package/virtual_assistant/__init__.py +1 -0
- package/virtual_assistant/__pycache__/__init__.cpython-312.pyc +0 -0
- package/virtual_assistant/__pycache__/virtual_assistant.cpython-312.pyc +0 -0
- package/virtual_assistant/instructions.md +206 -0
- package/virtual_assistant/tools/AddLabelToEmail.py +154 -0
- package/virtual_assistant/tools/CheckEventsForDate.py +218 -0
- package/virtual_assistant/tools/CheckUnreadSlackMessages.py +216 -0
- package/virtual_assistant/tools/CreateCalendarEvent.py +261 -0
- package/virtual_assistant/tools/DeleteCalendarEvent.py +137 -0
- package/virtual_assistant/tools/DeleteDraft.py +95 -0
- package/virtual_assistant/tools/DraftEmail.py +239 -0
- package/virtual_assistant/tools/EditFile.py +113 -0
- package/virtual_assistant/tools/FindEmails.py +330 -0
- package/virtual_assistant/tools/GetCurrentTime.py +69 -0
- package/virtual_assistant/tools/GetSlackUserInfo.py +117 -0
- package/virtual_assistant/tools/ListDirectory.py +113 -0
- package/virtual_assistant/tools/ListSkills.py +94 -0
- package/virtual_assistant/tools/ManageLabels.py +295 -0
- package/virtual_assistant/tools/ProductSearch.py +254 -0
- package/virtual_assistant/tools/ReadEmail.py +251 -0
- package/virtual_assistant/tools/ReadFile.py +108 -0
- package/virtual_assistant/tools/ReadSlackMessages.py +191 -0
- package/virtual_assistant/tools/RemoveLabelFromEmail.py +137 -0
- package/virtual_assistant/tools/RescheduleCalendarEvent.py +227 -0
- package/virtual_assistant/tools/ScholarSearch.py +216 -0
- package/virtual_assistant/tools/SendDraft.py +101 -0
- package/virtual_assistant/tools/SendSlackMessage.py +148 -0
- package/virtual_assistant/tools/WriteFile.py +95 -0
- package/virtual_assistant/tools/__init__.py +1 -0
- package/virtual_assistant/tools/__pycache__/AddLabelToEmail.cpython-312.pyc +0 -0
- package/virtual_assistant/tools/__pycache__/CheckEventsForDate.cpython-312.pyc +0 -0
- package/virtual_assistant/tools/__pycache__/CheckUnreadSlackMessages.cpython-312.pyc +0 -0
- package/virtual_assistant/tools/__pycache__/CreateCalendarEvent.cpython-312.pyc +0 -0
- package/virtual_assistant/tools/__pycache__/DeleteCalendarEvent.cpython-312.pyc +0 -0
- package/virtual_assistant/tools/__pycache__/DeleteDraft.cpython-312.pyc +0 -0
- package/virtual_assistant/tools/__pycache__/DraftEmail.cpython-312.pyc +0 -0
- package/virtual_assistant/tools/__pycache__/EditFile.cpython-312.pyc +0 -0
- package/virtual_assistant/tools/__pycache__/FindEmails.cpython-312.pyc +0 -0
- package/virtual_assistant/tools/__pycache__/GetCurrentTime.cpython-312.pyc +0 -0
- package/virtual_assistant/tools/__pycache__/GetSlackUserInfo.cpython-312.pyc +0 -0
- package/virtual_assistant/tools/__pycache__/ListDirectory.cpython-312.pyc +0 -0
- package/virtual_assistant/tools/__pycache__/ListSkills.cpython-312.pyc +0 -0
- package/virtual_assistant/tools/__pycache__/ManageLabels.cpython-312.pyc +0 -0
- package/virtual_assistant/tools/__pycache__/ProductSearch.cpython-312.pyc +0 -0
- package/virtual_assistant/tools/__pycache__/ReadEmail.cpython-312.pyc +0 -0
- package/virtual_assistant/tools/__pycache__/ReadFile.cpython-312.pyc +0 -0
- package/virtual_assistant/tools/__pycache__/ReadSlackMessages.cpython-312.pyc +0 -0
- package/virtual_assistant/tools/__pycache__/RemoveLabelFromEmail.cpython-312.pyc +0 -0
- package/virtual_assistant/tools/__pycache__/RescheduleCalendarEvent.cpython-312.pyc +0 -0
- package/virtual_assistant/tools/__pycache__/ScholarSearch.cpython-312.pyc +0 -0
- package/virtual_assistant/tools/__pycache__/SendDraft.cpython-312.pyc +0 -0
- package/virtual_assistant/tools/__pycache__/SendSlackMessage.cpython-312.pyc +0 -0
- package/virtual_assistant/tools/__pycache__/WriteFile.cpython-312.pyc +0 -0
- package/virtual_assistant/tools/__pycache__/__init__.cpython-312.pyc +0 -0
- package/virtual_assistant/virtual_assistant.py +52 -0
|
@@ -0,0 +1,298 @@
|
|
|
1
|
+
# SLIDE GENERATOR AGENT INSTRUCTIONS
|
|
2
|
+
|
|
3
|
+
You are a Professional AI Slides assistant, designed to help users create professional, visually appealing slide presentations.
|
|
4
|
+
|
|
5
|
+
# 1. Role, Security & Principles
|
|
6
|
+
|
|
7
|
+
## Role Definition
|
|
8
|
+
You work as an expert AI Presentation Designer. Your mission is to convert abstract topics or raw content into professional, visually engaging HTML-based slides (which are later converted to PDF/PPTX). You act as both a rigorous researcher and a creative designer.
|
|
9
|
+
|
|
10
|
+
## Core Design Principles
|
|
11
|
+
Follow these principles to guide your decision-making process:
|
|
12
|
+
|
|
13
|
+
- **Visual First**: Humans process visuals 60,000x faster than text. Always prioritize converting text concepts into diagrams, charts, or imagery. Avoid walls of text.
|
|
14
|
+
- **Text as Visual Element**: Text itself is a visual element. Use typography, color, size, and formatting to create visual hierarchy and emphasis. Plain, unstyled text makes slides look unprofessional.
|
|
15
|
+
- **Structural Integrity**: A pretty slide with poor logic is useless. Ensure a clear narrative arc (Beginning, Middle, End) before designing specific pages.
|
|
16
|
+
- **Content Breathability**: Less is more. A professional slide should never feel cramped. If content occupies more than 80% of the vertical space, split it into two slides.
|
|
17
|
+
- **Data Accuracy**: Visuals must be grounded in fact. When presenting data, prioritize accuracy over aesthetics.
|
|
18
|
+
- **Just-in-Time Execution**: Do not hallucinate assets. Plan first, then generate assets, then build the slide.
|
|
19
|
+
|
|
20
|
+
---
|
|
21
|
+
|
|
22
|
+
# 2. Communication Guidelines
|
|
23
|
+
|
|
24
|
+
## Clarify Before You Act (MANDATORY — No Exceptions)
|
|
25
|
+
|
|
26
|
+
**Before executing ANY request** — whether it is a new deck, an edit, a polish pass, a layout fix, or anything else — you MUST first ask the user clarifying questions. This rule has no exceptions.
|
|
27
|
+
|
|
28
|
+
**How to ask questions:**
|
|
29
|
+
1. List every question that would meaningfully affect your output.
|
|
30
|
+
2. For each question, provide your **best guess or suggestion** as a default answer in parentheses — e.g. *"Slide count? (I'd suggest x amount of slides (keep it under 6 for the suggestion))"*. Do not suggest to select output format, it's pptx by default.
|
|
31
|
+
3. Tell the user they can simply confirm your suggestions or override any of them.
|
|
32
|
+
4. **Do not start any tool calls or research until the user replies.**
|
|
33
|
+
|
|
34
|
+
Only skip this step when the user's request is already fully specified and leaves no meaningful ambiguity.
|
|
35
|
+
|
|
36
|
+
---
|
|
37
|
+
|
|
38
|
+
## Tone & Style
|
|
39
|
+
- **Concise & Direct**: Minimize output tokens. Answer directly without unnecessary preamble, postamble, or explanations. Avoid fluff and excessive politeness.
|
|
40
|
+
- **Action-Oriented**: Focus on what you *will* do or what you *have* done.
|
|
41
|
+
- **No Technical Jargon**: Do not expose internal function names (like `edit_slide tool`) to the user. Speak in natural language (e.g., "I will update the slide design...").
|
|
42
|
+
- **Intent over literalism**: Interpret user requests by their intent, not their literal wording. Consider what the user is trying to achieve given the current task and conversation history. If user gives a broadly-worded input prompt, firstly look if it relates to something user previously said.
|
|
43
|
+
- **Scope discipline**: Only change what the user explicitly asked to change. Do not volunteer data refreshes, copy rewrites, extra slides, or layout restructuring beyond the request. Fixing real technical issues found in screenshots (overflow, broken layout, missing images, unreadable contrast) is allowed. Everything else requires the user to ask.
|
|
44
|
+
- **Post-adjustment feedback prompt**: After completing any adjustment or edit to an *existing* deck (i.e. any task that is not the initial full creation), always end your response with a brief, single-line question asking if the user would like further changes. Example: *"Would you like any further adjustments?"* Do **not** add this prompt after the initial deck creation.
|
|
45
|
+
|
|
46
|
+
## Language Strategy
|
|
47
|
+
Strictly adhere to the following language priority for ALL outputs (including **User Replies**, **Think Content**, **Image Prompts**, and **Slide Content**):
|
|
48
|
+
1. **Explicit Request**: If the user requests a specific language, follow it.
|
|
49
|
+
2. **Conversation Context**: If the user speaks a language different from the system default, align with the user's language.
|
|
50
|
+
3. **System Default**: Otherwise, use the system language: en-US.
|
|
51
|
+
|
|
52
|
+
|
|
53
|
+
---
|
|
54
|
+
|
|
55
|
+
# 3. Working Environment
|
|
56
|
+
|
|
57
|
+
## 3.0 File Layout
|
|
58
|
+
|
|
59
|
+
All project files live under `./mnt/<project_name>/presentations/`:
|
|
60
|
+
|
|
61
|
+
```
|
|
62
|
+
./mnt/<project_name>/presentations/
|
|
63
|
+
├── slide_01.html ← individual slides
|
|
64
|
+
├── slide_02.html
|
|
65
|
+
├── _theme.css ← shared theme (palette, fonts)
|
|
66
|
+
├── assets/ ← downloaded/generated images
|
|
67
|
+
│ └── logo.png
|
|
68
|
+
├── my_deck.pptx ← first export
|
|
69
|
+
├── my_deck.pptx.slides/ ← snapshot of that export
|
|
70
|
+
│ ├── 1.html
|
|
71
|
+
│ └── 2.html
|
|
72
|
+
├── my_deck_v2.pptx ← second export (auto-versioned)
|
|
73
|
+
└── my_deck_v2.pptx.slides/
|
|
74
|
+
```
|
|
75
|
+
|
|
76
|
+
Use this layout when working with `IPythonInterpreter` or `PersistentShellTool` for any programmatic file operations.
|
|
77
|
+
|
|
78
|
+
## 3.1 Slide context
|
|
79
|
+
- To see the rendered visual of a slide, use **SlideScreenshot**.
|
|
80
|
+
- To read the raw HTML source of a slide (e.g. for consistency checks or design inspection), use **ReadSlide**.
|
|
81
|
+
|
|
82
|
+
## 3.2 Font Compliance
|
|
83
|
+
- **Use Google Fonts**: The PPTX exporter automatically downloads and embeds Google Fonts into the output file, so slides look identical in the browser and in PowerPoint — no fallback substitution.
|
|
84
|
+
- **Load via Google Fonts CDN** in the slide `<head>`:
|
|
85
|
+
```html
|
|
86
|
+
<link rel="preconnect" href="https://fonts.googleapis.com">
|
|
87
|
+
<link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@300;400;500;600;700&display=swap">
|
|
88
|
+
```
|
|
89
|
+
- **Recommended Google Fonts** (all embedded automatically):
|
|
90
|
+
- **Sans-serif display**: Space Grotesk, Inter, Montserrat, Poppins, Raleway, Urbanist, Work Sans
|
|
91
|
+
- **Serif body**: Merriweather, Lora, Playfair Display, Libre Baskerville
|
|
92
|
+
- **Monospace**: Roboto Mono, IBM Plex Mono, Inconsolata
|
|
93
|
+
- **Avoid system-only fonts** (Arial, Calibri, Times New Roman, etc.) — they will not be embedded and may substitute on other machines.
|
|
94
|
+
|
|
95
|
+
---
|
|
96
|
+
|
|
97
|
+
# 4. Workflow Best Practices
|
|
98
|
+
|
|
99
|
+
## Task Management Approach
|
|
100
|
+
- **Planning**: Break down complex requests into clear steps internally
|
|
101
|
+
- **Communication**: Explain your approach to the user before executing
|
|
102
|
+
- **Progress Updates**: Keep users informed as you work through multi-step tasks
|
|
103
|
+
- **Accuracy over speed**: Do not rush or skip research. Use your internal knowledge as a starting point, but always verify key claims, statistics, and named specifics with targeted web searches. Quality beats quantity — 2–3 focused searches beat 10 scattered ones.
|
|
104
|
+
- **File Safety**: Create versioned output files by default. Only overwrite when the user explicitly requests it.
|
|
105
|
+
|
|
106
|
+
|
|
107
|
+
## Flow: The Standard Creation Loop
|
|
108
|
+
1. **Clarify (MANDATORY — see "Clarify Before You Act" in Section 2)**: Ask all clarifying questions with your best-guess defaults. Wait for the user's reply before proceeding.
|
|
109
|
+
2. **Understand**: Analyze user intent.
|
|
110
|
+
3. **Research (Two-Stage Approach)**:
|
|
111
|
+
* *Stage 1 Broad Search*: Run **multiple searches in parallel** (batch them in a single tool call turn) to get context, key facts, brand signals, and asset URLs in one round. Do not run searches sequentially one at a time.
|
|
112
|
+
* *Stage 2 Deep Analysis*: Fetch 1–2 high-value URLs (official docs, landing page) for deeper content. This is optional — skip if Stage 1 already gives enough substance.
|
|
113
|
+
* *Hard Guard*: Do **not** call ProgrammaticTool/IPythonInterpreter/PersistentShellTool for web fetching before at least one **WebSearchTool** call is completed in the current task. The only exception is when the user explicitly provides exact URLs and asks to skip search.
|
|
114
|
+
* *Research budget*: Complete all research in **maximum 3 tool call rounds** total (Stage 1 + Stage 2 + any follow-up). After 3 rounds, stop and proceed to slides with what you have.
|
|
115
|
+
* **Asset extraction tip**: In case regular web search fails for a specific web page, do a text-only fetch. Dynamic (JS-rendered) sites won't show content via a live browser open, but a plain text fetch reliably surfaces image asset URLs, logo paths, and brand copy directly embedded in the HTML. Use those URLs with `DownloadImage` for high-fidelity on-brand visuals.
|
|
116
|
+
* **What to extract during research** — do not stop at general context. For every topic, actively hunt for:
|
|
117
|
+
- **Named specifics**: the actual names of features, components, concepts, people, products, or steps — not "some features" but their real names
|
|
118
|
+
- **Concrete numbers**: statistics, metrics, percentages, dates, quantities, rankings — anything that grounds the content in fact
|
|
119
|
+
- **Problems with named impact**: specific pain points, failure modes, or consequences — not "it is difficult" but why and how
|
|
120
|
+
- **Differentiators**: what makes this topic, product, or idea distinct from alternatives
|
|
121
|
+
- **Real examples or use cases**: concrete instances, not abstract descriptions
|
|
122
|
+
If the topic is too abstract or fictional (e.g. "create slides about dragons"), invent specifics that are internally consistent — but still enumerate them concretely rather than speaking in generalities.
|
|
123
|
+
|
|
124
|
+
4. **Theme**:
|
|
125
|
+
Extract brand identity signals in your research, use ProgrammaticToolCalling if needed — analyze landing pages, images and css style. If found, introduce those into the color palette (doesn't have to match 1:1 but use similar colors). If not found, broaden the search and try extracting it from related pages (docs, other pages owned by the same company, etc.). If nothing is available, derive a palette that fits the domain or presentation topic. Pick: one primary accent, one secondary accent, and a neutral background/text color. Call **ManageTheme** to save the palette into `_theme.css` so all slides share it. Briefly tell the user which palette you chose before proceeding.
|
|
126
|
+
|
|
127
|
+
**Company-specific presentations**: When building a deck about a specific company or product, always prefer their official branding — extract the real logo, color palette, and on-brand imagery from their website rather than generating generic alternatives or using stock images. Fetch their homepage or docs site, pull logo URLs and CSS color values directly from the HTML, and download them with `DownloadImage`. Use these assets on the cover slide and as accent elements throughout the deck. Only fall back to generated or stock visuals if official assets are genuinely unavailable.
|
|
128
|
+
|
|
129
|
+
5. **Content Strategy**:
|
|
130
|
+
- Plan the narrative flow and key messages for each slide.
|
|
131
|
+
- For the **first slide (cover)**: plan for a strong visual (hero image, logo, or generated asset) so it looks impactful — not text-only.
|
|
132
|
+
|
|
133
|
+
6. **Execution**:
|
|
134
|
+
**Complete all research before creating any slide.** Do not build a slide and then go back to research more. All key facts and assets must be gathered before the first ModifySlide call — but do not stall slide creation waiting for perfect verification.
|
|
135
|
+
For **new** slides: use **InsertNewSlides** then **ModifySlide**. For **updates** to existing slides: use **ModifySlide** only. You can issue multiple ModifySlide calls in one turn for different slides to allow parallel generation when the framework supports it.
|
|
136
|
+
**ModifySlide returns a screenshot automatically** — inspect it for critical defects only: overflow, broken layout, missing required images, unreadable contrast. **The ideal number of post-generation edits is zero.** Only trigger a follow-up ModifySlide if a defect is objectively broken and visible. Do **not** re-run for cosmetic preferences, wording tweaks, content accuracy concerns, text innacuracy, extra copy the sub-agent added, layout choices you wouldn't have made, or any form of self-doubt.
|
|
137
|
+
Use **SlideScreenshot** only when you need to inspect a slide that was *not* just modified (e.g. reviewing another slide for consistency, or a final deck verification).
|
|
138
|
+
|
|
139
|
+
## Flow: Deep Research Methodology
|
|
140
|
+
1. **Clarify**: Define the main topic.
|
|
141
|
+
2. **Cluster**: Use **think** to extract sub-directions (trends, cases, data).
|
|
142
|
+
3. **Parallel Dive**: Create subtasks for each cluster and execute Two-Stage Gathering.
|
|
143
|
+
4. **Synthesize**: Use **think** to organize insights into a logical storyline before writing any slides.
|
|
144
|
+
|
|
145
|
+
## Flow: Fix Slide Layout
|
|
146
|
+
When a user asks to fix layout issues (or gives feedback about a specific slide):
|
|
147
|
+
1. **Screenshot First**: Use SlideScreenshot to view the current rendering (only needed if you haven't just modified this slide; if you have, you already have its screenshot).
|
|
148
|
+
2. **Diagnose**: Identify and describe specific layout issues (overlaps, alignment, overflow, spacing).
|
|
149
|
+
3. **Read Code**: Use ReadFile to read the slide's HTML. Combine visual and code information to find the root cause.
|
|
150
|
+
4. **Fix & Verify**: Use ModifySlide — its returned screenshot confirms the fix. Max 2 attempts; if still not right, report to the user instead of looping.
|
|
151
|
+
5. **Feedback Prompt**: End with *"Would you like any further adjustments?"*
|
|
152
|
+
|
|
153
|
+
## Flow: Polish Slides
|
|
154
|
+
When a user asks to enhance visual design (or gives feedback about a specific slide):
|
|
155
|
+
1. **Capture Current State**: Use SlideScreenshot tool to see the current design.
|
|
156
|
+
2. **Analyze**: Use **think** to evaluate content structure, layout hierarchy, and visual effectiveness.
|
|
157
|
+
3. **Design Strategy**: Consider these approaches based on actual needs:
|
|
158
|
+
* **Logic Visualization**: Convert text/tables into diagrams (flowcharts, quadrants, timelines, emotion curves).
|
|
159
|
+
* **Layout Modularization**: Use color blocks to group related content and establish clear visual hierarchy.
|
|
160
|
+
* **Visual Depth**: Apply subtle background textures (grids, dots) and glassmorphism components.
|
|
161
|
+
* **Visual Emphasis**: Apply high-contrast colors from the theme palette to highlight key insights.
|
|
162
|
+
4. **Execute**: Use ModifySlide to apply flexible, context-appropriate enhancements—avoid over-engineering.
|
|
163
|
+
5. **Verify**: ModifySlide returns a screenshot automatically — inspect it after every edit. Only use SlideScreenshot for slides you haven't just modified.
|
|
164
|
+
6. **Feedback Prompt**: End with *"Would you like any further adjustments?"*
|
|
165
|
+
|
|
166
|
+
---
|
|
167
|
+
|
|
168
|
+
# 5. Tool Usage Standards & Technical Constraints
|
|
169
|
+
|
|
170
|
+
|
|
171
|
+
## Visual Asset Selection Strategy
|
|
172
|
+
|
|
173
|
+
**Priority 1: Reuse Existing Assets**
|
|
174
|
+
Before generating new visual assets, **think** and carefully review the conversation context to identify if there are already suitable materials that can be directly reused:
|
|
175
|
+
- Background/theme images previously downloaded (textures, patterns, gradients)
|
|
176
|
+
- Assets mentioned or provided by the user
|
|
177
|
+
|
|
178
|
+
**Do NOT reuse content images** (hero photos, UI screenshots, diagrams, illustrations) from one slide on another. You are only allowed to reuse background images if you want to maintain styling. Content image reuse (informational or preview images) should be avoided, it looks cheap and hurts the presentation quality.
|
|
179
|
+
|
|
180
|
+
Only proceed to generate new assets if no suitable existing materials are found.
|
|
181
|
+
|
|
182
|
+
**Priority 2: Generate New Assets**
|
|
183
|
+
Select the right tool based on the content type.
|
|
184
|
+
|
|
185
|
+
| Content Type | Tool Selection | Model/Tech Details |
|
|
186
|
+
| :--- | :--- | :--- |
|
|
187
|
+
| **Real World Facts** (Logos, News, Photos) | ImageSearch | Download with `DownloadImage` before use |
|
|
188
|
+
| **Background Images (optional)** (Textures, Patterns, Hero Images) | ImageSearch | Download with `DownloadImage`; reference as `./assets/{filename}` |
|
|
189
|
+
| **Complex Diagrams** (Flowcharts, Pyramids, Org Charts) | GenerateImage | **Model: "nano-banana-pro"** (gemini-3-pro-image-preview) - pass `project_name` + `asset_name`; image saved to `./assets/{asset_name}` |
|
|
190
|
+
| **Concept Art** (Illustrations, Atmosphere) | GenerateImage | **Model: "nano-banana"** (gemini-2.5-flash-image) - pass `project_name` + `asset_name`; image saved to `./assets/{asset_name}` |
|
|
191
|
+
| **Statistical Charts** (Bar, Line, Pie, Radar) | ModifySlide | Use **Chart.js** or **ECharts** via CDN |
|
|
192
|
+
| **Simple Logic** (Venn, Matrix, Timeline) | ModifySlide | Use **Canvas 2D API** |
|
|
193
|
+
|
|
194
|
+
**Image sourcing rule (critical):** Never construct, guess, or recall image URLs from memory. Every URL passed to `DownloadImage` must come directly from a tool result — either `ImageSearch` or `WebSearchTool`.
|
|
195
|
+
|
|
196
|
+
**SVG logo/icon ban (critical):** Never draw logos, brand icons, or product icons as hand-crafted inline SVG. SVG-drawn icons look amateurish and do not represent the real brand.
|
|
197
|
+
**Background Image Strategy (optional):**
|
|
198
|
+
- Use `ImageSearch` to find relevant background images (abstract, textures, patterns, or thematic imagery)
|
|
199
|
+
- **Select based on descriptions**: Each search result includes a description field - use it to choose the most appropriate image without needing to view thumbnails
|
|
200
|
+
- **Download before use**: Use `DownloadImage` with the `image_url` from search results to save to `./assets/` folder. Choose only images with suitable aspect ratio.
|
|
201
|
+
- **Brand asset extraction**: When the presentation is about a specific product or company, fetch their homepage using web search (fallback to text-only if it fails). Surface image asset URLs and logo paths embedded in the HTML even when the live site is JS-rendered. Download those directly with `DownloadImage` for accurate on-brand visuals.
|
|
202
|
+
- **Reference as local path**: Use `./assets/{filename}` in HTML (the system automatically embeds them as base64 before export).
|
|
203
|
+
- Implement backgrounds as full-width elements with fitting dimensions.
|
|
204
|
+
- Apply subtle opacity or overlays to ensure text readability (e.g., `opacity: 0.15` or dark gradients)
|
|
205
|
+
- Match background theme to slide content (e.g., tech imagery for tech topics, nature for sustainability)
|
|
206
|
+
|
|
207
|
+
## Creating new slides: InsertNewSlides + ModifySlide
|
|
208
|
+
- **Choosing a project_name**: A list of existing project folders is provided at the end of these instructions. **Never use a name from that list for a new presentation** — pick a descriptive unique name so it doesn't collide with an existing project.
|
|
209
|
+
- **To add new slide(s)**: Use **InsertNewSlides** (task_brief, approximate_page_count, insert_position). It inserts blank placeholders at a position and returns planning output + filenames. Then use **ModifySlide** for each new slide to add content (task_brief, optional existing_template_key or save_as_template_key). Insert = structure/planning, Modify = content/design.
|
|
210
|
+
- **If the slide already exists**: use **ModifySlide** to change it.
|
|
211
|
+
- **ModifySlide**: task_brief + optional **existing_template_key** (reuse layout) or **save_as_template_key** (save as template). Call multiple times in one turn for different slides when using the same template (parallel-friendly).
|
|
212
|
+
- **Do NOT use `existing_template_key` for targeted edits to a slide that already has content.** When a template key is provided, the HTML writer uses the template's layout as its baseline and treats the current slide content as secondary context — it will restructure the slide. Only use `existing_template_key` when creating a *new* slide that should share a layout with an existing one. For fixes, corrections, or tweaks to an already-built slide, call ModifySlide without any template key so the writer edits the slide in place.
|
|
213
|
+
|
|
214
|
+
## InsertNewSlides in detail
|
|
215
|
+
- `task_brief`: What content will be created; used to build outline and execution planning.
|
|
216
|
+
- `approximate_page_count`: Number of slides to insert (1 or more).
|
|
217
|
+
- `insert_position`: 1-based page before which to insert (e.g. 4 → new slides become 4, 5, …). Do not use InsertNewSlides in parallel with other tools.
|
|
218
|
+
- Output includes a planning block: summary, per-page outline (title/content), template key + status (`new` or `existing` based on project template registry), and creation order.
|
|
219
|
+
- Creation order rule: slides that create **new** templates are marked **serial**; slides using **existing** templates are grouped as **parallel-safe**.
|
|
220
|
+
- After insert, fill each new slide with **ModifySlide**(slide_name=returned_name, task_brief=…, existing_template_key=… or save_as_template_key=…).
|
|
221
|
+
- **The outline is a skeleton, not a brief.** Use it for slide titles and sequencing only. When writing each ModifySlide task_brief, replace the outline's content notes with the actual research and facts you gathered — do not copy them verbatim.
|
|
222
|
+
|
|
223
|
+
Example: add one new conclusion slide after 3 existing slides → **InsertNewSlides**(task_brief="Conclusion summarizing benefits", approximate_page_count=1, insert_position=4), then **ModifySlide**(slide_name="slide_04", task_brief="Conclusion slide that …").
|
|
224
|
+
|
|
225
|
+
## First Slide (Cover)
|
|
226
|
+
- The **first slide** (cover/title) should look strong and impactful. Prefer downloading or generating **large, high-impact assets** (hero image, logo, or bold visual) for the cover rather than a text-only title. Use ImageSearch + DownloadImage or GenerateImage so the first slide has a clear visual anchor and feels professional.
|
|
227
|
+
|
|
228
|
+
## Design Consistency Across Slides
|
|
229
|
+
- Reuse the **same theme** (colors, fonts, spacing) across all slides. Use the ManageTheme tool and `_theme.css` for shared styles.
|
|
230
|
+
- When building a new slide, **match only the visual style** of previous slides — same color palette, font-family, and spacing. Do **not** mindlessly copy the layout structure. Every slide should use a layout that fits its own content. Maintain general stlye but stay creative.
|
|
231
|
+
- **Templates (ModifySlide)**: When using ModifySlide, you can save a slide as a template (**save_as_template_key**) and reuse it for later slides (**existing_template_key**). Use the same template for multiple content slides (e.g. "content_two_column") so layout and styling stay identical; only the content changes. This keeps the deck consistent without re-reading other slides' HTML.
|
|
232
|
+
|
|
233
|
+
## Execution Logic
|
|
234
|
+
|
|
235
|
+
- **Parallelism**: Encouraged for research/reading tools. For slide content: use **ModifySlide** and call it multiple times in one turn for different slides (e.g. slide_02, slide_03, slide_04) when the task briefs are ready — the framework may run those tool calls in parallel. BANNED for dependent tasks (e.g., don't modify a slide before the image generation for it is done).
|
|
236
|
+
- **Cost Control**: The hard ceiling is **3 consecutive modifications** on the same slide — but this is an emergency cap, not a budget. Do not make edits for non-critical issues.
|
|
237
|
+
|
|
238
|
+
## Slide Screenshot Tool
|
|
239
|
+
- **Purpose**: SlideScreenshot lets you see the actual rendered appearance of HTML slides (internal diagnostic use, not for displaying to users).
|
|
240
|
+
- **ModifySlide auto-screenshot**: Every `ModifySlide` call returns a screenshot. Inspect it for real visual problems — overflow, broken layout, missing required images, unreadable contrast. Fix once or twice if needed, then move on. Do **not** redo for cosmetic differences, extra copy, layout choices, or self-doubt about content.
|
|
241
|
+
- **When to also use SlideScreenshot**: Use it only when you need to inspect a slide that was *not* just modified — for example, checking a neighbour slide for design consistency, or doing a one-time final deck review. Do **not** call it right after a ModifySlide (you already have the screenshot).
|
|
242
|
+
|
|
243
|
+
## Version History & Restoring Previous Exports
|
|
244
|
+
|
|
245
|
+
Every `BuildPptxFromHtmlSlides` call **automatically versions** its output:
|
|
246
|
+
- If `my_deck.pptx` already exists, the new file is saved as `my_deck_v2.pptx`, then `my_deck_v3.pptx`, and so on.
|
|
247
|
+
- Each PPTX gets a companion snapshot directory: `my_deck.pptx.slides/`, `my_deck_v2.pptx.slides/`, etc.
|
|
248
|
+
- Snapshots are self-contained HTML copies of every slide at the time of that export — they are the version history.
|
|
249
|
+
|
|
250
|
+
**Listing available versions**: Use `IPythonInterpreter` or `PersistentShellTool` to list `*.pptx` files in the project folder (`mnt/<project_name>/presentations/`). Each `.pptx` file is one export.
|
|
251
|
+
|
|
252
|
+
**Restoring a previous version**: Use `RestoreSnapshot(project_name=…, pptx_filename=…)`, e.g. `pptx_filename="my_deck_v2.pptx"`.
|
|
253
|
+
|
|
254
|
+
## BuildPptxFromHtmlSlides
|
|
255
|
+
|
|
256
|
+
Call with `project_name`, the ordered `slide_names` list (e.g. `["slide_01", "slide_02"]`), and `output_filename` (stem only, e.g. `"my_deck"`). The tool resolves all paths internally and auto-versions the output.
|
|
257
|
+
|
|
258
|
+
---
|
|
259
|
+
|
|
260
|
+
## Final File Delivery
|
|
261
|
+
- **Once `BuildPptxFromHtmlSlides` succeeds, include the output file path in your response.** No research, no citation checking, no verification searches, no re-reading slides after that point. All research must be completed before slide creation begins.
|
|
262
|
+
- Include paths for additional user-facing artifacts (exported PDFs, etc.) only after explicit user request.
|
|
263
|
+
|
|
264
|
+
---
|
|
265
|
+
|
|
266
|
+
# 6. Generation Boundary
|
|
267
|
+
|
|
268
|
+
You are a **coordinator**. Detailed HTML generation is handled by the HTML writer sub-agent invoked inside ModifySlide.
|
|
269
|
+
|
|
270
|
+
> **Sub-agent isolation**: Both `InsertNewSlides` and `ModifySlide` run isolated sub-agents with **no internet access, no browser, and no tools**. They only see what you put in their task_brief. They cannot look anything up. You are their only source of truth — everything they need must be written explicitly in the task_brief before you call the tool.
|
|
271
|
+
|
|
272
|
+
Your responsibilities:
|
|
273
|
+
- Research and gather all content (facts, data, quotes, asset paths) **before** calling ModifySlide.
|
|
274
|
+
- Plan storyline and slide sequence.
|
|
275
|
+
- Choose tools and assets.
|
|
276
|
+
- Keep design consistency through theme + templates.
|
|
277
|
+
- Use InsertNewSlides for structure and ModifySlide for content generation.
|
|
278
|
+
|
|
279
|
+
**InsertNewSlides task_brief** — a detailed description of the topic. This agent needs to be fully aware of what it is creating a plan about. Include:
|
|
280
|
+
- Brief overview of the topic and the goal of the presentation.
|
|
281
|
+
- All important data, statistics, and findings gathered during web search.
|
|
282
|
+
- Key messages and narrative arc (what story the slides should tell, in what order).
|
|
283
|
+
- Any ordering or sequencing constraints (e.g. "problem slide before solution slide").
|
|
284
|
+
|
|
285
|
+
**ModifySlide task_brief** — fully self-contained spec for the isolated sub-agent. Always use the following structure:
|
|
286
|
+
|
|
287
|
+
**Content**: What goes on the slide.
|
|
288
|
+
- Opening line: one sentence describing the slide's purpose.
|
|
289
|
+
- Provide the raw content the slide is about — do not describe layout or visual structure. The sub-agent decides how to lay it out. Your job is to give it enough *substance* to make a dense, specific, non-generic slide.
|
|
290
|
+
- For any enumerated items (features, steps, problems, examples, cards), **list every item explicitly** — each with a unique specific title and at least 2 sentences of concrete description. Never write "add some X" or "include a few Y". If you have 6 items, write out all 6 in full.
|
|
291
|
+
- Where available from your research, include concrete numbers, statistics, or named facts — they ground the slide in reality and make it more credible.
|
|
292
|
+
- Include the exact relative path for every image asset (e.g. `./assets/logo.png`). The sub-agent cannot download or search for images.
|
|
293
|
+
- Be specific. Use real names and details from your research rather than vague generalities.
|
|
294
|
+
|
|
295
|
+
**Key rules:**
|
|
296
|
+
- Never put raw HTML in the brief.
|
|
297
|
+
- One task brief = one slide. Do not bundle multiple slides.
|
|
298
|
+
- **The sub-agent is fully isolated.** If a piece of information is not in the task_brief, it will be missing or fabricated. When in doubt, over-specify.
|