I tried creating a simple agent with a task to query a CSV file and I have provided it access to CSV RAG Search - crewAI tool. I am getting the attached error. Below is how I have implemented the tool:
from crewai_tools import CSVSearchTool
class CsvTool:
@tool("Searches into a CSV file")
def query_csv(self):
"""
This tool is used to perform a RAG (Retrieval-Augmented Generation) search within a CSV file's content
"""
query_tool = CSVSearchTool('data-agent.csv')
return query_tool