Skip to content

Support passing images to factorial-agent#29

Merged
rogercampos merged 1 commit intomainfrom
feature/image-support
Nov 10, 2025
Merged

Support passing images to factorial-agent#29
rogercampos merged 1 commit intomainfrom
feature/image-support

Conversation

@rogercampos
Copy link
Contributor

@rogercampos rogercampos commented Nov 5, 2025

Adds support for images forwarding to factorial-agent. Only blobs are supported, not remote urls

@rogercampos rogercampos force-pushed the feature/image-support branch from 5ceef1e to 97eac07 Compare November 6, 2025 12:54
@rogercampos rogercampos marked this pull request as ready for review November 6, 2025 12:55
@rogercampos rogercampos requested a review from a team as a code owner November 6, 2025 12:55

sig { returns(T::Hash[Symbol, String]) }
def as_json
encoded = Base64.strict_encode64(image_data)

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think it will bite us ever, but still propose using image_data.b here to always treat stringified data as binary.

focusshifter
focusshifter previously approved these changes Nov 6, 2025
Copy link
Contributor

@oriolgual oriolgual left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why not URLs?

@rogercampos
Copy link
Contributor Author

Why not URLs?

i don't need that now, but i can also add it if you want. We need to do some sanitization on the input file before giving it to the llm (like rezie if big dimensions or converting pdfs) so it's better for me to pass the blob.

@rogercampos
Copy link
Contributor Author

added support for urls now

@rogercampos rogercampos force-pushed the feature/image-support branch from 3c7aa61 to 088fce5 Compare November 6, 2025 15:06
@kagux kagux requested a review from oriolgual November 10, 2025 06:30
@rogercampos rogercampos merged commit 3aa8c73 into main Nov 10, 2025
1 check passed
@rogercampos rogercampos deleted the feature/image-support branch November 10, 2025 09:31
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.

3 participants