Skip to main content

A symbolic reasoning toolkit for building logic-driven agents and AGI research.

Project description

Cognita 🧠

Cognita is a lightweight symbolic reasoning toolkit for building logic-based intelligent agents.

🛠️ Built by Aditya Kharat

🔍 What It Does

  • Store facts
  • Define IF–THEN logic rules
  • Solve logical goals using reasoning

🚀 Example Use

from cognita.factbase import FactBase
from cognita.rule_engine import RuleEngine
from cognita.goal_solver import GoalSolver

facts = FactBase()
rules = RuleEngine()

facts.add_fact("user(frustrated)")
facts.add_fact("issue(open)")

rules.add_rule(["user(frustrated)", "issue(open)"], "should(escalate)")

goal = "should(escalate)"
solver = GoalSolver(facts, rules)

if solver.solve(goal):
    print("🚨 Escalate!")
else:
    print("😌 No escalation needed.")

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

cognita_toolkit-0.2.0.tar.gz (2.2 kB view details)

Uploaded Source

Built Distribution

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

cognita_toolkit-0.2.0-py3-none-any.whl (2.9 kB view details)

Uploaded Python 3

File details

Details for the file cognita_toolkit-0.2.0.tar.gz.

File metadata

  • Download URL: cognita_toolkit-0.2.0.tar.gz
  • Upload date:
  • Size: 2.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.5

File hashes

Hashes for cognita_toolkit-0.2.0.tar.gz
Algorithm Hash digest
SHA256 83b1929964adfdb55d13a530584cba4083110892c7e16e7fdcb5e49126768bc0
MD5 00cd24189e8051cce184fe3cfe1bf674
BLAKE2b-256 e9bd055d1fd504987098a8f49730d26da62a1db64eb521845c8c848ce00dd955

See more details on using hashes here.

File details

Details for the file cognita_toolkit-0.2.0-py3-none-any.whl.

File metadata

File hashes

Hashes for cognita_toolkit-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 9715b0f5749a44e0be56fefa55fc659ce4d7f7f92312935c63f0c3001b67b8d8
MD5 a93117b7cd99c2ceeb113280aa2869f1
BLAKE2b-256 4fa4e4d9ba70f174b533d86edbad4c5848ffd5b46ad071e1580982ef08ee1a52

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