Skip to content

feat: add video URL prompt content - #2265

Merged
collindutter merged 1 commit into
griptape-ai:mainfrom
octo-patch:octo/20260812-input-capability-recvrYZPGoBL8q
Aug 13, 2026
Merged

feat: add video URL prompt content#2265
collindutter merged 1 commit into
griptape-ai:mainfrom
octo-patch:octo/20260812-input-capability-recvrYZPGoBL8q

Conversation

@octo-patch

@octo-patch octo-patch commented Aug 12, 2026

Copy link
Copy Markdown
Contributor

Reason: MiniMax-M3 accepts video input, but Griptape could not represent or convert video prompt content.

Summary

  • Add URL-backed video message content to prompt stacks.
  • Convert video prompts to the OpenAI-compatible video_url request shape.
  • Cover content creation, prompt-stack conversion, and driver request conversion.

Testing

  • uv run --python 3.13 --offline pytest -q tests/unit/common/contents/test_video_message_content.py tests/unit/common/test_prompt_stack.py tests/unit/drivers/prompt/test_openai_chat_prompt_driver.py (457 passed)
  • uv run --python 3.13 --offline ruff format --check griptape/common/__init__.py griptape/common/prompt_stack/contents/video_message_content.py griptape/common/prompt_stack/prompt_stack.py griptape/drivers/prompt/openai_chat_prompt_driver.py tests/unit/common/contents/test_video_message_content.py tests/unit/common/test_prompt_stack.py tests/unit/drivers/prompt/test_openai_chat_prompt_driver.py
  • uv run --python 3.13 --offline ruff check griptape/common/__init__.py griptape/common/prompt_stack/contents/video_message_content.py griptape/common/prompt_stack/prompt_stack.py griptape/drivers/prompt/openai_chat_prompt_driver.py tests/unit/common/contents/test_video_message_content.py tests/unit/common/test_prompt_stack.py tests/unit/drivers/prompt/test_openai_chat_prompt_driver.py
  • uv run --python 3.13 --offline pyright griptape/common/prompt_stack/contents/video_message_content.py griptape/common/prompt_stack/prompt_stack.py griptape/drivers/prompt/openai_chat_prompt_driver.py

@codecov

codecov Bot commented Aug 12, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@collindutter collindutter left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Great, thank you!!

@collindutter
collindutter added this pull request to the merge queue Aug 13, 2026
Merged via the queue into griptape-ai:main with commit 2e97042 Aug 13, 2026
13 checks passed
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.

2 participants