Repository navigation
Execution Flow
sequenceDiagram
participant User
participant Main as main(argv)
participant Registry as EXAMPLES registry
participant Example as example_*()
participant Builder as StateGraph
participant Runtime as CompiledGraph
User->>Main: --self-test / --topic
Main->>Registry: select demo functions
loop selected offline topics
Main->>Example: call(export_dir)
Example->>Builder: add_node / add_edge / compile
Builder-->>Example: compiled graph
Example->>Runtime: invoke(initial_state)
Runtime-->>Example: updated state
Example-->>Main: result dictionary
end
Main->>Main: self_test(results) if requested
Main-->>User: console JSON / optional result file
The EXAMPLES registry maps 18 topic keys to (function, requires_llm) tuples. Without --with-llm, the default loop selects the 16 non-API topics. --self-test runs these and validates expected values. --topic selects exactly one example.
compile_graph() calls builder.compile() and optionally writes Mermaid text to --export-mermaid directory. Diagram export is not image rendering and does not require online Mermaid PNG services.
example_add_messages() merges message lists directly with add_messages. It returns a dictionary but does not invoke compile_graph(). The generated system diagrams are maintained separately from the per-example .mmd exports.
Multi-Agent Workflows using LangGraph · Home · Architecture · LLD · Security. This project is licensed under the Apache License, Version 2.0.© 2026 Sudhanshu Shukla · Licensed under the Apache License, Version 2.0.
Navigation
- Home
- Installation and Quickstart
- Repository Layout
- Graph Examples
- Architecture
- Implementation
- Operations
- Design Tradeoffs
- Future Enhancements
- Changes from Upload