Skip to main content

Logo of cropioAI, two people rowing on a boat

cropioAI Tools

Welcome to cropioAI Tools! This repository provides a comprehensive guide for setting up sophisticated tools for cropioAI agents, empowering your AI solutions with bespoke tooling.

In the realm of CropioAI 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 | Discourse

Table of contents

Available Tools

cropioAI Tools provides a wide range of pre-built tools, including:

  • File operations (FileWriterTool, FileReadTool)
  • Web scraping (ScrapeWebsiteTool, SeleniumScrapingTool)
  • Database interactions (PGSearchTool, MySQLSearchTool)
  • API integrations (SerperApiTool, EXASearchTool)
  • AI-powered tools (DallETool, VisionTool)
  • And many more!

For a complete list and detailed documentation of each tool, please refer to the individual tool README files in the repository.

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 cropioAI agents:

Subclassing BaseTool

from cropioai.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 cropioai.tools import BaseTool
@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 welcome contributions! Here's how you can help:

  1. Fork the repository
  2. Create a feature branch (git checkout -b feature/AmazingFeature)
  3. Commit your changes (git commit -m 'Add some AmazingFeature')
  4. Push to the branch (git push origin feature/AmazingFeature)
  5. Open a Pull Request

Please ensure your code adheres to our coding standards and includes appropriate tests.

Development Setup

Installing Dependencies:

uv sync

Activating Virtual Environment:

uv venv
source .venv/bin/activate

Setting Up Pre-commit Hooks:

pre-commit install

Running Tests:

uv run pytest

Static Type Checking:

uv run pyright

Packaging:

uv 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.

Contact

For questions or support, please join our Discord community, Discourse or open an issue in this repository.

Metadata

Release files for cropioai-tools 0.0.16

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

Source distribution (sdist)

Source distribution for cropioai-tools 0.0.16
File Size Uploaded Provenance Actions
cropioai_tools-0.0.16.tar.gz 704.5 kB Without provenance Details for cropioai_tools-0.0.16.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for cropioai-tools 0.0.16
File Interpreter ABI Platform Actions
cropioai_tools-0.0.16-py3-none-any.whl Python 3 none any Details for cropioai_tools-0.0.16-py3-none-any.whl

Total release size: 1.2 MB

Release files / cropioai_tools-0.0.16.tar.gz

Download URL cropioai_tools-0.0.16.tar.gz
Size 704.5 kB
Tags Source
SHA-256 checksum
How to use checksums
509882bd6e76b6bfe625ea9eac67489baa640e375c3b7938493b3045347fc3ab
BLAKE2b-256 checksum
How to use checksums
4d052c207c6c5ae7e2eed5c86230edd4cace1862e744f9ca05d2a51e83b72492
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.1

Release files / cropioai_tools-0.0.16-py3-none-any.whl

Download URL cropioai_tools-0.0.16-py3-none-any.whl
Size 543.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
2cbba84b6f641cc5a0d6b19dfab24fd8fedc23d8238461bfa76a5ad05d373f72
BLAKE2b-256 checksum
How to use checksums
c357a01eaa8145918421f05a5aa1479898b6d00a8e72c74cd5afebbf161b410d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.1

Security for cropioai-tools 0.0.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

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