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.1.tar.gz (5.3 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.1-py3-none-any.whl (5.7 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: cognitive_agent-0.1.1.tar.gz
  • Upload date:
  • Size: 5.3 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.1.tar.gz
Algorithm Hash digest
SHA256 4bcfd85540e98f50e014e6907ca1cee7b58aa86761d49ed4ccc97710fe1813aa
MD5 d7b570e23f309a5d53e3037ef8b3a61a
BLAKE2b-256 855aa1c79e9c5bee25a07d5a1b9983a8a4ad871558e575345e2a0f03b279b098

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for cognitive_agent-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 da45051fafd5cc5f77fef541834416cfaa2676d5517655345f4ce622b36e9093
MD5 38c6557b73875d9cfa1ef97e63767861
BLAKE2b-256 c176b4d2bbca60a2ba0ca73ca33be64120af1dcfb692b6175e94a98483d8e575

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