The framework includes several example applications demonstrating different features and use cases. Each example is designed to showcase specific capabilities and patterns.
Tools Without Context (example)
make run-basics-tools-without-context-exampleShows how to create and use context-free tools with @tool_plain.
Tools With Context (example)
make run-basics-tools-with-context-exampleDemonstrates tools that access typed context parameters using @tool.
Agent Switching (example)
make run-basics-agent-switching-exampleShows how to switch between specialized agents using ToolResult.switch_to.
Instruction Builder (example)
make run-basics-instruction-builder-exampleDemonstrates creating dynamic instructions based on context parameters.
Tool Return Values (example)
make run-basics-tools-return-values-exampleShows different ways tools can return values and handle agent switches.
Chat Introduction (example)
make run-basics-chat-intro-exampleBasic example of using LiteChat for conversations with message streaming and history management.
-
Core (example)
make run-basics-structured-outputs-core-example
Shows how to use type-safe outputs with the Core API.
-
Chat (example)
make run-basics-structured-outputs-chat-example
Demonstrates structured outputs in chat applications.
REPL with Swarm (example)
make run-basics-repl-with-swarm-exampleExample of building an interactive REPL using the Core API.
Parallel Tool Calls (example)
make run-basics-parallel-tool-calls-exampleShows how to execute multiple tools concurrently.
Mobile Dev Team (example)
make run-advanced-mobile-dev-team-exampleExample of specialized agents working together on mobile app development.
Agent Team (example)
make run-advanced-agent-team-exampleShows how to build a managed team of agents with task planning.
Structured Outputs (example)
make run-advanced-structured-outputs-exampleAdvanced patterns for handling structured outputs.
Chat App Server (example)
make run-advanced-chat-app-server-exampleFastAPI server that streams JSON responses for real-time chat.
Chat App Client (example)
make run-advanced-chat-app-client-exampleCLI client that connects to the chat server.
For more details about specific features, see Advanced Features.