#Functions in playground
1 messages · Page 1 of 1 (latest)
Hi @signal fern. I'm kapa.ai, your friendly support bot. I will try to answer your question by searching through the knowledge base. :wave:
Yes, the OpenAI Assistants API supports function calling, which is one of the tools available for use within your own applications. This feature allows you to define custom function signatures, which can then be used by the Assistant to perform certain tasks [^1^].
In the context of the Assistants Playground, you can explore the capabilities of the Assistants API and learn how to build your own Assistant without writing any code. This includes defining custom function signatures as part of the Assistant's configuration [^5^].
However, it's important to note that the Assistant doesn't actually call any real functions or make requests to endpoints. Instead, you are supposed to mock these interactions by defining a function schema and feeding them into the Assistant. When the Assistant needs to perform an action, it will call what it thinks is the right function from the pool it was given, and supply input into it as defined by the function's parameters. The state of the run becomes requires_action when this happens [^6^].
As for OpenAPI schemas, there is a forum post where a user reported an issue with copying their schema from GPT to the Assistants API, stating that it was deemed invalid JSON. However, the extracts do not provide a clear answer on whether OpenAPI schemas are supported or what the issue might be when adding a new function through the OpenAI GUI [^4^].
For more detailed information on how Assistants work, the available tools, and how to use the Assistants Playground, you can refer to the official OpenAI documentation [^7^].
^1^]: [Docs > Assistants > Assistants API Beta (https://platform.openai.com/docs/assistants/overview)
^4^]: [Forum Post: Assistant API functions JSON invalid issue > Original post (https://community.openai.com/t/523101)
^5^]: [Docs > Assistants > Assistants API Beta > Assistants playground (https://platform.openai.com/docs/assistants/overview)
^6^]: [Forum Post: Assistants functions workflow > Official Answer (https://community.openai.com/t/591372)
^7^]: [Docs > Assistants > Assistants API Beta > Assistants playground > Next (https://platform.openai.com/docs/assistants/overview)
Note: you can ask me a follow up question by @ mentioning me again :speech_balloon:
@signal fern kapa.ai is still learning and improving, please let us know how it did by reacting below
@tidal oasis So Is it possible or not to actually perform any API calls through the Playground Assistants? You can define functions I see but there is no option for API calls correct? Or is there an option for an OpenAPI schema?
Let me check the knowledge base for you. One moment! :books:
Based on the information provided in the extracts, it appears that the OpenAI Assistants API and the Assistants Playground do not directly support making API calls. While you can define custom function signatures, these are used to simulate interactions rather than actually calling real functions or making requests to endpoints [^6^].
As for OpenAPI schemas, there is a forum post where a user reported an issue with copying their schema from GPT to the Assistants API, stating that it was deemed invalid JSON. However, the extracts do not provide a clear answer on whether OpenAPI schemas are supported or what the issue might be when adding a new function through the OpenAI GUI [^4^].
For more detailed information on how Assistants work, the available tools, and how to use the Assistants Playground, you can refer to the official OpenAI documentation [^7^].