Skip to main content

An agent framework using LLMs

Project description

Mindroot

PyPI

Note: some of the following is a work in progress and not yet functional. A few of them aren't really started.

Mindroot is a powerful plugin-based Python framework for creating, deploying, and sharing AI agents and related models. It offers a flexible architecture with indices and a public registry (coming soon) for easily sharing and finding plugins, agents, personas, services, knowledgebases, and apps.

Installation

You can install Mindroot using pip:

(You probably want to create a virtual environment first: python -m venv venv and source venv/bin/activate)

pip install mindroot

For development, you can install the package in editable mode:

git clone https://github.com/mindroot/mindroot.git
cd mindroot
pip install -e .

Starting the Server

Go to the directory with the virtual environment and run:

mindroot

or if you want to start the server on a different port:

mindroot -p 8001

Note that you will always need to start from that working directory if you want your settings to be preserved.

Installing Plugins

Most of the commands are in plugins that you have to install. Go to the /admin page and find the Plugins section Click on the 'default' Index It should show a list of Plugins I suggest installing all of them.

The first would be either Anthropic (recommended) or OpenAI

Important: You will need either ANTHROPIC_API_KEY or OPENAI_API_KEY set in your environment variables.

To install a plugin just click the Install button and wait 10-20 seconds and you will see a confirmation pop up.

Important: You will need to restart the server to see the changes.

For now I recommend not using the Server control section on the Admin page but rather just hit Control-C in the terminal and then run mindroot again.

Adding Commands to Agents

Go to Admin -> Agents Select an agent from the drop down, such as Assistant

There are toggle switches for all of the commands. I recommend avoiding the 'replace_' commands in files for now because they are not reliable.

Key Features:

  • Public registry for sharing and finding plugins, agents, personas, models, and knowledgebases
  • Extensible plugin architecture for adding services, commands, and building arbitrary web apps
  • Customizable AI agents with persona definitions
  • Intelligent service management based on agent requirements
  • Flexible service providers for various AI capabilities
  • Plugins can add/use hooks and pipelines such as for modifying prompts, running startup commands, or anything you want
  • Easily customizable UI built on Jinja2 and Lit Web Components
  • Support for both local and remote AI services
  • RAG: easily share, find and use pre-generated embeddings and documents for topic knowledgebases

Core Concepts Overview

mindroot revolves around several key concepts:

  1. Open Public Registry: A flexible system for indexing and sharing plugins, agents, personas, and potentially models. It can be customized or replaced with user-specific registries.

  2. Plugins: Extend the functionality of mindroot, providing new features, services, or integrations.

  3. Agents and Personas: AI agents with defined capabilities and customizable personalities.

  4. Services and Providers: Backend services that power agent capabilities, with support for swapping between local and remote implementations.

  5. Intelligent Service Management: The system automatically determines and installs required services based on agent definitions.

  6. UI Customization: Easily modifiable user interface through theme overrides and injections.

  7. RAG and Knowledgebases: The community can easily share and search for topic embeddings and document sets rather than everyone rebuilding them per topic.

Project details


Release history Release notifications | RSS feed

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

mindroot-0.1.6.tar.gz (8.4 MB view details)

Uploaded Source

Built Distribution

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

mindroot-0.1.6-py3-none-any.whl (9.5 MB view details)

Uploaded Python 3

File details

Details for the file mindroot-0.1.6.tar.gz.

File metadata

  • Download URL: mindroot-0.1.6.tar.gz
  • Upload date:
  • Size: 8.4 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.10.12

File hashes

Hashes for mindroot-0.1.6.tar.gz
Algorithm Hash digest
SHA256 996fb2fbde1910e21e46862b722e4a5b5778c1fa4d26d02eac88949054465a87
MD5 9af6b3f11763aecd4714b6369b819112
BLAKE2b-256 cd5829a63952c51d961489aa2e26f54ce64add92dcaa560a9c88a137e5175218

See more details on using hashes here.

File details

Details for the file mindroot-0.1.6-py3-none-any.whl.

File metadata

  • Download URL: mindroot-0.1.6-py3-none-any.whl
  • Upload date:
  • Size: 9.5 MB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.10.12

File hashes

Hashes for mindroot-0.1.6-py3-none-any.whl
Algorithm Hash digest
SHA256 cdbdfdc495304bbcbe4f23c69655b2afef2e253e45c4981c9e2878824ed2f09b
MD5 7183759d048c880da53dff2ae6c850b5
BLAKE2b-256 a69b40c66aa6344620104f9eb5a9fc83a74cc82b2efd8e8007282acad1f69a3a

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