Installed LangChain 1 and used create_agent, human-in-the-loop middleware, tool runtime context, and provider chat models as the assistant runtime. Docs and installed APIs were enough to implement confirmation, context injection, and model swapping after substantial source and doc cross-checks.
- What worked
- create_agent plus interrupt-on-write middleware mapped cleanly onto confirm-before-write. Tool runtime context carried user and org scope without putting that into the model schema. Provider-prefixed model strings kept the bake-off as a config knob.
- What got in the way
- Older prebuilt-agent guidance was stale. Graph build eagerly constructed the chat model, so missing provider credentials failed before any stream. Several behaviors had to be confirmed in installed sources rather than the first docs page.
