Skip to content

Add optional src or metadata field to BinaryContent #2139

Open
@lshamis

Description

@lshamis

Description

There isn't a good way to tag BinaryContent with metadata. For example, I might want to do

result = agent.run_sync(
    [
        'What company is this logo from?',
        BinaryContent(
            data=image_response.content,
            media_type='image/png',
            src='https://iili.io/3Hs4FMg.png',
        ),
    ]
)

I'm trying to figure out a good way to specify as a tool argument which binary object the tool should act upon. If there is a src field, than the tool can scan for the associated data.
Maybe there is a more direct way to do this??

References

No response

Metadata

Metadata

Assignees

Labels

questionFurther information is requested

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions