How do I reference a file in a chat with an agent which uses the OpenAI Assistants API (and the SK Experimental Agents feature) #5103
-
I am experimenting with the Experimental Agents package - and can't seem to figure out how to upload a file in a particular user message. In my use case my assistant should read and answer questions on an uploaded file in a user message (not seeded into OpenAI storage for Retrieval, preferably). How would I go about doing that? Even if I do upload the file into OpenAI storage for retrieval - how do I reference the file id in my user message? basically mimicking this: |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
@crickman, Worth taking a look on this, looking at the |
Beta Was this translation helpful? Give feedback.
@crickman, Worth taking a look on this, looking at the
ChatThread
class it seems to be using only theId
from ThreadModel, might worth allowing in a ChatThread to reference file ids or an abstraction for Files.