🤖 CogniCoreAI
A modular Python framework for building, testing, and deploying robust conversational AI agents.
CogniCoreAI is a modern Python framework designed to streamline the development of sophisticated conversational AI agents. It provides the essential building blocks for creating agents with persistent memory, swappable LLM backends, and powerful tool-use capabilities.
What makes CogniCoreAI unique is its built-in behavioral simulation framework, which allows you to rigorously test your agent's reasoning and decision-making processes, ensuring they are reliable and perform as expected.
Key Features
- 🤖 Modular & Extensible: Swap out components like LLMs, memory, and tools with ease thanks to a clean, abstraction-based design.
- 🛠️ Powerful Tool Integration: Equip your agents with tools to interact with APIs, databases, or any other external service. The agent's LLM can reason about when and how to use them.
- 🧪 Built-in Simulation Framework: Go beyond unit tests. Write behavioral scenarios to validate your agent's complex conversational logic and tool-use chains.
- 🧠 LLM Agnostic: Ships with an
OpenAI_LLMclient but is designed to work with any Large Language Model through itsBaseLLMabstraction. - 💾 Flexible Memory: Includes a simple
VolatileMemoryfor quick starts, with a clear interface for adding persistent memory backends (e.g., file or database storage). - ✨ Modern & Tested: Built with modern Python practices (like
uvandpyproject.toml), fully type-hinted, and has a comprehensive test suite.
Installation
CogniCoreAI is available on PyPI and can be installed with your favorite package manager.
# Using uv (recommended)
uv pip install cognicoreai
# Or using standard pip
pip install cognicoreai
Quick Start
Get your first agent running in just a few lines of code. Make sure your OPENAI_API_KEY environment variable is set.
from cognicoreai import Agent, OpenAI_LLM, VolatileMemory, CalculatorTool
# 1. Assemble the agent's components
llm = OpenAI_LLM()
memory = VolatileMemory()
tools = [CalculatorTool()]
# 2. Create the agent with a system prompt
agent = Agent(
llm=llm,
memory=memory,
tools=tools,
system_prompt="You are Cogni, a helpful assistant with a calculator."
)
# 3. Start a conversation!
response = agent.chat("Hi there! What is 125 divided by 5?")
print(response)
# Expected output: "125 divided by 5 is 25.0."
Documentation
For full details on all modules, how-to guides, and advanced usage, please see the Official Documentation.
The documentation covers:
- Creating custom tools.
- Writing and running behavioral simulations.
- Adding new LLM backends.
- Implementing persistent memory.
- The complete API Reference.
Contributing
Contributions are welcome! Whether it's reporting a bug, submitting a feature request, or writing code, we appreciate your help. Please see our contributing guidelines (you will need to create a CONTRIBUTING.md file for this) before getting started.
- Fork the repository.
- Create a new virtual environment and install the development dependencies:
uv pip install -e ".[dev]"
- Set up the pre-commit hooks:
pre-commit install - Make your changes and ensure the tests pass:
pytest
- Submit a pull request!
License
This project is licensed under the MIT License - see the LICENSE file for details.
Metadata
Release files for cognicoreai 1.0.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| cognicoreai-1.0.1.tar.gz | 18.6 kB | Without provenance | Details for cognicoreai-1.0.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| cognicoreai-1.0.1-py3-none-any.whl | Python 3 | none | any | Details for cognicoreai-1.0.1-py3-none-any.whl |
Total release size: 34.4 kB
Release files / cognicoreai-1.0.1.tar.gz
| Download URL | cognicoreai-1.0.1.tar.gz |
|---|---|
| Size | 18.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
7f3dc5bf27b06bfed9777fcbbcfe9c9a741e42de372b45061f2bf9e63dc90c78
|
|
BLAKE2b-256 checksum How to use checksums |
66c9e97485f86f23824efef40e2071aea96ed535f46a9c5138efbef730df74b5
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.13.5
|
Release files / cognicoreai-1.0.1-py3-none-any.whl
| Download URL | cognicoreai-1.0.1-py3-none-any.whl |
|---|---|
| Size | 15.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
8286541c5a035c79769adc5861b1e135b88ca72f58c29ced1f394149ed67c097
|
|
BLAKE2b-256 checksum How to use checksums |
8f11d5c692b783695118e14430c0bc313f33dc58771d4d7df7b391da6025c0e3
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.13.5
|
Security for cognicoreai 1.0.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.