-
Notifications
You must be signed in to change notification settings - Fork 173
Architecture
weego edited this page Jun 5, 2026
·
2 revisions
LightAgent keeps a small core and delegates persistence, external systems, and domain behavior to composable adapters.
User Query
|
v
LightAgent.run()
|
+-- History
+-- Memory.retrieve()
+-- Skills metadata
+-- Tree of Thought planning
+-- ToolRegistry schemas
|
v
OpenAI-compatible Chat Completion
|
+-- Final answer
+-- Tool calls
|
v
AsyncToolDispatcher
|
+-- Python tools
+-- Built-in tools
+-- MCP tools
+-- Skill tools
LightFlow
|
+-- Step dependency validation
+-- Per-step retries
+-- Dependency output passing
+-- Flow trace events
|
v
Named LightAgent.run() steps
| Module | Responsibility |
|---|---|
core.py |
LightAgent, run loop, tool calling, memory context, swarm handoff |
flow.py |
LightFlow, step dependency execution, flow results, flow trace events |
tools.py |
Tool registry, dynamic loading, async dispatch |
protocol.py |
MemoryProtocol and MemoryPolicy
|
result.py |
RunResult and StreamEvent
|
tracing.py |
Trace event recording |
skills.py |
Skill discovery and activation |
skill_tools.py |
Tools for listing and activating Skills |
mcp_client_manager.py |
MCP stdio and SSE client integration |
errors.py |
Error taxonomy and formatting |
- Python tools through
tool_info. - Runtime tools through
agent.run(..., tools=[...]). - Memory through
store()andretrieve(). - MCP tools through
setup_mcp(). - Skills through
SKILL.mddirectories. - Deterministic workflow composition through
LightFlow. - External tracing through
tracetools.
Keep the framework small and let applications own domain policy:
- persistence
- user authorization
- high-risk action approval
- memory governance
- deployment topology
- business workflow orchestration above or around
LightFlow
LightAgent Wiki - see the repository, releases, and issues.
- Home
- Quick Start
- Core Concepts
- API Reference
- Examples Cookbook
- Migration Guide
- Tools
- Tool Generator
- Memory
- MCP
- Skills
- LightFlow
- Tree of Thought
- Self-Learning
- Multi-Agent
- Tracing and Debugging
- Langfuse Observability
- Model Providers
- browser-use Integration
- Testing and CI
- Deployment Guide
- Architecture
- Security
- Known Limitations
- FAQ
- FAQ 中文
- Roadmap
- Release Process
- Contributing