feat: add blob attachment type for inline base64 data#731
feat: add blob attachment type for inline base64 data#731MackinnonBuck wants to merge 1 commit intomainfrom
Conversation
Cross-SDK Consistency Review ✅This PR successfully adds the ✅ What's great:
Minor suggestion:There are a couple of documentation comments that could be updated for completeness (see inline comments), but these are non-blocking polish items. The actual implementation is solid and consistent across all SDKs. Great work maintaining feature parity! 🎉
|
75cd246 to
9d9671a
Compare
SDK Consistency Review: Critical Issues Found
|
Add support for a new 'blob' attachment type that allows sending base64-encoded content (e.g. images) directly without disk I/O. Generated types will be updated automatically when the runtime publishes the new schema to @github/copilot. This commit includes: - Add blob variant to Node.js and Python hand-written types - Export attachment types from Python SDK public API - Update docs: image-input.md, all language READMEs, streaming-events.md Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
9d9671a to
7f62d6c
Compare
|
CI failures are expected until the runtime PR merges. |
Summary
Add support for a new
blobattachment type that allows sending base64-encoded content (e.g. images) directly, without disk I/O. This complements the existingfileattachment type.Adapts the SDK to the runtime changes in https://github.com/github/copilot-agent-runtime/pull/4249.
New attachment variant
Changes
Generated types (from updated
session-events.schema.json)nodejs/src/generated/session-events.tspython/copilot/generated/session_events.pygo/generated_session_events.godotnet/src/Generated/SessionEvents.csManual type updates
nodejs/src/types.ts— addedblobvariant toMessageOptions.attachmentsunionpython/copilot/types.py— addedBlobAttachmentTypedDict and updatedAttachmentunionpython/copilot/__init__.py— exportedBlobAttachmentand all attachment types from public APIDocumentation
docs/features/image-input.md— new "Quick Start — Blob Attachment" section with examples for all 4 languagesnodejs/README.md,python/README.md,go/README.md,dotnet/README.md— added blob examples to Image Support sectionsdocs/features/streaming-events.md— added "blob" to attachment type listtest/scenarios/prompts/attachments/README.md— documented blob attachment formatValidation