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.tomlfor 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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file analogai_foundation-0.1.255.tar.gz.
File metadata
- Download URL: analogai_foundation-0.1.255.tar.gz
- Upload date:
- Size: 145.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/2.2.1 CPython/3.12.10 Windows/11
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
026e6d7757f24901c28e4c40bc8195af7d2a344cdfd1b321b1ff6bcefea9fde6
|
|
| MD5 |
8c613af1ce92d0ff07050a03776feaa5
|
|
| BLAKE2b-256 |
46c89dcd8de153d9d13fa2d694cd9e07cebbe8058d794823819b8e50c742f1df
|
File details
Details for the file analogai_foundation-0.1.255-py3-none-any.whl.
File metadata
- Download URL: analogai_foundation-0.1.255-py3-none-any.whl
- Upload date:
- Size: 297.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/2.2.1 CPython/3.12.10 Windows/11
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
aca6866a359e2053cf1039682215238f6a4316585c8ab19992ac6be330a4edf4
|
|
| MD5 |
6abcf331c53021292b53c67fb973dd27
|
|
| BLAKE2b-256 |
529d0a80c711606501f67b5956ccc240725fe9b17f4c39c5827decf438cd4b5c
|