Workflow
Human in the Loop
icon
Search documents
Human in the Loop Middleware (Python)
LangChainยท 2025-11-04 17:45
Learn about how to use LangChain's human in the loop middleware to approve, edit, and reject tool calls before they're executed. Our example uses an email assistant agent that requires human feedback before sending sensitive emails. Middleware docs: https://docs.langchain.com/oss/python/langchain/middleware#human-in-the-loop Code: https://gist.github.com/sydney-runkle/628246dc4f851dda45f57b492c645ec0 ...