Skip to main content

A cognitive architecture framework integrating LLMs, capabilities, and self-regulation.

Project description

Brainary + PoK

A brain-inspired computing architecture (Brainary) and a language for knowledge programming (PoK).

Workflow

┌───────────────────────────┐ │ Python Script │ │ (calls Brainary APIs) │ └─────────────┬─────────────┘ │ ▼ ┌───────────────────────────┐ │ Brainary VM │ │ accept_op(ActionOp) │ └─────────────┬─────────────┘ │ ▼ ┌───────────────────────────┐ │ Scheduler │ │ _estimate(op) │ │ ─ Determine relevant │ │ capabilities (CT, │ │ Planning, Reasoning, │ │ Evaluation, etc.) │ │ ─ Select strategies via │ │ Knowledge + Experience │ └─────────────┬─────────────┘ │ ▼ ┌───────────────────────────┐ │ Apply Critical Thinking│ │ (pre-analysis / BVCA) │ └─────────────┬─────────────┘ │ ▼ ┌───────────────────────────┐ │ ActionOp.render │ │ - instruction │ │ - contexts │ │ - pre-analysis │ │ - applied strategies │ │ - arguments │ └─────────────┬─────────────┘ │ ▼ ┌───────────────────────────┐ │ Problem Solving Module │ │ (LLM execution) │ │ → produces result │ └─────────────┬─────────────┘ │ ▼ ┌───────────────────────────┐ │ Monitor │ │ estimate_reward(op) │ │ capability-aware scoring │ └─────────────┬─────────────┘ │ Reward ≥ Expected? ┌─────────────┐ │ Yes │ ▼ │ ┌─────────────┐ │ │ Record │ │ │ execution │ │ │ & strategies│ │ └─────────────┘ │ │ ┌─────────────┴─────────────┐ │ No (reward < expected) │ ▼ │ ┌───────────────────────────┐ │ │ Scheduler Replanning │◄─────┘ │ - Feedback incorporated │ │ - Re-select strategies │ │ using Knowledge + LLM │ └─────────────┬─────────────┘ │ ▼ ┌─────────────────────┐ │ Loop to Execution │ └─────────────────────┘

Planning

brainary/capabilities/planning/ ├── planning_base.py # Base Planning class │ ├── # --- Cognitive / Human-like --- ├── hierarchical_planning.py # Break down goals into subgoals (generalized HTN-style) ├── forward_planning.py # Start from initial state, simulate toward goal ├── backward_planning.py # Start from goal, work backwards to requirements ├── contingency_planning.py # Plan for “what if” scenarios under uncertainty ├── opportunistic_planning.py # Adjust plan when new opportunities arise ├── adaptive_planning.py # Revise plan dynamically from feedback │ ├── # --- Algorithmic / Formal AI --- ├── htn_planning.py # Hierarchical Task Networks (formalized decomposition) ├── means_end_planning.py # Resolve gaps between current and goal states ├── critical_path_planning.py # Optimize for dependencies & time constraints ├── mcts_planning.py # Monte Carlo Tree Search, explore via simulation ├── default_planning.py # Fallback strategy

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

brainary-0.0.1.tar.gz (58.1 kB view details)

Uploaded Source

Built Distribution

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

brainary-0.0.1-py3-none-any.whl (83.6 kB view details)

Uploaded Python 3

File details

Details for the file brainary-0.0.1.tar.gz.

File metadata

  • Download URL: brainary-0.0.1.tar.gz
  • Upload date:
  • Size: 58.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.10.18

File hashes

Hashes for brainary-0.0.1.tar.gz
Algorithm Hash digest
SHA256 d041c2263ec2d2c112f5f28ed6c14aa0abebad61d8809ca23feef8a19e7341c2
MD5 1baa6503398b0b1d616645d5025d7117
BLAKE2b-256 b57aa8be9f8e5add7d053c06368c362d5263f4725dc191f4d8c68e15dcaae3e0

See more details on using hashes here.

File details

Details for the file brainary-0.0.1-py3-none-any.whl.

File metadata

  • Download URL: brainary-0.0.1-py3-none-any.whl
  • Upload date:
  • Size: 83.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.10.18

File hashes

Hashes for brainary-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 c72ffff7171903422209300ff470fe9168b66260a35fcf1d2c08dff2d57b13d9
MD5 40ff08ebb6c1e46872e77ed176598e29
BLAKE2b-256 8ab806f5deece78a0ae9e2a3cc805ca30b2c45b3c1e120c7d9e79266f3c4c4d3

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