Summary
Add a complete working example showing how to use Tilo with LangGraph.
LangGraph is the most widely used stateful agent framework (from the LangChain team). Many developers build multi-step agents with LangGraph and want to render the output as interactive UI.
What to build
File: examples/integrations/langgraph_example.py
The example should show:
- A simple LangGraph graph (at least 2 nodes)
- Using
TiloCallbackHandler to capture the final output
- Converting the graph output to a Tilo AIP spec via
langchain_result_to_spec
- Printing the block types produced
Acceptance criteria
Resources
Summary
Add a complete working example showing how to use Tilo with LangGraph.
LangGraph is the most widely used stateful agent framework (from the LangChain team). Many developers build multi-step agents with LangGraph and want to render the output as interactive UI.
What to build
File:
examples/integrations/langgraph_example.pyThe example should show:
TiloCallbackHandlerto capture the final outputlangchain_result_to_specAcceptance criteria
pip install tilo langchain-openai langgraphOPENAI_API_KEYis setexamples/integrations/README.mdtableResources
examples/integrations/langchain_example.py— existing LangChain example to followbackend/tilo/adapters/langchain.py— the adapter to use