Ask HN:你自建 Agent 还是使用框架?

3作者: break_the_bank8 个月前
我很好奇这里的人是完全从头开始构建自己的智能体,还是使用框架。我正在尝试了解哪些框架真正有效,以及原因。到目前为止,我都是手动构建所有智能体的,部分原因是我第一次尝试 LangChain 时,被它复杂/臃肿的程度吓到了。感觉就像在用 Python 写 Java。此外,与框架可能提供的相比,我更希望能够更好地控制我的智能体的工作方式(例如上下文管理,在聊天记录过长时压缩历史记录等)。话虽如此,我很好奇: 1. 你们使用框架吗?如果是,用的是哪个? 2. 如果你们曾经使用过框架但后来放弃了,放弃的是哪个框架?为什么? 3. 从头开始构建框架的过程是怎样的?在生产环境中运行它的体验如何?
查看原文
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&#x2F;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<p>1. Do you use frameworks, if so which one?<p>2. If you used a framework but churned, which one did you churn from and why?<p>3. How has the process of rolling your own framework been? How is the experience of running it in production?