The Code Reference covers Cogtrix's public Python API — the surface you import when embedding the agent into your own program, building a custom tool, or extending the memory backend.
Imports resolve as cogtrix_core.<module>.*. Releases up to
and including 0.5.1 used a bare src.<module>.* namespace,
which polluted the global import space; 0.5.2 renamed the package. If you
are upgrading from 0.5.1 or earlier, rewrite your imports accordingly.
- agent/ Agent core
Entry point, tool registry, and safety enforcement layer.
- memory/ Memory
Hybrid memory subsystem — rolling summary, semantic recall, and three working modes.
- tools/ Tools API
Building and registering Cogtrix tools from Python.
- orchestration/ Orchestration
LangGraph runner, session lifecycle, and run-configuration plumbing.
- schemas/ API schemas
Pydantic models that define the Cogtrix REST and WebSocket contract.