Skip to content
Discussion options

You must be logged in to vote

The image block gives the model image input; it does not, by itself, create /images/photo.png in
your backend. The filesystem tools therefore have no file at that path to find.

For this use case, I would save the attachment in application code before invoking the agent. Decode
your existing b64_data to bytes, pass [("/images/photo.png", image_bytes)] to the same backend
instance's upload_files, and check each returned response's error before telling the agent the
file is available. You can still include the image block if you want the model to see it directly.
With FilesystemBackend(virtual_mode=True), that path is relative to its configured virtual root.

A custom tool is useful if the ag…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@mcigramajofeijoo
Comment options

Answer selected by mcigramajofeijoo
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants