Skip to content

Feed-dev/Wolfram_Alpha_CrewAi_custom_tool

Repository files navigation

Wolfram Alpha CrewAi custom tool

Description

This project provides a custom tool for CrewAi that allows agents to query the Wolfram Alpha API. It is designed to enable agents to fetch and analyze data from the Wolfram Alpha api. It includes an example of a basic Crew that includes a Researcher Agent and a Writer Agent. The Researcher Agent queries Wolfram Alpha for information and the Writer Agent generates a report based on the data.

Features

  • Query Wolfram Alpha for information.
  • Automated data analysis by a Researcher Agent. (example crew)
  • Report generation by a Writer Agent. (example crew)

Installation

To install the required dependencies, run:

pip install -r requirements.txt

Configuration

To configure the tool, you need to set the following environment variables:

OPENAI_API_KEY=your_openai_api_key
OPENAI_MODEL_NAME=your_openai_model_name
APP_ID=your_wolfram_alpha_app_id

Get a Wolfram Alpha App ID by signing up at https://developer.wolframalpha.com/access

Usage

To see the example, run:

python main_crew.py

Or do a quick tool test:

python quick_tool_test.py

To use the tool in your own project, you can import the WolframAlphaTool class:

from wolfram_alpha_CrewAi_tool import WolframAlphaTool

# Initialize the tool
wolfram_tool = WolframAlphaTool()

About

A custom tool for CrewAi using the wolfram alpha api.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages