Correction Capture (Programmatic)
Record a human correction throughagent.memory.recordCorrection(). The correction is embedded into the vector store and retrieved on future relevant runs — the agent stops repeating the mistake.
Correction Capture (HTTP, from a review UI)
Every agent served viacreateAgentRouter() with corrections enabled exposes POST /agents/:name/corrections — wire your review UI’s “fix” button straight to it.
Trust Tiers & Grounded Extraction
Learnings carry a provenancesource. Context injection marks human-authored knowledge [verified] and AI-extracted knowledge [unverified], with a caveat telling the model not to assert unverified items as fact. Auto-extraction only saves learnings it can anchor to a verbatim quote.
Self-Corrective Memory
Recording a correction automatically invalidates unverified AI-extracted learnings that contradict it. Human-authored learnings are never auto-retired.Regression Evals from Corrections
Corrections recorded withoriginalInput become replayable test cases — run them in CI to prove previously-corrected mistakes no longer recur.
Reflection & Confidence-Gated Escalation
Withreflection.enabled, every run() gets an LLM-critic pass and bounded revision. The final critique lands on output.critique — use the score to route low-confidence outputs to human review.
Accuracy Metrics
Corrections and critique scores flow intoMetricsExporter automatically — correctionRate is the inverse of first-pass accuracy.
External Agents (Any Framework)
Serve a LangGraph graph — or any custom code — through Agentium’s runtime withdefineExternalAgent().
Ephemeral Agents (Names Are Labels)
Since v2.3.2, registry names are last-write-wins — creating the same-named agent repeatedly never throws. Per-request and in-loop agents just work.Memory Maintenance (Reconcile)
Vector-backed stores dual-write to KV + vector index. Runcurator.reconcile() on a schedule to repair drift after crashes.