Interview

Interview

Interview

Aug 22, 2023

Tereza Tizkova

Tereza Tizkova

Tereza Tizkova


Discussing agents' tracing, observability, and debugging with Ismail Pelaseyed, the founder of Superagent


We talked with Ismail Pelaseyed about AI agents, their current challenges, and potential solutions.

Ismail is the founder of Superagent - a framework for web or no-code developers. Being active for around two months, Superagent already gained around 2000 users and over 1500 agents running in the production every day. It is a completely open-source platform, with a cloud version free to use.

Users and Use Cases

Superagent tries to approach no-code developers to integrate agents into their applications.

They have two main types of agents built with Superagent:

1. Chatbots - Retrieval types of agents, used to Q&A over structured or unstructured documents.

2. Action-based assistant - Run either through a chat interface or just through an API.

Source: docs.superagent.sh


Architecture and Techstack

Superagent has a database layer on top of the agents' infrastructure. When a user creates an agent, they create an entry into that database with a configuration of how an agent should run. They have an API service hosted on render.com which picks the configuration depending on the API call, creates the agent on the fly, and runs it.

They are currently using Langchain, which has a very prompt-based agent infrastructure, to call various LLMs and LlamaIndex to ingest various data.

They are deep into replacing currently used frameworks, moving away from the core Langchain Agent-LLM loop (e.g. ReAct, Chain of Thought).

The Superagent team has a wrapper around some individual types of agents which they have tested and are ready to be run in production. These agents can then be easily configured without the need to consider various components that are involved in running agents, mainly:

  • Memory

  • Vectorizations

  • The agent's acting and whole logic.

Current Challenges

The agent architecture is still in its early stages, making configuration for specific use cases challenging. 

“Many people attempt to create agents but often give up due to its inability to meet their desired functionality, " says Ismail. “Our goal is to develop agents that are not only demo-worthy but also practical and useful for business purposes.”

Ismail has been noticing the many and many specific ways in which people want to use their agents for the same use case. “People really do have specific ways of working on the same thing, which therefore requires deep developers’ understanding.”

Creating efficient agents that work effectively in production for specific use cases demands significant expertise at this stage. Especially with high pressure being placed on ensuring user-friendliness for no-code users.

With that come the challenges of debugging, tracing, monitoring, and observability of the agents.

Debugging the Agents

The current process of solving a bug is very simple. If an agent instance fails, end users go to the Superagent Discord. There they describe the bug, for example, that a retrieval agent did not use a document to make a query, but hallucinated instead.

“It is not the actual software that is failing, it is mostly the setup that the user has. It can be prompt, it can be the document being ingested, or anything else. That is what we are trying to debug.”

Ismail emphasizes looking for a powerful debugging solution that would be user-centric. It is not the developer team, but the end users who are not currently able to debug the agent themselves.

Tracing and Observability

The tracing currently lacks WHY and HOW. That is, the user sees that an agent instance failed, but doesn't understand WHY exactly it happened and HOW to fix the problem. This problem can be solved on an individual level but will grow big when Superagent gains even more regular users and bigger customers.

Monitoring agents' logs. Source: Superagent dashboard


Agents's tools and SDKs

To overcome the challenges of tracing and debugging, the Superagent team can envision themselves using an equivalent of Sentry (a software error tracking and monitoring platform), which could provide insights into the origin of a bug. They have tried Langsmith (a web-based GUI to test and monitor calls from LLM apps), which, however, won't give the root cause of the bug and possible solutions.

“We need a tool that would also tell a user what they should do with the bug,” says Ismail.

The Superagent team has a UI where end users can see agents’ runs. It is very similar to Langsmith or any other type of logging framework.

When a user faces a problem, the Superagent team can log into the system, see what the agent tries to do in each step, and then visualize the log. This is in principle similar to regular server logs visualizations

Conclusion

Right now the Superagent team focuses on re-doing their whole infrastructure, aiming to run the agents in a separate queue, and creating a queue system, instead of running them on the fly.

“We would go for big changes in our infrastructure if it solves the discussed problems,” says Ismail.

Without a doubt, in the very young agents space (AutoGPT, the first well-known agent, launched only in March 2023), Superagent and other agents are steadily gaining traction among end users. Despite the current drawbacks, this shows the real demand for agents.

If you want to try Superagent yourself, check the web, GitHub, or join the Discord community.



E2B is building the cloud for AI agents.

A platform and infrastructure where AI agents can act autonomously and as the first class citizen.

©2024 FoundryLabs, Inc. All rights reserved.

E2B is building the cloud for AI agents.

A platform and infrastructure where AI agents can act autonomously and as the first class citizen.

©2023 FoundryLabs, Inc. All rights reserved.

E2B is building the cloud for AI agents.

A platform and infrastructure where AI agents can act autonomously and as the first class citizen.

©2023 FoundryLabs, Inc. All rights reserved.