Ghost Cognitive Engine
raw JSON → 1.0.1 verified Sat May 09 auth: no python
Ghost cognitive engine for building autonomous AI agents with memory, reasoning, and planning capabilities. Version 1.0.1, actively maintained. Released monthly.
pip install ghocentric-ghost-engine Common errors
error ModuleNotFoundError: No module named 'ghost_engine' ↓
cause Installed package name is 'ghocentric-ghost-engine', not 'ghost-engine'. Or import path is incorrect for version <1.0.0.
fix
Run 'pip install ghocentric-ghost-engine'. Then use 'from ghost_engine import GhostEngine'.
error ValueError: API key is required ↓
cause No API key provided. The engine requires it either via environment variable or constructor.
fix
Set the GHOST_API_KEY environment variable or pass api_key='your-api-key' to GhostEngine().
error AttributeError: 'GhostEngine' object has no attribute 'ask' ↓
cause Method renamed in v1.0.0. Old code uses '.ask()' but new method is '.think()'.
fix
Replace engine.ask(...) with engine.think(...).
Warnings
breaking In v1.0.0, the import path changed from 'ghocentric_ghost_engine' to 'ghost_engine'. Old imports will break. ↓
fix Use 'from ghost_engine import GhostEngine' instead of 'from ghocentric_ghost_engine import GhostEngine'.
deprecated The parameter 'model' in GhostEngine constructor is deprecated since v1.0.0. Use 'model_name' instead. ↓
fix Replace GhostEngine(model='...') with GhostEngine(model_name='...').
gotcha API key is required. If not provided, the engine will raise a ValueError at runtime, not at import. ↓
fix Set the GHOST_API_KEY environment variable or pass api_key='your-key'.
Imports
- GhostEngine
from ghost_engine import GhostEngine - CognitiveMemory
from ghost_engine.memory import CognitiveMemory
Quickstart
import os
from ghost_engine import GhostEngine
api_key = os.environ.get('GHOST_API_KEY', '')
engine = GhostEngine(api_key=api_key)
response = engine.think("What is AI?")
print(response)