How can I access or send the metadata in a function tool? #362
-
Thank you very much for your open ia library, the problem I have is that I have not found a way to send or obtain the metadata, such as a user ID that I need in the function that I call in a certain thread. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
It depends on how you've implemented your tool and the properties you are exposing. The metadata is whatever you wish to make for it. Then you fill in that data as you process the tool results and return it to the assistant. There is also metadata you can add to the assistant, those are in the OpenAI spec, but the rest is up to you and your data models you're already using. |
Beta Was this translation helpful? Give feedback.
It depends on how you've implemented your tool and the properties you are exposing.
The metadata is whatever you wish to make for it. Then you fill in that data as you process the tool results and return it to the assistant.
There is also metadata you can add to the assistant, those are in the OpenAI spec, but the rest is up to you and your data models you're already using.