GyanBots
Work

GyanBots - How It Works

The GyanBots API empowers developers to create intelligent AI assistants capable of handling diverse tasks seamlessly.

GyanBots is actively evolving, with ongoing efforts to enhance functionality. Share your insights and suggestions in our Developer Forum!

GyanBots enable assistants to interact with OpenAI models, providing specific instructions to tailor personality and capabilities. Assistants can concurrently leverage various tools, including OpenAI-hosted tools like Code Interpreter and Knowledge Retrieval, as well as custom tools hosted via Function calling.

Persistent Threads simplify AI application development by preserving message history and automatically managing truncation when conversations become lengthy. Create a Thread once and effortlessly append Messages as users respond.

GyanBots support the use of Files in multiple formats, either during creation or within Threads. While interacting with tools, Assistants can generate files (e.g., images, spreadsheets) and reference these files in the Messages they create.

Objects

Assistant

  • Purpose-built AI utilizing OpenAI models and tools.

Thread

  • A conversation session between an Assistant and a user.
  • Threads store Messages and handle truncation to fit content into the model's context.

Message

  • A communication unit created by an Assistant or a user.
  • Messages can contain text, images, and other files, stored as a list on the Thread.

Run

  • An invocation of an Assistant on a Thread.
  • The Assistant utilizes its configuration and the Thread's Messages to perform tasks, including calling models and tools.
  • As part of a Run, the Assistant appends Messages to the Thread.

How to

Check the API docs.