GOOGLE_API_KEY=os.environ.get("GOOGLE_API_KEY")
llm = LLM(
model="gemini/gemini-1.5-flash",
api_key=GOOGLE_API_KEY
)
csv_search_tool = CSVSearchTool(
file_path='IPL_Schedule.xlsx',
name="CSVSearchTool",
description="CSV Search tool",
config=dict(
llm=dict(
provider="google",
config=dict(
model="gemini/gemini-1.5-flash"
),
),
embedder=dict(
provider="google",
config=dict(
model="gemini/gemini-1.5-flash",
task_type="retrival_document",
),
),
)
)
Complete error:
Value error, Invalid tool type: <class ‘tuple’>. Tool must be an instance of BaseTool or an object with ‘name’, ‘func’, and ‘description’ attributes. [type=value_error, input_value=CSVSearchTool(name='CSVSe… ‘retrival_document’}}}), input_type=CSVSearchTool]