Docs
Architecture

Architecture

Jan Agent Framework is organized into two architectural levels: the MVP (what's implemented and shipping) and the complete design (what's planned for v2).

Quick comparison

Aspectv1 (MVP)v2 (Complete)
Agent CoreAgentCore trait, ReActCore impl+ TurnEngine, typed I/O, ErasedAgentCore
LLM ProviderLlmProvider trait, OpenAiProvider+ streaming, ChatOptions, LlmResponse trait
Tool DispatchToolDispatcher trait, inline in cores+ centralized ToolDispatchEngine with hooks
MemoryMemoryPlugin trait, NullMemorySame (v1 design is sufficient)
PolicyRuntimePolicy trait, 3 implementationsSame + hook-based guardrails
HooksNot includedAgentHook trait, HookChain, 10 lifecycle points
EventsAgentEvent enum, broadcast channel+ SessionId correlation, typed protocol
BuilderAgentRuntime::new()AgentRuntimeBuilder fluent API
ErrorsBasic AgentErrorLayered strategy (fatal / conversation / degraded / silent)