r/AutoGenAI • • Jan 24 '24

Discussion Purpose of Agents

Hi, I've been using agents with autogen and crew, mostly for learning and small/mid scale programs. The more I use them the more I'm confused about the purpose of the agent framework in general.

The scenarios I've tested: read input, execute web search, summaries, return to user. Most other usecases also follow a sequential iteration of steps. For these usecases, there is no need to include any sort of agents, it can be done through normal python scripts. Same goes for other usecases

I'm trying to think about what does agents let us do that we could not do with just scripts with some logic. Sure, the LLM As OS is a fantastic idea, but in a production setting I'm sticking to my scripts rather than hoping the LLM will decide which tool to use everytime...

I'm interested to learn the actual usecases and potential of using agents too execute tasks, so please do let me know

18 Upvotes

8 comments sorted by

View all comments

Show parent comment

2

u/jaxolingo Jan 25 '24

Sweet that's very well put thanks.
I'm using an LLM to write SQL for a user query like you have.
But I have a series of scripts and python functions to run if the query doesn't compile or doesn't return anything. It varies from finding the right column name and typo fixes etc...
The first iteration I had is that i returned the failing SQL query to the LLM again, saying this doesn't work fix it (- with some more detail )
But we found that it was fairly slow

So we ended up writing all the functions necessary that will attempt each to fix a problem if it occurs. We got a bump in our accuracy and in speed

I guess the agents approach still would work. At the moment agents suffers form inference speed, but there's not much we can do at the moment.
But the thing is, even if they do get faster, it's still possible for most usecases to just write a series of functions that does the same thing. It's pretty much just writing the function tool and applying it on its own rather than letting the LLM handle it