Solobrad commited on
Commit
cb29ce4
·
verified ·
1 Parent(s): 1841644

Update agent.py

Browse files
Files changed (1) hide show
  1. agent.py +2 -1
agent.py CHANGED
@@ -5,6 +5,7 @@ from langchain_community.document_loaders import WikipediaLoader
5
  from llama_index.schema import Document
6
  from langchain_community.tools.tavily_search import TavilySearchResults
7
  from langchain_core.tools import tool
 
8
 
9
  llm = HuggingFaceInferenceAPI(model_name="Qwen/Qwen2.5-VL-32B-Instruct")
10
 
@@ -55,6 +56,6 @@ def wiki_search(query: str) -> list:
55
  return llama_docs
56
 
57
  agent = AgentWorkflow.from_tools_or_functions(
58
- [web_search],
59
  llm=llm
60
  )
 
5
  from llama_index.schema import Document
6
  from langchain_community.tools.tavily_search import TavilySearchResults
7
  from langchain_core.tools import tool
8
+ from llama_index.agents import AgentWorkflow
9
 
10
  llm = HuggingFaceInferenceAPI(model_name="Qwen/Qwen2.5-VL-32B-Instruct")
11
 
 
56
  return llama_docs
57
 
58
  agent = AgentWorkflow.from_tools_or_functions(
59
+ [web_search, wiki_search], # Add wiki_search here if needed
60
  llm=llm
61
  )