Unified content shapes with MIME type #674
atesgoral
started this conversation in
Ideas - General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Pre-submission Checklist
Your Idea
Tool result content items can have a more uniform shape that also invites extensibility by using new MIME types.
(Combining some initial shape I was proposing in another thread with @jonathanhefner's simplification idea.)
The suggestion here is to deprecate the specific text/audio/image/resource shapes and joining them under one roof:
mimeTypetextandblobproperties to distinguish between text/binary itemsuriproperty to mark any item as a resourceText
Deprecate
Note:
mimeTypecan be shoved in as a first step before removingtype:Do instead
Image & Audio
Deprecate
Do instead
Backwards compatibility for the above
When
typeis set to "text" or "image" or "audio", either ignore or error on a paradoxicalmimeTypewhose main type does not matchtype.Embedded Resources
Deprecate
Do instead
So it can be valid to have a Resource with only
uri. The rest can be determined when the resource is fetched from the URI.Optionally, the "current" version of the resource can be embedded by including
mimeTypeand (textorblob).Backwards compatibility for resources
When
typeis set to "resource", error ifuriis missing.Unified type def
Maybe it's as simple as:
Scope
Beta Was this translation helpful? Give feedback.
All reactions