Skip to content

feat(compose): support multimodal content in tool results#968

Open
JonXSnow wants to merge 2 commits intoalpha/09from
feat/agentic-tools-multimodal
Open

feat(compose): support multimodal content in tool results#968
JonXSnow wants to merge 2 commits intoalpha/09from
feat/agentic-tools-multimodal

Conversation

@JonXSnow
Copy link
Copy Markdown
Contributor

  • Add ContentBlocks field to FunctionToolResult for multimodal output
  • Convert MessageInputPart (image/audio/video/file) to ContentBlock in toolMessageToAgenticMessage for both sync and stream paths
  • Add messageInputPartsToContentBlocks helper and derefString utility

- Add ContentBlocks field to FunctionToolResult for multimodal output
- Convert MessageInputPart (image/audio/video/file) to ContentBlock
  in toolMessageToAgenticMessage for both sync and stream paths
- Add messageInputPartsToContentBlocks helper and derefString utility
@codecov
Copy link
Copy Markdown

codecov bot commented Apr 15, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
⚠️ Please upload report for BASE (alpha/09@d7161f7). Learn more about missing BASE report.

Additional details and impacted files
@@             Coverage Diff             @@
##             alpha/09     #968   +/-   ##
===========================================
  Coverage            ?   82.22%           
===========================================
  Files               ?      162           
  Lines               ?    20367           
  Branches            ?        0           
===========================================
  Hits                ?    16747           
  Misses              ?     2441           
  Partials            ?     1179           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

…rsion

- Merge part-level Extra and media-type Extra (MessagePartCommon.Extra)
  into ContentBlock.Extra, with media-type taking precedence
- Add mergeExtra helper for combining two extra maps
- Add test cases for Extra merge, text-only Extra, and nil Extra
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant