You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat(ai): support URL to base64 conversion in tool result outputs
Add support for converting URLs to base64 in tool result outputs when the model
doesn't support URLs. This enables tools to return media content as URLs which
will be automatically downloaded and converted to base64 during prompt conversion.
Changes:
- Extract media URLs from tool result content for downloading
- Convert downloaded media to base64 in tool result outputs
- Add test coverage for URL conversion in tool results
This allows tools like screenshot or image generation tools to return URLs
instead of base64 data, making the tool implementation cleaner while ensuring
compatibility with models that don't support URLs.
0 commit comments