At the moment, we’re releasing the Assistant API. This is step one in enabling builders to construct agent-like experiences inside their very own purposes. An assistant is a specialised AI that has particular directions, leverages extra data, and might invoke fashions and instruments to carry out duties. The brand new Assistant API lets you construct high-quality AI apps by offering new options like code interpreter and retrieval, in addition to operate calls that deal with a lot of the heavy lifting that you simply beforehand needed to do your self.
This API is designed with flexibility in thoughts. Use circumstances vary from pure language-based knowledge evaluation apps, coding assistants, AI-powered trip planners, voice-controlled DJs, sensible visible canvases, and extra. The listing goes on. The Assistant API is constructed on the identical options that allow the brand new GPT product, together with customized directions and instruments reminiscent of a code interpreter, retrieval, and performance calls.
Necessary adjustments launched by this API embody: Persistent and infinitely lengthy threadThis permits builders handy off thread state administration to OpenAI and keep away from context window constraints. With the Assistant API, you merely append new messages to present messages. thread.
The assistant can even invoke new instruments as wanted, together with:
- code interpreter: You possibly can write and run Python code in a sandbox execution setting, generate graphs and charts, and course of recordsdata containing quite a lot of knowledge and formatting. This permits your assistant to run code repeatedly to unravel tough code, math issues, and extra.
- search: Energy your assistant with data from exterior the mannequin, reminiscent of your personal area knowledge, product data, and user-provided documentation. This implies there isn’t a have to compute and retailer doc embeddings or implement chunking or search algorithms. The Assistants API optimizes the search methods we use primarily based on our expertise constructing data search in ChatGPT.
- operate name: An assistant can name a operate that you simply outline and embody the operate’s response in a message.
As with the remainder of the platform, the info and recordsdata handed to the OpenAI API are by no means used to coach fashions, and builders can delete the info as wanted.
Go to the Assistant Playground to check out the Assistant API beta with out writing any code.

