TaskWeaver icon indicating copy to clipboard operation
TaskWeaver copied to clipboard

How to access the attachment of type image/PDF in a new role

Open arhaang13 opened this issue 1 year ago • 2 comments
trafficstars

I am trying to create a new role and I want to access the attachment either generated by the code that is a plot or a graph or i want to access the attachment uploaded by the user.

How will I be able to access this attachment in the role. Is there an url or a method to get the attachment?

Thank you!

arhaang13 avatar Jul 13 '24 14:07 arhaang13

I got how to get the image using get_attachment. but i want to parse the url of a base64 image to the openai api. but I get a bad request error.

Kindly help!

arhaang13 avatar Jul 15 '24 12:07 arhaang13

I am trying to create a new role and I want to access the attachment either generated by the code that is a plot or a graph or i want to access the attachment uploaded by the user.

How will I be able to access this attachment in the role. Is there an url or a method to get the attachment?

Thank you!

There's no such API. If you need to access the artifact generated by role A from role B, you need somehow pass the path in the message to it.

liqul avatar Jul 16 '24 02:07 liqul