Skip to main content

AnalogAI Foundation - A foundation framework for AI agents

Project description

AnalogAI Foundation

A comprehensive Python package for building AI agent systems with advanced capabilities including emotional intelligence, inference mechanisms, and multi-database support.

Installation

Install the package in editable mode:

pip install -e .

Install with development dependencies:

pip install -e ".[dev]"

Project Structure

Foundation/
├── src/
│   ├── common/         # Shared utilities and design patterns
│   ├── core/           # Core domain entities and services
│   ├── infrastructure/ # Infrastructure implementations
│   └── libs/           # Library modules (auth, metrics, etc.)
├── pyproject.toml       # Unified package configuration
├── setup.py             # Setup helper
├── MANIFEST.in          # Package manifest
└── README.md

Modules

Common (src/common/)

  • Design Patterns: Chain of responsibility, singleton, state machine
  • Logging: Application logging utilities
  • Utils: Dictionary utilities and helpers

Core (src/core/)

  • Entities: Domain entities (Agent, Belief, Conversation, etc.)
  • Services: Business logic services
  • Repositories: Data access interfaces
  • Enums: Domain enumerations
  • Mappings: Emotion and activation mappings

Infrastructure (src/infrastructure/core/)

  • Repositories: Concrete repository implementations
    • In-memory storage
    • MongoDB storage
    • Neo4j graph database
  • Storage Adapters: Vector store and query storage adapters
    • FAISS
    • Pinecone
    • In-memory implementations
  • Gateways: Database gateways

Libs (src/libs/)

  • Authentication: JWT and authentication services
  • Authorization: Authorization services
  • Metrics: Metrics recording and reporting
  • Dev Tools: Development utilities

Requirements

  • Python >= 3.12
  • See pyproject.toml for complete dependency list

Development

Running Tests

The project uses Python's built-in unittest framework:

python -m unittest discover -s src -p "test_*.py"

Code Quality

Format code with black:

black src/

Lint with ruff:

ruff check src/

Type check with mypy:

mypy src/

Coverage

Run coverage report:

coverage run -m unittest discover -s src -p "test_*.py"
coverage report
coverage html

License

MIT

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

analogai_foundation-0.1.248.tar.gz (148.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

analogai_foundation-0.1.248-py3-none-any.whl (300.9 kB view details)

Uploaded Python 3

File details

Details for the file analogai_foundation-0.1.248.tar.gz.

File metadata

  • Download URL: analogai_foundation-0.1.248.tar.gz
  • Upload date:
  • Size: 148.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.2.1 CPython/3.12.10 Windows/11

File hashes

Hashes for analogai_foundation-0.1.248.tar.gz
Algorithm Hash digest
SHA256 c77dd116e5e4063b975a3e02ddae51732ca1feb1da0c716f1ad7896b10c2f019
MD5 f8cb4c34f7524133004dcb0a33743538
BLAKE2b-256 ac9f22c28c5560a45987c64c207af74b69732c63b919f68c58cc32fc00edfe40

See more details on using hashes here.

File details

Details for the file analogai_foundation-0.1.248-py3-none-any.whl.

File metadata

File hashes

Hashes for analogai_foundation-0.1.248-py3-none-any.whl
Algorithm Hash digest
SHA256 41ae253d6250c4fbbfa72fe89e361d4b7c5c53ffbee0b4a2afa9a1f5b2950d14
MD5 8abb2582c47c4b60f19f529e9fc0ee47
BLAKE2b-256 b757d4f6ceedc4c68931b1565da678452e119371d30dd71bf5b3aafe0b5e1f72

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page