> LangGraph Agent Workflows

Build stateful multi-step AI agent workflows with LangGraph. Graphs, nodes, conditional edges.

fetch
$curl "https://skillshub.wtf/skillshub-team/catalog-batch5/langgraph-workflows?format=md"
SKILL.mdLangGraph Agent Workflows

LangGraph

Basic Agent Graph

from langgraph.graph import StateGraph, END
from typing import TypedDict

class AgentState(TypedDict):
    messages: list
    next_step: str

def call_model(state: AgentState) -> AgentState:
    response = llm.invoke(state["messages"])
    return {"messages": state["messages"] + [response]}

def should_continue(state: AgentState) -> str:
    if state["messages"][-1].tool_calls:
        return "tools"
    return END

graph = StateGraph(AgentState)
graph.add_node("agent", call_model)
graph.add_node("tools", tool_executor)
graph.add_conditional_edges("agent", should_continue, {"tools": "tools", END: END})
graph.add_edge("tools", "agent")
graph.set_entry_point("agent")

app = graph.compile()
result = app.invoke({"messages": [HumanMessage("What's the weather?")]})

Checkpointing for persistence, human-in-the-loop, branching, subgraphs

┌ stats

installs/wk0
░░░░░░░░░░
first seenMar 18, 2026
└────────────

┌ tags

└────────────