Skip to content
Huy Nguyen's Blog

Archives

All the articles I've archived.

202614
October6
  • Agent Graph Engineering, Part 5: Tools and Guardrails

    What the model may do, and what it may say. Structured tool errors you raise instead of return, at-most-once execution for actions you cannot undo, and why the guardrail that works is demarcation rather than detection.

  • Agent Graph Engineering, Part 4: The Agent and the Graph

    A typed model call and the flow that routes it, taught together because they compose. Why the agent's output type is also your routing table, how a node declares its own legal moves, and what replaces the if/else on an intent classifier.

  • Agent Graph Engineering, Part 3: Contracts, Not Conventions

    Three services in two languages, and nothing hand-written at the seams. How OpenAPI and AsyncAPI become generated clients, why a Python docstring ends up in your TypeScript, and the form nobody wrote that stops a reviewer approving arguments they were never shown.

  • Agent Graph Engineering, Part 2: Split the Services, and Know Where the Line Goes

    Why the agent graph and the business logic belong in dedicated services, how to draw the line at state ownership rather than at layers, and the bug that taught me the thread a person reads and the thread a model remembers are not the same object.

  • Agent Graph Engineering, Part 1: The Stack, and Why Each Piece Is There

    The stack for building a typed, observable, controllable agent graph: Pydantic AI, LangGraph, chanx, OpenTelemetry, pytest and evals. What each piece buys you, what it costs, the architecture we build across the series, and the full series map.

  • Agent Graph Engineering, Part 0: I Needed This Before It Had a Name

    Years of shipping LLM features as intent detection and nested conditionals, the state machine idea that would not go away, and the library I started building and abandoned before the practice had a name. The story behind this series, and why graphs outlive the frameworks that implement them.

August2
July2
May1
March1
February1
January1
20253
December1
October1
September1
  • fast-channels: Django Channels for FastAPI

    Bringing Django Channels' battle-tested consumer patterns and channel layers to FastAPI, Starlette, and any ASGI framework — group messaging, background workers, and cross-process communication included.