Skip to main content

Logo of Maxwell, a brain with

Maxwell Tools

This document provides a comprehensive guide for setting up sophisticated tools for Maxwell agents, facilitating the creation of bespoke tooling to empower your AI solutions.

In the realm of Maxwell agents, tools are pivotal for enhancing functionality. This guide outlines the steps to equip your agents with an arsenal of ready-to-use tools and the methodology to craft your own.

Homepage | Documentation | Chat with Docs | Examples | Discord

Table of contents

Creating Your Tools

Tools are always expect to return strings, as they are meant to be used by the agents to generate responses.

There are three ways to create tools for Maxwell agents:

Subclassing BaseTool

from maxwell_tools import BaseTool

class MyCustomTool(BaseTool):
    name: str = "Name of my tool"
    description: str = "Clear description for what this tool is useful for, you agent will need this information to use it."

    def _run(self, argument: str) -> str:
        # Implementation goes here
        pass

Define a new class inheriting from BaseTool, specifying name, description, and the _run method for operational logic.

Utilizing the tool Decorator

For a simpler approach, create a Tool object directly with the required attributes and a functional logic.

from maxwell_tools import tool
@tool("Name of my tool")
def my_tool(question: str) -> str:
    """Clear description for what this tool is useful for, you agent will need this information to use it."""
    # Function logic here

The tool decorator simplifies the process, transforming functions into tools with minimal overhead.

Contribution Guidelines

We eagerly welcome contributions to enrich this toolset. To contribute:

  1. Fork the Repository: Begin with forking the repository to your GitHub account.
  2. Feature Branch: Create a new branch in your fork for the feature or improvement.
  3. Implement Your Feature: Add your contribution to the new branch.
  4. Pull Request: Submit a pull request from your feature branch to the main repository.

Your contributions are greatly appreciated and will help enhance this project.

Development Setup

Installing Dependencies:

poetry install

Activating Virtual Environment:

poetry shell

Setting Up Pre-commit Hooks:

pre-commit install

Running Tests:

poetry run pytest

Static Type Checking:

poetry run pyright

Packaging:

poetry build

Local Installation:

pip install dist/*.tar.gz

Thank you for your interest in enhancing the capabilities of AI agents through advanced tooling. Your contributions make a significant impact.

Metadata

Release files for maxwell-tools 0.6.9

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for maxwell-tools 0.6.9
File Size Uploaded
maxwell_tools-0.6.9.tar.gz 42.7 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for maxwell-tools 0.6.9
File Interpreter ABI Platform
maxwell_tools-0.6.9-py3-none-any.whl Python 3 none any Details

Total release size: 128.1 kB

Release files / maxwell_tools-0.6.9.tar.gz

Download URL maxwell_tools-0.6.9.tar.gz
Size 42.7 kB
Tags Source
SHA-256 checksum
How to use checksums
e1f3b25b2413c4d8b8aebc47c26e6a018fed9c0e8a4732b0e1193a13442c0abc
BLAKE2b-256 checksum
How to use checksums
0d39bd3160ffae5f9ad6369324d65c917ce4e4e0161f00a041b02f057495c3b7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.8.3 CPython/3.12.4 Windows/11

Release files / maxwell_tools-0.6.9-py3-none-any.whl

Download URL maxwell_tools-0.6.9-py3-none-any.whl
Size 85.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
68e1f0615066d091e6bd047c374d67c41af4ee36b2ca6efbf89ed67d22388b13
BLAKE2b-256 checksum
How to use checksums
f428d8dbdc895822246ea53da4572dd5498184360cea746725ff0fd8d0a4b662
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.8.3 CPython/3.12.4 Windows/11

Release history Release notifications | RSS feed

This release

0.6.9 This release

2 release files

0.4.8

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page