Agent Frameworks for Beginners: Orchestration vs. Foundation Layers
Beginners often confuse graph-based agent orchestration frameworks with lower-level LLM application frameworks. This article explains what each layer solves, how they depend on each other, a practical learning path, a minimal agent skeleton, and common mistakes to avoid.
1. Why beginners get lost between two frameworks
Developers new to agent work often hit the same question: a popular graph-style orchestration framework looks well suited to building agents, yet another foundational framework keeps appearing in the material they read. How are the two related? Do you have to learn the second before the first?
To answer that, it helps to see where each type of framework sits in the broader stack of large-language-model application development.
2. What each type of framework is for
2.1 Foundation frameworks: a component toolbox for LLM apps
A foundation framework’s main job is to turn capabilities that show up again and again in LLM apps into reusable components. Those typically include:
- Model invocation wrappers: a consistent way to call different model services so you can switch the underlying model through the same interface.
- Prompt management: templates and parameters so prompts can be reused and maintained.
- Tool calling: letting the model invoke external functions, query databases, or hit search interfaces—the practical base of agent behavior.
- Memory and context: keeping multi-turn history and supporting short-term and long-term memory.
- Retrieval augmentation: connecting to stores such as vector databases for knowledge-base question answering.
In short, a foundation framework answers: what parts make up an LLM application?
2.2 Orchestration frameworks: a process engine for complex agents
A graph-style orchestration framework sits at a higher level of abstraction. It answers how those parts work together. Its central idea is a state graph:
- Nodes: each node wraps one concrete step, such as calling a model, running a tool, or making a decision.
- Edges and conditional routing: how control moves between nodes, including choices that depend on runtime state.
- Shared state: every node reads and writes the same state object, so information accumulates as the flow runs.
- Loops and backtracking: agents often need a think–act–observe–think-again cycle, and a graph naturally supports that.
- Checkpoints and resume: persisting the flow so you can add human approval, interrupt, and continue—capabilities that matter in production.
3. How they relate: dependency, not replacement
The key point is that an orchestration framework is usually built on top of the abstractions of a foundation framework. It is not a parallel substitute. Inside an orchestration node, the actual work is often done with the foundation layer’s model calls, tool bindings, and prompt templates.
A plain analogy: the foundation framework is standardized building materials and hardware; the orchestration framework is the construction drawing and the scheduling system. Drawings alone do not tell you what each symbol means in materials. A pile of materials without a drawing will not produce a complex multi-story building.
In real projects the two often appear together: the orchestration framework owns the overall flow, and foundation components implement what happens inside each node.
4. How beginners should learn them
A practical path looks like this.
Stage 1: Build the foundation first (about 1–2 weeks)
Do not start with a framework. Call the model through the official SDK and implement two things yourself:
- A chat program that keeps multi-turn conversation memory.
- One minimal tool call—for example, a function the model uses to look up the weather.
The goal is to see what an agent actually is: not magic, but a model plus tools plus loop control.
Stage 2: Learn an orchestration framework (about 2–3 weeks)
With those ideas in place, study a graph orchestration framework. Focus on four mechanisms: state definition, writing nodes, conditional edges, and loop control. You will notice that much of the boilerplate you wrote by hand is already packaged by the framework.
Stage 3: Fill in the foundation framework as needed
When a node needs richer prompt management, retrieval augmentation, or structured output, go back and learn the matching modules in the foundation framework. The target stays clear, and you avoid reading documentation from start to finish with no concrete goal.
5. A minimal skeleton
The pseudocode below shows a typical agent shape under an orchestration framework. It is illustrative only, not runnable code:
# Shared statestate = {"messages": [], "tool_result": None}# Node 1: call the model and decide whether a tool is neededdef agent_node(state):response = llm.invoke(state["messages"])return {"messages": state["messages"] + [response]}# Node 2: run the tooldef tool_node(state):result = execute_tool(parse_tool_call(state))return {"tool_result": result}# Conditional edge: tool call -> tool_node, otherwise endgraph.add_conditional_edge("agent_node",route_fn, # route based on the model output{"need_tool": "tool_node", "done": END})graph.add_edge("tool_node", "agent_node") # close the loop
The skeleton makes the split obvious: inside the nodes you still use ordinary model-calling capability. The orchestration framework only decides who runs, under what condition, and where control goes next.
6. Common mistakes
- Skipping the basics and jumping straight to orchestration. The state graph stays half-understood, and when something fails you have nowhere to start.
- Treating the framework as the truth. A framework is packaging. Prompt design, tool-calling protocols, and context-window management matter more than memorizing one framework’s API.
- Over-designing. A simple task often needs only a single call plus a little logic. Not every problem needs a state graph.
7. Conclusion
Back to the original question: if you learn an orchestration framework, do you still need a foundation framework? Yes—but not as “finish one completely, then start the other.” Learn them in alternation and fill gaps as the work demands.
Orchestration gives you macro-level flow control. The foundation layer gives you the micro-level components. Together they support agent applications that are both flexible and solid enough for production. For beginners, understanding the real problem behind each abstraction matters more than stacking frameworks quickly.
