Spaces:
Paused
Paused
Update agent_llamaindex.py
Browse files- agent_llamaindex.py +1 -4
agent_llamaindex.py
CHANGED
|
@@ -4,10 +4,7 @@ from datetime import date
|
|
| 4 |
from llama_index.agent.openai import OpenAIAgent
|
| 5 |
from llama_index.llms.openai import OpenAI
|
| 6 |
from llama_index.core.tools import FunctionTool
|
| 7 |
-
|
| 8 |
-
|
| 9 |
-
from llama_index.core.tools.tool_spec.base import BaseToolSpec
|
| 10 |
-
from llama_index.integrations.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.
|
|
|
|
| 4 |
from llama_index.agent.openai import OpenAIAgent
|
| 5 |
from llama_index.llms.openai import OpenAI
|
| 6 |
from llama_index.core.tools import FunctionTool
|
| 7 |
+
from llama_hub.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.
|