Skip to main content

MRtrix3 AI Agent

Project description

MRtrix3 Agent

Python 3.10+ PydanticAI License: MIT

📋 Prerequisites

  • Python 3.10 or higher
  • API keys for your Gemini (Google)
  • Currently only tested on Linux systems

🛠️ For Contributors/Developers

1. Clone the Repository

git clone https://github.com/yourusername/mrtrix3-agent.git
cd mrtrix3-agent

2. Set Up Virtual Environment

python -m venv .venv
source .venv/bin/activate

3. Install Dependencies

pip install -e . # For standard usage
# or
pip install -e ".[dev]" # If you want to run test scripts with pytest

4. Configure Environment Variables

'.env.example' contains configurable environment variables used in this project. The project was built with Supabase and Gemini. If wanting to replicate this project, a Supabase account is required and all the tools to populate your own database can be found in the src/knowledge_base folder. Great for anyone curious about how a knowledge base gets created, or for those trying to maybe create a "smarter" knowledge base for the AI agent!

5. Initialize Database (Optional to replicate project)

Populate the Supabase vector database with MRtrix3 documentation:

python knowledgeBase/populate_database.py

This will:

  • Clone MRtrix3 repository (sparse checkout)
  • Process documentation and source files
  • Generate embeddings and populate the database
  • Takes approximately 1-5 minutes

🎯 Usage

Basic Usage

Start the interactive CLI:

mrtrix3-agent

Or use the Python script directly:

python src/agent/cli.py

📊 Monitoring

The agent includes built-in monitoring:

  • Set environment variable 'COLLECT_LOGS=true'
  • Session logs in monitoring/logs/
  • Performance metrics in monitoring/metrics/
  • Error tracking with detailed stack traces

Logs within monitoring/logs/ get updated in real-time, good to look at if you are curious where the AI agent is searching for info to answer queries!

📄 License

This project is licensed under the MIT License - see the LICENSE file for details.

📬 Contact

You can reach me at rmoskwa@wisc.edu

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

mrtrix3_agent-1.0.2.tar.gz (57.5 kB view details)

Uploaded Source

Built Distribution

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

mrtrix3_agent-1.0.2-py3-none-any.whl (68.1 kB view details)

Uploaded Python 3

File details

Details for the file mrtrix3_agent-1.0.2.tar.gz.

File metadata

  • Download URL: mrtrix3_agent-1.0.2.tar.gz
  • Upload date:
  • Size: 57.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.10.12

File hashes

Hashes for mrtrix3_agent-1.0.2.tar.gz
Algorithm Hash digest
SHA256 e854cfa7ca72ac0859d338efcc55be1c9d48cdb8b66e71c7d151c7a18bac6fe0
MD5 b4a9d6fd4098f5cd5109b74aa6ab9ac9
BLAKE2b-256 fd824c976897a72ef87a540751fd09d7e226d6556d7efcb4c81783555ade3c5a

See more details on using hashes here.

File details

Details for the file mrtrix3_agent-1.0.2-py3-none-any.whl.

File metadata

  • Download URL: mrtrix3_agent-1.0.2-py3-none-any.whl
  • Upload date:
  • Size: 68.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.10.12

File hashes

Hashes for mrtrix3_agent-1.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 12aeb8c027d7ef8ea87a6fc858c5e7d7e24c40fbf7e6690342a2dc3484f28f05
MD5 1bab9f6719c97b2cfce72b3fadfcf9c4
BLAKE2b-256 433b47e34bf99d98ac393bdf0ebd1879c062a959f2a1b610a37ec90aa23a484b

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