Experts.js is the easiest way to create and deploy OpenAI's Assistants and link them together as Tools to create advanced Multi AI Agent Systems with expanded memory and attention to detail.
Experts.js is a JavaScript framework that simplifies using OpenAI's Assistants API to build multi-agent AI systems. It removes the complexity of managing Run objects and enables linking assistants as tools.
Assistants are AI agents with instructions and tools.
They can use normal OpenAI tools, function calling, and other assistants as tools.
Tools are subclasses of assistants, acting as reusable components in the system.
They can be LLM-backed, performing actions based on their parent assistant's requests, or non-LLM tools, implementing custom logic.
Threads are managed context windows for agents, essentially acting as their memory.
Experts.js handles thread creation and management, ensuring each tool has its own thread to avoid locking issues.
Experts.js provides an easy-to-use "ask" interface to interact with assistants.
You don't need to manage Run objects directly. It also offers streaming capabilities, allowing applications to receive real-time outputs from the assistants.
The framework includes advanced features like lifecycle hooks and token usage metrics.
You can customize assistant initialization and track token consumption.
Experts.js enables the creation of multi-tier agent systems where different assistants specialize in specific domains and collaborate to solve complex problems.
For example, a company assistant can have a merchandising expert tool, which, in turn, uses an OpenSearch tool for searching a product catalog.