Skip to content

Core Concepts

This section explains how AmritaCore works under the hood — the components, their responsibilities, and how they fit together. It assumes you have finished the Tutorials.

Mental Model

┌─────────────────────────────────────────────────────────────┐
│  ChatObject — the unit of a dialogue (lifecycle manager)     │
│  ┌─────────────────────────────────────────────────────────┐ │
│  │  Workflow (AmritaSense instruction sequence)            │ │
│  │  LOAD_STATE → render → strategy loop → completion        │ │
│  │  ┌───────────────────────────────────────────────────┐  │ │
│  │  │  Strategy (step-driven ReAct by default)          │  │ │
│  │  │  decompose → Step loop → summarize                 │  │ │
│  │  └───────────────────────────────────────────────────┘  │ │
│  └─────────────────────────────────────────────────────────┘ │
│  SuspendObjectStream (bidirectional)  ·  Events (matchers)   │
└─────────────────────────────────────────────────────────────┘

Concepts

ConceptWhat it covers
ChatObjectThe lifecycle manager: workflow, DI contexts, stream
ConfigurationAmritaConfig, FunctionConfig, LLMConfig, presets
Event SystemPipeline events + the matcher hook system
Tool SystemTool registration, validation, execution
Agent StrategyStrategy pattern; the step-driven ReAct loop
Data ManagementMessages, DI contexts, backend + memory deep-dives

Where to Go Next

Apache 2.0 License