You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If I understand it correctly I would need to provide the files in the part section of the message types.Content(role="user", parts=parts)
Let's say I have a dir called /some/path/to/the/dir how would I attach/provide the files to the request while somehow provideing the directory structure? Do I need to provide some metadata for each file part? or would I tar it before and upload only one file?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
I want to build a agent that looks at a bunch of files.
If I understand it correctly I would need to provide the files in the part section of the message
types.Content(role="user", parts=parts)
Let's say I have a dir called
/some/path/to/the/dir
how would I attach/provide the files to the request while somehow provideing the directory structure? Do I need to provide some metadata for each file part? or would I tar it before and upload only one file?Beta Was this translation helpful? Give feedback.
All reactions