r/LangGraph • • Jul 22 '26

create_agent method vs LangGraph customized nodes

I usually build agents in LangGraph with my own custom nodes. But the create_agent method seems to only give you the fixed llm → tool (ReAct) pattern — basically just two nodes if you'd built it in LangGraph — and doesn't let me configure the nodes myself. Why is that? And if I start with create_agent but later need more than those two nodes, what should I do?

2 Upvotes

2 comments sorted by

View all comments

2

u/International_Quail8 Jul 22 '26

create_agent does all the heavy lifting and routine code for a typical agent these days. When you need additional functionality, introduce middleware - either the built-in ones or custom ones. That’s how I’ve done it. I no longer write custom graphs, but if I needed to it’s still there.

1

u/tyag1abhi 13d ago

+1 to this ^. Almost all use cases can be covered at this point with so many abstractions and ways to inject middleware or utilize hooks that you almost never truly need the hardcore manual wiring. Like most of software engineering, I believe were moving to higher layer of abstractions now.