Skip to content
am-officialPublic

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Repository files navigation

LangGraph Engineering Labs

A hands-on learning repository for building stateful applications and agent workflows with LangGraph. Progress from your first compiled graph to conditional routing, reducers, dynamic fan-out, tool execution, checkpoint replay, human approval, durable jobs, and multi-agent orchestration.

65 independent, runnable labs: 20 beginner, 20 intermediate, 20 advanced, and five capstones. Each project includes Python source, a polished Streamlit interface, sample data, automated tests, cross-platform setup instructions, architecture explanations, debugging exercises, and interview questions with answer guidance.

The advanced projects explore practical engineering decisions around persistence, concurrency, idempotency, authorization, caching, timeouts, cost budgets, observability, and release gates. The learning portal helps you find projects by topic and practice explaining their mechanisms and tradeoffs. Default workflows run locally without model API keys; optional service integrations and deployment boundaries are documented separately.

Start the learning portal

Use Python 3.12. Run these commands from the repository root.

Windows PowerShell:

py -3.12 -m venv .venv
.venv\Scripts\python.exe -m pip install -r requirements.lock.txt
.venv\Scripts\python.exe -m streamlit run portal.py

macOS/Linux:

python3 -m venv .venv
.venv/bin/python -m pip install -r requirements.lock.txt
.venv/bin/python -m streamlit run portal.py

The portal searches by project code and topic, shows launch commands, and includes outcome-prediction and interview self-assessment exercises. No API key is needed for its default local workflows.

Run one lab independently

cd 01_Beginner/B01_Hello_Graph
python -m venv .venv
# Windows: .venv\Scripts\python.exe -m pip install -r requirements.txt
# Windows: .venv\Scripts\python.exe -m streamlit run app.py
# macOS/Linux:
.venv/bin/python -m pip install -r requirements.txt
.venv/bin/python -m streamlit run app.py

Copy the project’s .env.example to .env only when configuring optional service access. Each lab contains all its own code and data; copying one folder outside this repository is supported. Keep credentials out of source control. Optional service modes are explicitly selected and never silently substituted for failed account requests.

What every lab contains

File Purpose
app.py Complete backend and graphical interface
requirements.txt Pinned direct dependencies
sample_data/examples.json Three executable input/output contracts
tests/test_app.py Acceptance, invalid-input, and form tests; additional failure contracts where relevant
INSTRUCTIONS.md Windows/macOS/Linux setup, execution, examples, and testing
EXPLANATION.md Architecture, input fields, imports, complete core, and operational boundaries
EXERCISES.md Extensions and deliberate debugging tasks
INTERVIEW.md Mechanism, tradeoff, failure, scaling, and evidence questions with answer guidance
TROUBLESHOOTING.md Concrete recovery actions

Build understanding in stages

  • Beginner: learn one mechanism, run three contracts, explain every result field.
  • Intermediate: compose mechanisms, inspect failure paths, and compare design alternatives.
  • Advanced: reason about correctness under restarts, concurrent users, changing datasets, resource limits, privacy, and operational load.
  • Capstone: integrate the pipeline and defend its acceptance criteria.

See topic coverage, interview practice, study plan, and API compatibility.

Verified local results

365 passing automated tests, a clean hashed installation, 6 standalone lab tests, and representative desktop/mobile browser checks. See validation evidence for scope and limitations.

Verify

python scripts/validate_repository.py
python -m pytest -q --junitxml=docs/test-results.xml
python -m pip check

Validation results are recorded in docs/VALIDATION.md. Local execution, SDK contract fixtures, live account responses, and managed deployments are treated as separate kinds of evidence. In constrained cloud command sandboxes, asynchronous SDK evaluation may need an execution context that supports its runtime facilities. The installed SDK also emits beta/dependency deprecation warnings; see the compatibility guide.

The graph labs execute the installed LangGraph runtime. Deterministic nodes isolate orchestration behavior without requiring a model account. Production identity, distributed storage, arbitrary-code isolation, and managed deployments require their own integration checks.

Project index

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages