from note_engine import note_engine import os from prompts import new_prompt, instruction_str, context import pandas as pd from dotenv import load_dotenv from llama_index.core.tools import QueryEngineTool, ToolMetadata from llama_index.experimental.query_engine import PandasQueryEngine from llama_index.core.agent import ReActAgent from llama_index.llms.openai import OpenAI
Traceback (most recent call last): File "/Users/patrickmoorhead/Code/AIagenttutorial/agent.py", line 34, in <module> result = agent.query(prompt) ^^^^^^^^^^^^^^^^^^^ File "/Users/patrickmoorhead/Code/AIagenttutorial/agent/lib/python3.12/site-packages/llama_index/core/instrumentation/dispatcher.py", line 230, in wrapper result = func(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^ File "/Users/patrickmoorhead/Code/AIagenttutorial/agent/lib/python3.12/site-packages/llama_index/core/base/base_query_engine.py", line 52, in query query_result = self._query(str_or_query_bundle) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
sorry for the late response, i figured it out, it has issues if it doesnt have any tool that it can use, "hi" = error, "find earthquakes using tool" = perfect, Thank you for your help