Alpha Notice: These docs cover the v1-alpha release. Content is incomplete and subject to change.For the latest stable version, see the current LangGraph Python or LangGraph JavaScript docs.
Run agent in UI
First, set up LangGraph API server locally or deploy your agent on LangGraph Platform. Then, navigate to Agent Chat UI, or clone the repository and run the dev server locally.UI has out-of-box support for rendering tool calls, and tool result messages. To customize what messages are shown, see the Hiding Messages in the Chat section in the Agent Chat UI documentation.
Add human-in-the-loop
Agent Chat UI has full support for human-in-the-loop workflows. To try it out, replace the agent code insrc/agent/graph.py
(from the deployment guide) with this agent implementation.
Agent Chat UI works best if your LangGraph agent interrupts using the
HumanInterrupt
schema. If you do not use that schema, the Agent Chat UI will be able to render the input passed to the interrupt
function, but it will not have full support for resuming your graph.