bstraehle commited on
Commit
5263e94
·
verified ·
1 Parent(s): 2f81151

Update agent_llamaindex.py

Browse files
Files changed (1) hide show
  1. agent_llamaindex.py +3 -0
agent_llamaindex.py CHANGED
@@ -6,6 +6,9 @@ from llama_index.llms.openai import OpenAI
6
  from llama_index.core.tools import FunctionTool
7
  from llama_index.tools.weather import OpenWeatherMapToolSpec
8
 
 
 
 
9
  def today_tool(text: str) -> str:
10
  """Returns today's date. Use this for any questions related to knowing today's date.
11
  The input should always be an empty string, and this function will always return today's date.
 
6
  from llama_index.core.tools import FunctionTool
7
  from llama_index.tools.weather import OpenWeatherMapToolSpec
8
 
9
+ from llama_index.core.tools.tool_spec.base import BaseToolSpec
10
+ from llama_index.tools.weather import OpenWeatherMapToolSpec
11
+
12
  def today_tool(text: str) -> str:
13
  """Returns today's date. Use this for any questions related to knowing today's date.
14
  The input should always be an empty string, and this function will always return today's date.