Files
EzVibe/agent/__init__.py
e2hang 2a844e83a8 Initial commit: EzVibe AI 桌宠系统
- EmotionEngine: 5状态马尔可夫情绪机 + 蒙特卡洛转移
- VectorMemory: TF-IDF向量记忆 + SQLite持久化 + RAG检索
- AgentBrain: Ollama/OpenAI/Dummy三后端LLM
- BehaviorScheduler: 优先级/冷却/活跃度调度
- FastAPI服务器 + WebSocket实时推送
- perception: 键鼠监控 + 屏幕截图
- ui/pet_window: PySide6桌宠窗口 + 像素动画
- assets/pet: 5情绪各2帧像素艺术资源
2026-05-01 23:26:43 +08:00

38 lines
929 B
Python

"""
EzVibe Agent 核心模块
======================
导出主要类,方便外部导入:
from agent import EmotionEngine
from agent import VectorMemory
from agent import AgentBrain
from agent import BehaviorScheduler
"""
from agent.emotion import EmotionEngine, EmotionState, DEFAULT_TRANSITION_MATRIX
from agent.memory import VectorMemory, MemoryEntry, MemoryStore, VectorEngine
from agent.brain import AgentBrain, OllamaBackend, OpenAIBackend, DummyLLMBackend
from agent.scheduler import BehaviorScheduler, ActivityDetector, Behavior
__all__ = [
# emotion
"EmotionEngine",
"EmotionState",
"DEFAULT_TRANSITION_MATRIX",
# memory
"VectorMemory",
"MemoryEntry",
"MemoryStore",
"VectorEngine",
# brain
"AgentBrain",
"OllamaBackend",
"OpenAIBackend",
"DummyLLMBackend",
# scheduler
"BehaviorScheduler",
"ActivityDetector",
"Behavior",
]