feat(eve): project structured file parts on message.received#481
Open
NicoMoli wants to merge 3 commits into
Open
feat(eve): project structured file parts on message.received#481NicoMoli wants to merge 3 commits into
NicoMoli wants to merge 3 commits into
Conversation
The message.received stream event now carries structured parts (text plus file/image attachment metadata) alongside the flattened message summary, and the default reducer projects attachments as file message parts so chat UIs can render user-attached files instead of parsing [file: …] placeholder text. Attachment bytes and internal sandbox paths are never projected; a url is included only for client-resolvable http(s)/data: URLs. Co-authored-by: Claude Opus 4.7 <noreply@anthropic.com> Signed-off-by: Nicolas Molina <n_m09@hotmail.com>
Contributor
|
@NicoMoli is attempting to deploy a commit to the Vercel Team on Vercel. A member of the Team first needs to authorize it. |
…d-file-parts Signed-off-by: Nicolas Molina <n_m09@hotmail.com> # Conflicts: # e2e/fixtures/agent-basic-runtime/evals/runtime/image-attachment.eval.ts
c121b7e to
71b8f9e
Compare
…llish coalesce Co-authored-by: Claude Opus 4.7 <noreply@anthropic.com> Signed-off-by: Nicolas Molina <n_m09@hotmail.com>
|
This would be really nice, hitting the same issue as you right now :) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
The
message.receivedstream event now carries structuredparts(text plus file/image attachment metadata) alongside the flattenedmessagesummary. The default message reducer projects attachments asfilemessage parts, so chat UIs can render user-attached files and images instead of parsing the[file: …]placeholder text.EVE_MESSAGE_STREAM_VERSION16 → 17.urlis included only when the attachment is a client-resolvablehttp(s)/data:URL.This PR should address this issue:
#286
Testing
createMessageReceivedEventparts projection (inline bytes, URL parts,eve-url:refs,data:URLs,eve-sandbox:refs, opaque base64, image normalization).partsfallback.image-attachment.eval.tsnow assertsmessage.receivedcarries a structuredimage/pngfile part.