Hands on Examples
Use these examples after Quick Start to explore real scenarios with runnable code and CLI commands.
When to use this page: You are ready for richer workflows and want copy-and-run snippets instead of building from scratch.
Audience: Engineers prototyping orchestration, PMs preparing demos, and data developers running evaluations without coding.
TUI Development: Many examples below demonstrate Textual-based TUI patterns. For comprehensive TUI guidance, refer to the TUI foundation spec in the repository.
Note: Validated example projects are now centralized in the GL SDK Cookbook. This ensures all blueprints remain self-contained, runnable, and maintained with the latest SDK best practices.
Each row links to a runnable project. Follow the README for quick start instructions, then inspect code to understand the pattern.
Validated Example Projects
These projects demonstrate foundational patterns and are maintained in the GL SDK Cookbook. Each project is self-contained and ready to run.
Basic Agent (Hello World)
A minimal starter demonstrating how to create and run an agent using config-based instantiation.
Modular Tool Integration
Learn how to organize complex tools with separate helper files and modular structure.
Multi-Agent Coordinator
Coordinator with specialized sub-agents (e.g., formal and casual greeting team).
Multi-Agent Patterns
Runnable blueprints for Sequential, Parallel, Router, Hierarchical, and Aggregator flows.
Runtime Configuration
How to pass per-request overrides for agents, tools, and MCPs at runtime (e.g., database URLs or planning).
Agent Export & Import
Demonstrates how to serialize and deserialize agent configurations for portability.
Local Execution
Run agents locally without deployment (see Local vs Remote for feature mapping).
Cookbook Examples
Attach native or custom tools to an agent
Attach files, manage artifacts, and reuse chunks
Coordinate sequential, parallel, router, hierarchical, or aggregator flows
Configure Model Context Protocol connectors
Tune language_model_id values and routing strategies
Orchestrate runs from scripts or CI pipelines
Export/import configurations or sync LangFlow flows
Apply PII masking, memory, and tool-output policies
Prepare for multi-account setups and future RBAC
Last updated