|
|
|
Ask HN: Do you roll your own agent or use a framework?
|
|
11 points
by break_the_bank
257 days ago
|
|
I am curious if people here roll their own agents from scratch or use frameworks. I am trying to what frameworks are really working, and why. I have so far hand-rolled all of my agents, some of this is because when I first tried LangChain I was intimidated by how complex/bloated it was. It felt like writing Java while I was actually writing Python. There is also a big element of wanting a lot more control on how my agent works compared to what a framework could provide us (around context management, compacting histories if the chat gets too big etc). Having said that I am curious 1. Do you use frameworks, if so which one? 2. If you used a framework but churned, which one did you churn from and why? 3. How has the process of rolling your own framework been? How is the experience of running it in production? |
|
I use the OpenAI messages spec, and have the messages be an append only list, to make it easy to reason about.
Don’t bother compacting histories imo. worse case just summarise and spin up a new agent with the context.
good luck!