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/
│   └── analogai/
│       └── foundation/
│           ├── common/         # Shared utilities, logging, DTOs, enums
│           ├── core/           # Core domain value objects and observables
│           ├── extensions/     # Auth, authorization, conversation, queries, etc.
│           ├── infrastructure/ # Repositories, storage adapters, services
│           ├── modules/        # Domain modules (beliefs, notions, inference)
│           ├── setup/          # Factories and wiring helpers
│           └── tests/          # Functional and unit tests
├── pyproject.toml       # Unified package configuration
├── setup.py             # Setup helper
├── MANIFEST.in          # Package manifest
└── README.md

Modules

Common (src/analogai/foundation/common/)

  • Design Patterns: Chain of responsibility, singleton, state machine
  • Logging: Application logging utilities
  • Utils: Serialization, modifiers, lemmatization helpers

Core (src/analogai/foundation/core/)

  • Value Objects: Time, relation, modifiers, attributes
  • Observables: Notion and statement observables

Extensions (src/analogai/foundation/extensions/)

  • Authentication / Authorization: Token & auth services
  • Conversation / Belief Query / Contradictions: Extension services and adapters

Infrastructure (src/analogai/foundation/infrastructure/)

  • Repositories: In-memory, MongoDB, Neo4j
  • Storage Adapters: Vector storage and query adapters
  • Gateways: Database gateways and services

Modules (src/analogai/foundation/modules/)

  • Belief / Notion / Agent / User: Domain services and entities
  • Inference: Categorical & conditional deduction, contradictions

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.261.tar.gz (173.2 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.261-py3-none-any.whl (347.2 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: analogai_foundation-0.1.261.tar.gz
  • Upload date:
  • Size: 173.2 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.261.tar.gz
Algorithm Hash digest
SHA256 cd72129e930ff77d20e71b64d705cc39908da0ae2f6355317fea73b44ccf1d44
MD5 21c4cd57da03acc325f77836cc2ce45d
BLAKE2b-256 dc55bfdf0a2c89858ac9aac477c91780dc7734c19f52cf9d0cf560b07d1f2c09

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for analogai_foundation-0.1.261-py3-none-any.whl
Algorithm Hash digest
SHA256 31c32b63f56e00ed0ac531d2a9601bc9b75e4ebf6fe5d0c33f11d6d0a7bc25e9
MD5 708314ce50bca91e29943d256c7c8a3a
BLAKE2b-256 0b51b64ae3c6b4f889b631e33fea46a7c3d0b2fba0f7f7ca4adc84007d1c5217

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