What is LangGraph and why use it?
Overview
A simple AI application might receive a question, send it to a large language model (LLM), and return the generated response. This works well when a single model invocation can accomplish the entire task.
However, real-world AI applications frequently require more than one operation.
Consider a customer support agent that must:
- Understand a customer’s request.
- Retrieve information from a knowledge base.
- Query an order management database.
- Decide whether additional information is necessary.
- Request human approval before issuing a refund.
- Generate and deliver a final response.
The number and order of these operations may vary depending on the customer’s request. Some operations may need to repeat, while others may need to pause until external information becomes available.
Managing these interactions is an orchestration problem.
Orchestration means coordinating multiple operations, their dependencies, execution order, shared data, and lifecycle to accomplish a larger objective.
LangGraph is an open-source orchestration framework and execution runtime for building stateful workflows and AI agents. It allows developers to represent application behavior as a graph rather than embedding every execution decision inside a large function.
LangGraph is particularly useful when applications require conditional execution, iterative reasoning, persistent state, human intervention, or recovery from failures.
In the previous lesson, we distinguished LangChain, LangGraph, LangSmith, and Deep Agents. LangChain provides model integrations and higher-level agent abstractions, LangGraph provides execution orchestration, LangSmith supports observability and evaluation, and Deep Agents provides a higher-level agent harness.
This lesson focuses on the orchestration layer and introduces the concepts underlying the LangGraph Graph API.
Why a graph?
The limitations of linear execution
Most programmers begin by implementing applications as sequences of function calls.
For example, the following Python program represents a simple customer support workflow without using any AI framework.
def classify_request(message: str) -> str:
if "refund" in message.lower():
return "billing"
return "general"
def retrieve_information(category: str) -> str:
knowledge_base = {
"billing": "Refunds are processed within 5 business days.",
"general": "Our support team is available every day.",
}
return knowledge_base[category]
def generate_response(information: str) -> str:
return f"Thank you for contacting us. {information}"
message = "Where is my refund?"
category = classify_request(message)
information = retrieve_information(category)
response = generate_response(information)
print(response)Expected output:
Thank you for contacting us. Refunds are processed within 5 business days.This approach is perfectly reasonable for a small, predictable workflow.
Now imagine adding requirements such as repeating unsuccessful searches, escalating sensitive requests, running independent database queries concurrently, and recovering after a server restart.
Ordinary Python can implement every one of these requirements. However, developers would need to design and maintain additional scheduling, persistence, recovery, and execution-management logic.
As complexity increases, nested conditions, loops, exception handlers, and shared variables can make the application difficult to understand and maintain.
LangGraph provides a structured alternative.
Graph-based orchestration
A graph is a mathematical structure consisting of vertices and connections between them.
In application orchestration, vertices are called nodes, while connections are called edges.
A node represents an operation. An edge represents a permitted execution transition.
Instead of one function controlling the entire application, individual functions perform specific operations, and the graph describes how those operations are coordinated.
The following graph represents a sequential support workflow.
The retrieval node does not need to invoke the response-generation function directly. The graph runtime schedules that function after retrieval completes.
This separation provides several engineering benefits:
- Modularity: Each operation can be developed and tested independently.
- Explicit control flow: Execution paths are represented by graph connections and routing functions.
- Extensibility: New operations and decision points can be introduced without rewriting the entire workflow.
- Observability: Individual execution steps can be inspected and monitored.
- Recoverability: Configured persistence allows execution progress to survive interruptions and certain failures.
Choosing an orchestration approach
| Characteristic | Linear Python | Custom Python Orchestrator | LangGraph |
|---|---|---|---|
| Sequential execution | Simple | Supported | Built in |
| Conditional execution | If statements | Custom routing | Conditional edges |
| Iterative execution | Loops | Custom scheduling | Graph cycles |
| Shared state | Variables | Custom state management | State schema and reducers |
| Checkpointing | Manual | Custom implementation | Configurable |
| Pause and resume | Manual | Custom implementation | Built-in interrupt mechanism |
| Execution streaming | Manual | Custom implementation | Built-in interfaces |
| Best suited for | Simple tasks | Specialized runtimes | Complex stateful workflows |
LangGraph is not automatically the best choice for every application. A single model call or straightforward transformation may require only a Python function.
Use LangGraph when explicit orchestration and execution-management capabilities provide meaningful benefits.
Directed and cyclic graphs
Directed graphs
A directed graph contains edges with a specific direction.
An edge from node A to node B means execution may proceed from A to B. It does not automatically permit execution from B back to A.
Consider an invoice-processing application containing validation, calculation, and report-generation operations.
These operations have dependencies. Calculating an invoice before validating its input could produce incorrect results.
Directed edges allow developers to express these dependencies explicitly.
LangGraph supports several control-flow patterns:
- Sequential execution: One operation follows another.
- Branching: Different operations run depending on a decision.
- Parallel execution: Independent operations become eligible to run concurrently.
- Fan-in: Multiple execution paths converge into a downstream operation.
- Cycles: Execution returns to a previously visited node.
Directed acyclic graphs
A directed acyclic graph, commonly called a DAG, is a directed graph that does not contain cycles.
Many traditional data-processing workflows use DAGs because their dependencies are known in advance and operations progress toward completion without revisiting earlier steps.
Examples include ETL pipelines, report generation, and document-processing workflows.
LangGraph can execute DAG-shaped workflows, making it useful even for applications that do not contain an LLM.
Cyclic graphs
A cyclic graph contains at least one directed path that returns to a previously visited node.
Cycles are especially important for AI agents because agents frequently need to inspect the results of their actions before deciding what to do next.
For example, a research agent might search for information, evaluate the retrieved evidence, and perform another search if the evidence is insufficient.
The following graph illustrates a bounded research loop.
Unlike a fixed pipeline, this workflow does not have a predetermined number of search operations.
Its execution depends on the information accumulated during the run.
This pattern forms the foundation of many agent architectures: reason, act, observe, and decide whether another iteration is necessary.
Workflows versus agents
A workflow generally follows execution paths defined by developers. An agent uses a model to make some execution decisions dynamically, such as choosing a tool or deciding whether another operation is necessary.
The distinction is not whether the application contains an LLM or a cycle. A deterministic workflow can contain cycles, and a workflow can use an LLM for classification without giving it substantial autonomy.
LangGraph supports both approaches and allows them to coexist within the same application.
For example, an agent might autonomously investigate a billing problem, while deterministic business rules control whether it is permitted to issue a refund.
Why termination conditions matter
Cycles introduce the possibility of non-terminating execution.
An agent might repeatedly call a search tool, consume excessive tokens, or continue revising an answer without making meaningful progress.
Every production loop should have explicit exit conditions, such as:
- Successful task completion.
- Maximum iteration count.
- Exhausted time or financial budget.
- Unrecoverable failure.
- Human intervention.
LangGraph also provides a runtime recursion limit as a protective execution boundary. We will use it in a later example.
Stateful vs stateless applications
Stateless applications
A stateless application does not retain application-level execution or conversational state between independent requests.
Each request must contain or retrieve the information necessary to process it.
A simple translation endpoint is a typical example. It receives text and a target language, performs translation, and returns the result.
The application does not need to remember previous translations.
Stateless services are often easier to scale because any available service instance can handle an incoming request.
Stateful applications
A stateful application maintains information that can influence subsequent operations.
For example, a travel-planning agent might need to remember:
- The destination selected by the user.
- Available travel dates.
- Previously retrieved flight information.
- The remaining budget.
- Decisions already made.
- Whether the user approved the proposed itinerary.
Without this information, every operation would need to reconstruct the context from scratch.
In LangGraph, state is structured application data that evolves as a graph executes.
A typical state object might contain:
{
"question": "What is the refund policy?",
"search_results": [
"Refund requests must be submitted within 30 days."
],
"attempts": 1,
"answer": ""
}Each operation can read relevant fields and produce updates for subsequent operations.
State and persistence are different
An important distinction is that state does not automatically imply durable storage.
A LangGraph application can maintain state throughout a single execution without saving anything after that execution completes.
Persistence extends state beyond an individual invocation.
| Property | Execution State | Persisted State |
|---|---|---|
| Available during execution | Yes | Yes |
| Available across invocations | Not automatically | Yes, with the appropriate thread |
| Survives process restart | No, by itself | With a durable backend |
| Primary purpose | Coordinate operations | Continuity and recovery |
| LangGraph mechanism | State schema | Checkpointer |
Stateful orchestration also differs from conversational memory. Conversation messages are merely one possible type of state. A graph can maintain numerical values, documents, approval decisions, execution counters, or structured business records.
Note: A graph without a checkpointer is still stateful during its execution. Checkpointing is an additional capability that preserves execution progress beyond the current run.
The architecture in three parts
LangGraph’s Graph API is built around three fundamental components: state, nodes, and edges.
Understanding these components is essential because more advanced features build upon them.
1. State: what the application knows
State defines the information available to graph operations.
Python’s TypedDict provides a convenient way to describe its expected structure.
from typing import TypedDict
class SupportState(TypedDict, total=False):
question: str
category: str
information: str
answer: strThis schema identifies four possible state fields.
The total=False parameter allows fields to be omitted, which is useful when some values are created only after particular nodes execute.
TypedDict provides type information but does not independently enforce runtime validation.
State should contain information that downstream operations actually need. Avoid storing open database connections, API clients, or large unnecessary objects in checkpointable state.
State updates and reducers
Nodes normally return dictionaries containing only the fields they want to update.
For example:
def classify(state: SupportState) -> dict:
return {"category": "billing"}The remaining state fields are preserved.
For ordinary state fields, a sequential update replaces the previous value.
A reducer defines alternative behavior for merging updates into a particular field. For example, a list reducer can append new search results instead of replacing existing results.
LangGraph also provides MessagesState and the add_messages reducer for applications that maintain model and conversation messages.
Reducers become especially important when multiple parallel operations update the same field.
2. Nodes: what the application does
A node is a unit of executable work.
Nodes can perform operations such as:
- Invoking an LLM.
- Calling a REST API.
- Executing a database query.
- Validating structured input.
- Performing calculations.
- Requesting human approval.
A node is typically a synchronous or asynchronous Python function.
LangGraph does not require nodes to contain AI logic. Deterministic functions are often essential for implementing reliable business rules.
Prefer small nodes with clear responsibilities and explicit state updates.
3. Edges: what happens next
Edges determine the execution relationships between nodes.
A normal edge declares a fixed transition:
builder.add_edge("classify", "retrieve")A conditional edge uses a routing function to select a destination based on the current state.
builder.add_conditional_edges(
"classify",
route_request,
)LangGraph also provides two special execution markers:
START: represents entry into the graph.END: represents termination of an execution path.
Neither marker requires a user-defined function.
Putting the three components together
The main builder is StateGraph.
The following example demonstrates a complete sequential graph using deterministic operations. It requires no model provider, API key, or external service.
Install LangGraph 1.x if it is not already available.
python -m pip install "langgraph>=1.1.4,<2"Detailed environment configuration will be covered in the next lesson.
from typing import TypedDict
from langgraph.graph import StateGraph, START, END
class SupportState(TypedDict, total=False):
question: str
category: str
information: str
answer: str
def classify(state: SupportState) -> dict:
question = state["question"].lower()
category = "billing" if "refund" in question else "general"
return {"category": category}
def retrieve(state: SupportState) -> dict:
knowledge_base = {
"billing": "Refunds take 5 business days.",
"general": "Support is available every day.",
}
return {"information": knowledge_base[state["category"]]}
def respond(state: SupportState) -> dict:
return {
"answer": f"Thank you! {state['information']}"
}
builder = StateGraph(SupportState)
builder.add_node("classify", classify)
builder.add_node("retrieve", retrieve)
builder.add_node("respond", respond)
builder.add_edge(START, "classify")
builder.add_edge("classify", "retrieve")
builder.add_edge("retrieve", "respond")
builder.add_edge("respond", END)
graph = builder.compile()
result = graph.invoke({
"question": "When will I receive my refund?"
})
print(result)Expected output, formatted for readability:
{
'question': 'When will I receive my refund?',
'category': 'billing',
'information': 'Refunds take 5 business days.',
'answer': 'Thank you! Refunds take 5 business days.'
}Notice that the nodes never invoke one another directly.
The builder defines their relationships, compile() validates the graph structure and produces an executable graph, and invoke() starts execution.
The final result contains information accumulated across all three nodes.
What the runtime adds
Defining nodes and edges is only part of LangGraph’s functionality. Its runtime is responsible for executing the resulting graph.
A runtime is the software responsible for managing the execution of an application according to its defined behavior.
1. Execution scheduling and supersteps
Internally, LangGraph uses an execution model inspired by Pregel, a graph-processing system based on message passing.
Execution progresses through discrete stages called supersteps.
Conceptually, each superstep involves:
- Identifying nodes eligible to execute.
- Executing the selected nodes.
- Collecting and applying their state updates.
- Determining which nodes become eligible next.
Independent nodes may execute within the same superstep. Their state updates become visible to subsequent supersteps rather than immediately to sibling nodes executing concurrently.
The graph finishes normally when no additional operations remain scheduled.
This execution model gives LangGraph a consistent way to coordinate sequential operations, parallel branches, and cycles.
2. Conditional routing and iterative execution
The runtime manages repeated node execution without requiring developers to maintain a manual scheduling loop.
The following example simulates an iterative research workflow. Each search retrieves another piece of evidence until enough evidence has been gathered or the attempt budget has been exhausted.
from operator import add
from typing import Annotated, Literal, TypedDict
from langgraph.graph import StateGraph, START, END
class ResearchState(TypedDict):
attempts: int
findings: Annotated[list[str], add]
def search(state: ResearchState) -> dict:
attempt = state["attempts"] + 1
return {
"attempts": attempt,
"findings": [f"Evidence from search {attempt}"],
}
def decide(state: ResearchState) -> Literal["search", "finish"]:
if len(state["findings"]) >= 3:
return "finish"
if state["attempts"] >= 5:
return "finish"
return "search"
builder = StateGraph(ResearchState)
builder.add_node("search", search)
builder.add_edge(START, "search")
builder.add_conditional_edges(
"search",
decide,
{
"search": "search",
"finish": END,
},
)
graph = builder.compile()
result = graph.invoke(
{"attempts": 0, "findings": []},
config={"recursion_limit": 20},
)
print(result)Expected output:
{
'attempts': 3,
'findings': [
'Evidence from search 1',
'Evidence from search 2',
'Evidence from search 3'
]
}The conditional edge repeatedly routes execution back to the search node.
The reducer, Annotated[list[str], add], instructs LangGraph to concatenate incoming findings with existing findings.
The recursion limit restricts the number of supersteps a run may execute. Exceeding it raises GraphRecursionError.
Current LangGraph versions starting with 1.1.4 default to a very high limit of 10,007 supersteps. Explicitly configure an appropriate limit rather than depending on this default.
A recursion limit is not a substitute for business-level termination conditions, token budgets, or execution deadlines.
3. Checkpointing and durable execution
When a checkpointer is configured, LangGraph can preserve execution snapshots associated with a thread.
These checkpoints allow applications to inspect previous state, continue conversations, and resume supported execution paths after interruptions or failures.
LangGraph provides multiple persistence implementations, including:
InMemorySaverfor local development and testing.SqliteSaverfor lightweight, disk-backed persistence.PostgresSaverandAsyncPostgresSaverfor PostgreSQL-backed persistence.
A thread identifier associates an invocation with a particular execution history.
Durability modes control when checkpoint data is persisted: exit, async, or sync.
Stronger durability can reduce the amount of progress lost during failures but may introduce additional latency.
Checkpointing is distinct from long-term memory. LangGraph stores provide application-managed information that can be shared across different threads.
See the persistence documentation and checkpointer documentation for the corresponding runtime contracts.
4. Human-in-the-loop execution
Some operations should not proceed without human intervention.
LangGraph’s interrupt() mechanism allows execution to pause while waiting for external input.
The following complete example pauses a refund workflow and resumes it after an approval decision. It simulates the refund status without performing any financial transaction.
from typing import TypedDict
from langgraph.graph import StateGraph, START, END
from langgraph.checkpoint.memory import InMemorySaver
from langgraph.types import Command, interrupt
class RefundState(TypedDict, total=False):
amount: float
approved: bool
status: str
def request_approval(state: RefundState) -> dict:
approved = interrupt({
"question": "Approve this refund?",
"amount": state["amount"],
})
if not isinstance(approved, bool):
raise ValueError("Approval must be a boolean.")
return {"approved": approved}
def process_refund(state: RefundState) -> dict:
return {
"status": "Approved" if state["approved"] else "Rejected"
}
builder = StateGraph(RefundState)
builder.add_node("approval", request_approval)
builder.add_node("process", process_refund)
builder.add_edge(START, "approval")
builder.add_edge("approval", "process")
builder.add_edge("process", END)
graph = builder.compile(checkpointer=InMemorySaver())
config = {
"configurable": {
"thread_id": "refund-001"
}
}
paused = graph.invoke({"amount": 1500.0}, config)
print(paused["__interrupt__"][0].value)
completed = graph.invoke(
Command(resume=True),
config,
)
print(completed["status"])Expected output:
{'question': 'Approve this refund?', 'amount': 1500.0}
ApprovedThe first invocation pauses before processing the refund.
The second invocation resumes the same thread and supplies the approval decision.
InMemorySaver makes this demonstration possible within a single running Python process. A durable backend is necessary to preserve the paused execution across process restarts.
When resumed, the interrupted node restarts from its beginning. Consequently, operations performed before the interrupt may execute again.
Tip: Keep irreversible side effects after approval and design externally visible operations to be idempotent. Checkpointing alone does not guarantee exactly-once execution of external API calls.
5. Streaming
Long-running agents should provide useful progress information instead of returning only a final result.
LangGraph supports streaming state updates, model message chunks, and custom application events.
This standalone example demonstrates the current version 2 streaming interface.
from typing import TypedDict
from langgraph.graph import StateGraph, START, END
from langgraph.config import get_stream_writer
class State(TypedDict):
text: str
def normalize(state: State) -> dict:
writer = get_stream_writer()
writer({"status": "Normalizing text"})
return {"text": state["text"].strip().lower()}
builder = StateGraph(State)
builder.add_node("normalize", normalize)
builder.add_edge(START, "normalize")
builder.add_edge("normalize", END)
graph = builder.compile()
for chunk in graph.stream(
{"text": " HELLO WORLD "},
stream_mode=["updates", "custom"],
version="v2",
):
print(chunk["type"], chunk["data"])Expected output:
custom {'status': 'Normalizing text'}
updates {'normalize': {'text': 'hello world'}}A frontend could use these events to display progress without implementing a separate event-dispatching system.
Model token streaming and the higher-level event streaming interface will be explored in later lessons.
Reference: LangGraph streaming.
6. Fault tolerance and runtime context
LangGraph provides configurable retry policies, asynchronous node timeouts, error handlers, and node caching.
For example, RetryPolicy(max_attempts=3) can be attached to a node that communicates with an unreliable external service.
These mechanisms require appropriate configuration. Retrying an invalid business operation or caching an operation that creates a financial transaction would be incorrect.
The runtime also supports dependency injection through a context schema and Runtime[Context]. This allows nodes to access invocation-specific information, such as tenant identifiers or service dependencies, without mixing those values into mutable graph state.
Thread identifiers belong in execution configuration; application-specific context belongs in the runtime context.
What LangGraph does not do
Understanding the framework’s boundaries is essential for production engineering.
LangGraph does not provide an LLM. Developers must integrate a model or implement their own deterministic decision logic.
It does not automatically determine the correct agent architecture, prompts, tools, or business policies.
It does not guarantee accurate model outputs, prevent hallucinations, or independently validate business decisions.
It does not automatically secure databases, authenticate users, enforce authorization, or isolate tenants.
It also does not make external operations transactional. Database consistency, idempotency, and compensation strategies remain application responsibilities.
Finally, compiling a graph does not deploy a production API server. Hosting, scaling, authentication, monitoring, and operational infrastructure require additional configuration or deployment services.
For conventional tool-calling agents, LangChain’s create_agent provides a higher-level starting point built on LangGraph. Direct use of StateGraph becomes valuable when developers require greater control over orchestration.
Common mistakes and best practices
Avoid introducing an orchestration framework solely because an application uses an LLM. Start by identifying requirements that justify graph execution.
When designing a graph:
- Keep nodes focused on individual responsibilities.
- Return explicit state updates instead of relying on in-place mutation.
- Define reducers deliberately for accumulated or concurrently updated fields.
- Keep execution state separate from runtime dependencies and durable business records.
- Give every cycle a meaningful termination condition.
- Use retries selectively and protect external side effects against duplicate execution.
- Choose a persistence backend appropriate for the required recovery guarantees.
- Test individual nodes, conditional routes, failure paths, and complete executions.
For more complex applications, begin by drawing the business process before implementing nodes. Identify which operations require deterministic rules, which benefit from model intelligence, and which require human authorization.
This approach keeps the agent flexible without surrendering control over important application behavior.
Connecting to the next lesson
Throughout this lesson, we intentionally used deterministic Python functions and in-memory persistence to isolate the orchestration concepts from model-provider configuration and infrastructure.
The examples target the documented LangGraph 1.x APIs. Their expected outputs follow from the deterministic implementations; they have not been execution-tested in the authoring environment.
In the next lesson, Installation and setup, we will prepare a dedicated Python environment, install the required packages, configure provider credentials, and verify the development environment.
The subsequent lessons will use that environment to build a sequential LangGraph application and visualize its structure with Mermaid, completing the foundation needed for more advanced agent architectures.
Build a Sequential Order Processing Graph
Build a LangGraph application that processes a customer order through three sequential nodes. Calculate the subtotal, apply a 10% discount when the subtotal is at least 1000, and calculate the final amount including 18% tax. Use a shared state to transfer information between nodes and verify that the graph produces the correct result.
from typing import TypedDict
from langgraph.graph import StateGraph, START, END
class OrderState(TypedDict, total=False):
quantity: int
unit_price: float
subtotal: float
discount: float
tax: float
total: float
def calculate_subtotal(state: OrderState) -> dict:
# TODO: Calculate quantity multiplied by unit price.
raise NotImplementedError
def apply_discount(state: OrderState) -> dict:
# TODO: Apply a 10% discount when subtotal >= 1000.
raise NotImplementedError
def calculate_total(state: OrderState) -> dict:
# TODO: Calculate 18% tax on the discounted subtotal.
# TODO: Return the tax and final total.
raise NotImplementedError
builder = StateGraph(OrderState)
# TODO: Register the three nodes.
# TODO: Connect START, the nodes, and END.
# TODO: Compile the graph.
# Test input:
order = {"quantity": 5, "unit_price": 250.0}
# TODO: Invoke the compiled graph.
# Expected subtotal: 1250.0
# Expected discount: 125.0
# Expected tax: 202.5
# Expected total: 1327.5from typing import TypedDict
from langgraph.graph import StateGraph, START, END
class OrderState(TypedDict, total=False):
quantity: int
unit_price: float
subtotal: float
discount: float
tax: float
total: float
def calculate_subtotal(state: OrderState) -> dict:
subtotal = state["quantity"] * state["unit_price"]
return {"subtotal": round(subtotal, 2)}
def apply_discount(state: OrderState) -> dict:
subtotal = state["subtotal"]
discount = subtotal * 0.10 if subtotal >= 1000 else 0.0
return {"discount": round(discount, 2)}
def calculate_total(state: OrderState) -> dict:
discounted_amount = state["subtotal"] - state["discount"]
tax = round(discounted_amount * 0.18, 2)
total = round(discounted_amount + tax, 2)
return {"tax": tax, "total": total}
builder = StateGraph(OrderState)
builder.add_node("calculate_subtotal", calculate_subtotal)
builder.add_node("apply_discount", apply_discount)
builder.add_node("calculate_total", calculate_total)
builder.add_edge(START, "calculate_subtotal")
builder.add_edge("calculate_subtotal", "apply_discount")
builder.add_edge("apply_discount", "calculate_total")
builder.add_edge("calculate_total", END)
graph = builder.compile()
result = graph.invoke({
"quantity": 5,
"unit_price": 250.0,
})
print(result)
assert result["subtotal"] == 1250.0
assert result["discount"] == 125.0
assert result["tax"] == 202.5
assert result["total"] == 1327.5
# Verify the no-discount path.
small_order = graph.invoke({
"quantity": 2,
"unit_price": 250.0,
})
assert small_order["discount"] == 0.0
assert small_order["total"] == 590.0
print("All tests passed!")Summary
- LangGraph is a low-level orchestration framework and runtime for building stateful, long-running workflows and AI agents.
- Graph-based orchestration separates application operations from the rules that determine their execution order.
- Directed graphs support sequential execution, branching, parallel execution, and cycles.
- Cycles allow agents to repeatedly reason, act, observe results, and refine their decisions until a termination condition is satisfied.
- The Graph API consists of three fundamental components called state, nodes, and edges.
- LangGraph provides execution scheduling, state management, checkpointing, streaming, interrupts, and configurable fault tolerance.
- Developers remain responsible for business logic, security, model behavior, termination conditions, and the correct configuration of production infrastructure.