Skip to content
anythingai.space
Module 10

Frameworks & Tools

LangChain, LangGraph, LlamaIndex, DSPy, multi-agent frameworks, coding agents — and how to choose.

lessons
6
steps
53
time
75 min
LANGCHAIN PACKAGE TIERSlangchain-community · long taillangchain-classic · legacy v0partners · -openai, -anthropiclangchain · create_agent, MCPlanggraph · orchestrationlangchain-core · RunnablesLibrary / SDK code → langchain-coreonlyServices → core + partner packages (+langgraph)Notebooks → full langchain forconvenience
01intermediate·13 min·9 steps

LangChain and LangGraph

Compose pipelines with LCEL pipes, keep dependencies lean with the package tiers, and move to LangGraph when the agent needs cycles, state and checkpoints.

  • What LCEL pipes give you over hand-written glue
  • Which LangChain packages belong in production
  • Why agents need cycles, and how LangGraph models them
  • Checkpoints, interrupts and time travel per thread
Start →
DATA-SHAPEDPROMPT-SHAPED1,000 PDFstables · scansRule-based parserIndexHand-tuned prompt100 linesNew modelshipped this monthBroken output
02intermediate·13 min·8 steps

LlamaIndex and DSPy

Two specialists: LlamaIndex for data-shaped work (parsing, indexing, event-driven workflows) and DSPy for turning prompts into compiled, optimisable programs.

  • LlamaIndex's data-first model: Nodes, parsers and retrievers
  • Event-driven Workflows and data-driven fan-out
  • When to pair LlamaIndex with LangGraph
  • DSPy: signatures, modules and optimizers
Start →
CREW · HIERARCHICAL PROCESSFLOW · STATE MACHINEdelegatedelegateManagerdelegates · validatesResearchertask: sourcesWritertask: draft@start research@listen write@listen publish
03intermediate·13 min·9 steps

Multi-Agent Frameworks

Semantic Kernel and AutoGen merged into Microsoft Agent Framework, CrewAI's crews and flows, handoffs, typed agents in Pydantic AI and Mastra, and how to stop runaway loops.

  • Why new Microsoft-stack work starts on Agent Framework
  • Semantic Kernel's plugin model and why planners were removed
  • CrewAI roles, processes and Flows
  • What a handoff forwards, and what it drops
Start →
OBSERVABILITY PYRAMIDValue · success rateFlow · latency & cost per nodeRaw · prompt/completion tracesIs the task getting done?Which node is thebottleneck?What exactly was sent andreturned?
04intermediate·11 min·9 steps

Observability with LangSmith

Trace every node of an agent run, turn feedback into datasets, score runs with judges, compare variants, and budget for tracing itself.

  • The observability pyramid: value, flow, raw traces
  • Trace attribution: find the node that really failed
  • Datasets and judges as unit tests for LLM apps
  • Cheap decision-model judges vs LLM judges
Start →
CODING AGENTSAI IDES AND PLATFORMSCODING MODELSClaude CodeclosedCodex CLIApache-2.0OpenCodeMITOpenHandsMITCursorDevin DesktopGitHub CopilotAntigravityClaude 5.5GPT-6.xGeminiOpen weights
05intermediate·13 min·9 steps

Coding Agents

How Claude Code and its peers work: the agent loop and tools, CLAUDE.md, subagents, permission modes, safe CI pipelines, cost, and the wider coding-agent landscape.

  • The coding-agent loop: tools gated by a permission layer
  • CLAUDE.md as project memory, reviewed like code
  • Why auto mode is a convenience, not a boundary
  • A safe headless pipeline in CI
Start →
COURSE REQUIREMENTS.TXTllama-index==0.10.30llama-index-llms-openai==0.1.26FRESH PIP INSTALL TODAYllama-index 0.14.xintegration: whatever resolvesWHAT BREAKSImportError: SimpleDirectoryReadermoved importCan't instantiate abstract classpartial upgrade
06intermediate·12 min·9 steps

Choosing a Framework

Match the framework to the job, keep vendor SDKs at the leaves, learn the primitives every framework converges on, and survive the churn with pins, lockfiles and evals.

  • Pick a framework from the job it has to do
  • Raw SDK, thin layer or framework
  • Neutral orchestrator at the core, lab SDKs at the leaves
  • Why tutorials break, and the silent changes that don't
Start →
Read deeper

Guide chapters · Frameworks & Tools

Next module · 11
Document Processing