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-1.0.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-1.0.0-py3-none-any.whl (2.9 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: cognita_toolkit-1.0.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-1.0.0.tar.gz
Algorithm Hash digest
SHA256 55639bccd9c8de7340a426d8f305680e5960cb03bc68b99b3a535c81e7d70eaa
MD5 dae2396a4cbb95943f944b0dabeeafe5
BLAKE2b-256 4c34c7ecdbfac2451b21d28b72408b58fb46e60100a579ff01be3288159a7a7c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for cognita_toolkit-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 2fbae0cc174d0276242ac23101b1dadb84e5a74b4abe6576d6d015af6e92937b
MD5 5720ffcae5ee410560cde65b5d53ff3d
BLAKE2b-256 3d1c977eb870ac4c679f782b087998137e28432453f3df37131cc9615ae0981e

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