Items completed: 1. Merged PR #2 (starlette/httpx deps) 2. Fixed async race condition in multimodal_ui.py 3. Wired TTSAdapter (ElevenLabs, Azure) in API routes 4. Moved super_big_brain.py from core/ to reasoning/ (backward compat shim) 5. Added API authentication middleware (Bearer token via FUSIONAGI_API_KEY) 6. Added async adapter interface (acomplete/acomplete_structured) 7. Migrated FastAPI on_event to lifespan (fixes 20 deprecation warnings) 8. Liquid Neural Networks (continuous-time adaptive weights) 9. Quantum-AI Hybrid compute backend (simulator + optimization) 10. Embodied Intelligence / Robotics bridge (actuator + sensor protocols) 11. Consciousness Engineering (formal self-model with introspection) 12. ASI Scoring Rubric (C/A/L/N/R self-assessment harness) 13. GPU integration tests for TensorFlow backend 14. Multi-stage production Dockerfile 15. Gitea CI/CD pipeline (lint, test matrix, Docker build) 16. API rate limiting middleware (per-IP sliding window) 17. OpenAPI docs cleanup (auth + rate limiting descriptions) 18. Benchmarking suite (decomposition, multi-path, recomposition, e2e) 19. Plugin system (head registry for custom heads) 427 tests passing, 0 ruff errors, 0 mypy errors. Co-Authored-By: Nakamoto, S <defi@defi-oracle.io>
64 lines
1.9 KiB
Python
64 lines
1.9 KiB
Python
"""Smoke test: README and public API imports work as documented."""
|
|
|
|
|
|
|
|
def test_readme_core_imports() -> None:
|
|
"""README: from fusionagi import Orchestrator, EventBus, StateManager, FusionAGILoop."""
|
|
from fusionagi import (
|
|
AgentMessageEnvelope,
|
|
AutoRecommender,
|
|
AutoTrainer,
|
|
EventBus,
|
|
FusionAGILoop,
|
|
Orchestrator,
|
|
SelfCorrectionLoop,
|
|
StateManager,
|
|
Task,
|
|
)
|
|
assert Orchestrator is not None
|
|
assert EventBus is not None
|
|
assert StateManager is not None
|
|
assert FusionAGILoop is not None
|
|
assert Task is not None
|
|
assert AgentMessageEnvelope is not None
|
|
assert SelfCorrectionLoop is not None
|
|
assert AutoRecommender is not None
|
|
assert AutoTrainer is not None
|
|
|
|
|
|
def test_readme_version() -> None:
|
|
"""README: package has __version__."""
|
|
import fusionagi
|
|
assert hasattr(fusionagi, "__version__")
|
|
assert isinstance(fusionagi.__version__, str)
|
|
assert len(fusionagi.__version__) >= 5 # e.g. "0.1.0"
|
|
|
|
|
|
def test_readme_interfaces_imports() -> None:
|
|
"""README: from fusionagi.interfaces import AdminControlPanel, MultiModalUI, etc."""
|
|
from fusionagi.interfaces import (
|
|
AdminControlPanel,
|
|
ConversationManager,
|
|
MultiModalUI,
|
|
VoiceInterface,
|
|
VoiceLibrary,
|
|
)
|
|
assert AdminControlPanel is not None
|
|
assert MultiModalUI is not None
|
|
assert VoiceInterface is not None
|
|
assert VoiceLibrary is not None
|
|
assert ConversationManager is not None
|
|
|
|
|
|
def test_readme_agents_imports() -> None:
|
|
"""README: from fusionagi.agents import PlannerAgent, CriticAgent."""
|
|
from fusionagi.agents import CriticAgent, PlannerAgent
|
|
assert PlannerAgent is not None
|
|
assert CriticAgent is not None
|
|
|
|
|
|
def test_readme_memory_imports() -> None:
|
|
"""README: from fusionagi.memory import ReflectiveMemory."""
|
|
from fusionagi.memory import ReflectiveMemory
|
|
assert ReflectiveMemory is not None
|