Videos
I've been trying to make a project using Langgraph by connecting agents via concepts of graphs . But the thing is that the documentation is not very friendly to understand , nor the tutorials that i found were focusing on the functionality of the classes and modules . Can you gyus suggest some resources to refer so as to get an idea of how things work in langgraph .
TL;DR : Need some good resource/Tutorial to understand langgraph apart form documentation .
link: https://langchain-ai.github.io/langgraph/tutorials/introduction/#part-1-build-a-basic-chatbot
So far I am able to follow this tutorial for the "build chatbot section" - what I don't understand is the logic in the "while True" statement below - specifically on how the excelption logic is invoked:
while True:try:user_input = input("User: ")if user_input.lower() in ["quit", "exit", "q"]:print("Goodbye!")break
stream_graph_updates(user_input)except:# fallback if input() is not availableuser_input = "What do you know about LangGraph?"print("User: " + user_input)stream_graph_updates(user_input)break
Question : exception logic trigger - how does it get triggered?
If you look at the tutorial, it is showing the results of executing the exception logic -
Assistant: LangGraph is a library designed to help build stateful multi-agent applications using language models. It provides tools for creating workflows and state machines to coordinate multiple AI agents or language model interactions. LangGraph is built on top of LangChain, leveraging its components while adding graph-based coordination capabilities. It's particularly useful for developing more complex, stateful AI applications that go beyond simple query-response interactions.
Goodbye!
How does the execution logic get triggered?