Repository navigation
Let the agent look at attached photos - #10
Merged
Merged
Conversation
file_read on a PNG, JPEG, GIF or WebP up to 5 MB returns an image output. Only the file id is stored; the runtime loads the bytes right before each model call, sends at most the four newest images, and replaces older ones with a note. Handover summaries stay text-only. The run panel shows the photo the agent looked at.
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.
Until now the agent could attach photos to emails but couldn't see them. Now
file_readon a photo shows it to the model.file_readon a PNG, JPEG, GIF or WebP up to 5 MB returns a newimagetool output. Larger images and other formats get a note explaining why they can't be shown; videos are unchanged (attach-only).attachImagesloads the bytes right before each model call, so neither the database nor the live event stream carries image data.Tests: unit tests for
attachImages(newest kept, older become a note, missing image, no loader, stored messages untouched), and an end-to-end test where the second model call receives the PNG bytes while the DB rows don't. 273 tests pass; lint, typecheck and web build pass. Not tested against a live model (no key locally).