praisonai.knowledge, praisonai.memory, and praisonai.eval are compatibility import paths — they forward to praisonaiagents.* through alias_package shims, so older code and tutorials keep working with no change.
Quick Start
1
Old code keeps working
2
Prefer the canonical path for new code
3
Classes are the same object
Import Mapping
Plain
import praisonai does not load praisonai.knowledge, praisonai.memory, or praisonai.eval. The shim is installed only when you explicitly run from praisonai.X import ... (or import praisonai.X), which keeps cold start fast.Best Practices
Use praisonaiagents.* in new code
Use praisonaiagents.* in new code
It is the canonical path — the SDK reference and new tutorials use it.
Don't rewrite working praisonai.* imports
Don't rewrite working praisonai.* imports
They are a stable compatibility surface backed by
alias_package shims and will keep working, just like the praisonai.bots / praisonai.gateway / praisonai.daemon shims.Keep mock.patch targets consistent
Keep mock.patch targets consistent
Submodules are the same object under both paths, so patching a submodule attribute (e.g.
praisonai.memory.adapters.SqliteMemoryAdapter) applies everywhere. The top-level praisonai.memory package is a separate shim that forwards attribute reads, so patch top-level names on praisonaiagents.memory instead. See alias_package shim: lazy vs eager.Related
Wrapper Internals
Four-tier package model and alias_package shim details
praisonai-bot Migration
The equivalent compat page for bots, gateway, and daemon

