Skip to main content

Package for creating AI Agents using llms

Project description

Cognitrix

Cognitrix is an open-source autonomous AI agents orchestrator built in Python. It allows you to create and manage AI agents with ease and integrates seamlessly with large language models (LLMs) from various providers.

Features

  • Agent Creation and Management: Create, list, and load AI agents with customizable names, tasks, and configurations.
  • LLM Integration: Integrates with multiple LLM providers, including Anthropic (Claude), Cohere, Groq, Google, OpenAI, and Together.
  • Modular Architecture: Easily extensible, allowing the addition of new tools, agents, and LLM integrations.
  • Conversational Interface: Interact with AI agents through a command-line interface, providing queries and receiving responses.
  • Tool Integration: Agents can utilize a variety of tools, including calculators, web searches, file system browsers, and more.
  • Autonomous Agent Mode: Agents can operate autonomously, visually perceiving the screen, interacting with UI elements, and performing tasks.
  • Multimodal Support: Handles both text and image inputs/outputs, enabling multimodal interactions.

Architecture

Cognitrix's architecture is designed to be highly modular and extensible:

  • Agents: The base Agent class and specialized classes like AIAssistant for creating and managing AI agents.
  • LLMs: A collection of classes for integrating with various LLM providers (Cohere, OpenAI, Claude, etc.).
  • Tools: A set of tools that agents can utilize. Each tool has a category attribute for grouping and management.
  • Templates: Customizable prompt templates guide the behavior and output formats of LLMs.

More tools can be added by creating new classes that inherit from the Tool base class and specifying a unique category.

Installation

pip install cognitrix

Alternatively, you can install directly from GitHub:

pip install https://github.com/theonlyamos/cognitrix/archive/main.zip

Usage

To run Cognitrix with default settings:

cognitrix

To list supported LLM providers:

cognitrix --providers

To list created agents:

cognitrix agents

To list available tools:

cognitrix --tools

To run Cognitrix with a specific provider:

cognitrix --provider <provider_name>

To run Cognitrix with a specific agent:

cognitrix --agent <agent_name>

To run Cognitrix with a category of tools:

cognitrix --load-tools "web"

To run Cognitrix with categories of tools:

cognitrix --load-tools "web,general"

To create a new agent:

cognitrix agents --new

For more options and usage details, use the help command:

cognitrix --help

Contributing

Cognitrix is open source and contributions are welcome! Please refer to CONTRIBUTING.md for guidelines on how to contribute.

License

This project is licensed under the MIT license. See LICENSE.md for more information.

Acknowledgments

Cognitrix was created by Amos Amissah and is inspired by projects like AutoGPT and GPT Engineer. Special thanks to the open-source community and AI companies providing LLM APIs.

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

cognitrix-0.2.4.tar.gz (38.0 kB view details)

Uploaded Source

Built Distribution

cognitrix-0.2.4-py3-none-any.whl (52.3 kB view details)

Uploaded Python 3

File details

Details for the file cognitrix-0.2.4.tar.gz.

File metadata

  • Download URL: cognitrix-0.2.4.tar.gz
  • Upload date:
  • Size: 38.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.0 CPython/3.9.19

File hashes

Hashes for cognitrix-0.2.4.tar.gz
Algorithm Hash digest
SHA256 c6ee6be3e868b1925468e9aa49c883511de9927a95ed000001e3bbde667ddf08
MD5 9a175c4274e032292923b2545136debe
BLAKE2b-256 b6bc2a31cd5a12686f3d2c06e8c7cb9aa0c2d834c1d63c0a2478f3b8ee84b5b1

See more details on using hashes here.

File details

Details for the file cognitrix-0.2.4-py3-none-any.whl.

File metadata

  • Download URL: cognitrix-0.2.4-py3-none-any.whl
  • Upload date:
  • Size: 52.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.0 CPython/3.9.19

File hashes

Hashes for cognitrix-0.2.4-py3-none-any.whl
Algorithm Hash digest
SHA256 7207e4fef1d5228573292f6d2cac078890c70bd54486c2ba14e13c9648006ac8
MD5 e8074e67d61a7bca77f6e31574b0fbdd
BLAKE2b-256 cc49ab5fe13cf23d55197ceff7ce75cdddf61f736295de20cfaf93a5922cc05d

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page