This is a simple example of using LangGraph Studio with a basic echo graph.
- Install the requirements:
pip install -r requirements.txt- Run LangGraph Studio:
langgraph dev- Open your browser and navigate to
http://localhost:3000
graph.py: Contains the graph definition with a simple echo nodelanggraph.yaml: Configuration file for LangGraph Studiorequirements.txt: Project dependencies
The graph consists of a single node that echoes back any message it receives. The state contains:
messages: A list of messagesnext: The next node to execute
When you send a message through the Studio interface, it will be processed by the process_message node and echoed back.