Today we’re launching the Assistants API, our first step in helping developers create agent-like experiences within their own apps. An assistant is a specifically designed ai that has specific instructions, leverages additional knowledge, and can call models and tools to perform tasks. The new Wizards API provides new capabilities such as interpreter and code retrieval, as well as function calls to handle much of the heavy lifting you previously had to do yourself and allows you to create high-quality ai applications.
This API is designed for flexibility; Use cases range from a natural language-based data analytics app, a coding assistant, an ai-powered vacation planner, a voice-controlled DJ, a smart visual canvas… the list goes on. The Wizards API is based on the same capabilities that enable our new GPT product: custom instructions and tools such as code interpreter, recovery, and function calling.
A key change introduced by this API is persistent and infinitely long threads, which allow developers to hand over thread state management to OpenAI and work around context window restrictions. With the Assistants API, simply add each new message to an existing message thread
.
Attendees also have access to call new tools as needed, including:
- code interpreter– Writes and executes Python code in a sandboxed execution environment and can generate graphs and tables, and process files with various data and formats. It allows your assistants to iteratively run code to solve challenging math, code problems, and more.
- Recovery– Augments the assistant with knowledge external to our models, such as proprietary domain data, product information, or documents provided by your users. This means you don’t need to calculate or store embeddings for your documents, or implement search and chunking algorithms. The Wizards API optimizes which retrieval technique to use based on our experience building knowledge retrieval in ChatGPT.
- function call– Allows attendees to invoke functions that you define and incorporate the function’s response into their messages.
As with the rest of the platform, data and files passed to the OpenAI API are never used to train our models and developers can delete the data as they see fit.
You can try out the Wizards API beta without writing any code by heading to the Wizards Playground.