Skip to main content

A lightweight, reasoning-driven cognitive agent framework with planning, acting, reflection, and usage tracking.

Project description

🧠 Cognitive Agent

Cognitive Agent is a lightweight, model-agnostic framework for building intelligent, reasoning-driven agents.
It supports planning, acting, reflection, tool use, and supervised replanning — without requiring LangChain or any external orchestration library.

This package is designed for developers who want full control and transparency over the agent reasoning pipeline.


🚀 Features

  • Model-Agnostic Core – Works with any callable LLM (OpenAI, Gemini, Anthropic, Ollama, or your custom model).
  • 3-Tier Memory System
    • short_term – recent context
    • working – temporary per-run state
    • long_term – persistent summary storage
  • Supervisor Loop – Automatic replanning if confidence is low.
  • Tool Integration – Register and dynamically select from a set of external functions.
  • Knowledge Graph Extraction – Builds a simple knowledge graph from text.
  • Streaming Support – Stream model thinking and responses with callbacks.
  • Metrics & Token Accounting – Aggregates usage, time, and step statistics.
  • Plugin-Ready Hooks – Customizable planner and reflector logic.

🧩 Installation

pip install cognitive-agent

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

cognitive_agent-0.1.2.tar.gz (5.4 kB view details)

Uploaded Source

Built Distribution

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

cognitive_agent-0.1.2-py3-none-any.whl (5.8 kB view details)

Uploaded Python 3

File details

Details for the file cognitive_agent-0.1.2.tar.gz.

File metadata

  • Download URL: cognitive_agent-0.1.2.tar.gz
  • Upload date:
  • Size: 5.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.10

File hashes

Hashes for cognitive_agent-0.1.2.tar.gz
Algorithm Hash digest
SHA256 971e8b282f8a73534dd1384c68d999ca8108385b8acc3cde976b830c97e8004d
MD5 b4641e67a851baff5a2fc06acbb9af64
BLAKE2b-256 6fb54cf17ffa70589801adaaf5ee9be6f57c1e782b5fdcc60a4a89876e6639e6

See more details on using hashes here.

File details

Details for the file cognitive_agent-0.1.2-py3-none-any.whl.

File metadata

File hashes

Hashes for cognitive_agent-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 8b3e5b52ab4861483400ab25de1465a485a4c0946372a7409a8e65d73a10014b
MD5 b07a8ccd6f06e67254097448b04947b7
BLAKE2b-256 ec76f4fab7c48b674968f99ca49c41f910935032e4c593e17077fe68b2c4435e

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