Research Assistant
This guide provides detailed steps to create a research assistant agent that leverages CrewAI, Composio, and ChatGPT to perform web searches and compile research reports. Ensure you have Python 3.8 or higher installed.
Research Assistant Agent GitHub Repository
Explore the complete source code for the Research Assistant Agent project. This repository contains all the necessary files and scripts to set up and run the Research Assistant system using CrewAI and Composio.
Run the `setup.sh` file
Fork and Clone this repository, Navigate to the Project Directory
cd python/examples/research_assistant
Make the setup.sh Script Executable (if necessary): On Linux or macOS, you might need to make the setup.sh script executable:
Importing required libraries
Now, import the necessary libraries in your Python script:
Initialise Language Model and Define tools
We’ll initialize our language model and set up the necessary tools for our agents. We will be using serpapi tool, So that our agent can execute actions using this tool.
Defining the Agent
Define the Researcher agent with the necessary parameters:
Defining the Task
Create and execute a task for the agent:
Putting It All Together
Below is the complete code snippet combining all the steps:
Was this page helpful?