Skip to content

feat: add ContentBlock embedded resource helpers and fix NumberSchema field types - #115

Merged
hashemix merged 2 commits into
mainfrom
feat/embedded-resource-helpers
Jun 24, 2026
Merged

feat: add ContentBlock embedded resource helpers and fix NumberSchema field types#115
hashemix merged 2 commits into
mainfrom
feat/embedded-resource-helpers

Conversation

@hashemix

Copy link
Copy Markdown
Member

📌 Summary

Add ContentBlock embedded resource helpers

✨ Changes Made

ContentBlock embedded resource helpers (schema_utils.rs in both versions)

  • ContentBlock::embedded_text_resource(uri, mime_type, text) — convenience constructor for text-based embedded resources (JSON, plain text, source code, etc.)
  • ContentBlock::embedded_blob_resource(uri, mime_type, base64_data) — convenience constructor for binary embedded resources (images, audio, arbitrary blobs) from base64-encoded data.

Both helpers mirror the existing text_content / image_content pattern on CallToolResult.

@hashemix
hashemix merged commit c63a2db into main Jun 24, 2026
2 checks passed
@hashemix hashemix mentioned this pull request Jun 24, 2026
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.

1 participant