Saptadip Sarkar
commited on
Commit
·
d7f3625
1
Parent(s):
51659ba
fix: tooling definition
Browse files- agent_course_tools.py +4 -2
agent_course_tools.py
CHANGED
@@ -5,10 +5,12 @@ from llama_index.core.tools.tool_spec.load_and_search import (
|
|
5 |
)
|
6 |
|
7 |
wiki_spec = WikipediaToolSpec()
|
8 |
-
wiki_tool = LoadAndSearchToolSpec.from_defaults(wiki_spec.to_tool_list()[1]).to_tool_list()
|
|
|
9 |
|
10 |
ddgo_spec = DuckDuckGoSearchToolSpec()
|
11 |
-
ddgo_tool = LoadAndSearchToolSpec.from_defaults(ddgo_spec.to_tool_list()[1]).to_tool_list()
|
|
|
12 |
|
13 |
# Create the Agent with load/search tools
|
14 |
#agent = OpenAIAgent.from_tools(
|
|
|
5 |
)
|
6 |
|
7 |
wiki_spec = WikipediaToolSpec()
|
8 |
+
#wiki_tool = LoadAndSearchToolSpec.from_defaults(wiki_spec.to_tool_list()[1]).to_tool_list()
|
9 |
+
wiki_tool = wiki_spec.to_tool_list()[1]
|
10 |
|
11 |
ddgo_spec = DuckDuckGoSearchToolSpec()
|
12 |
+
#ddgo_tool = LoadAndSearchToolSpec.from_defaults(ddgo_spec.to_tool_list()[1]).to_tool_list()
|
13 |
+
ddgo_tool = ddgo_spec.to_tool_list()[1]
|
14 |
|
15 |
# Create the Agent with load/search tools
|
16 |
#agent = OpenAIAgent.from_tools(
|