Solobrad commited on
Commit
5ee9792
·
verified ·
1 Parent(s): b02e265

Update agent.py

Browse files
Files changed (1) hide show
  1. agent.py +4 -0
agent.py CHANGED
@@ -12,6 +12,10 @@ from llama_index.core.agent.workflow import AgentWorkflow
12
 
13
  llm = HuggingFaceInferenceAPI(model_name="Qwen/Qwen2.5-VL-32B-Instruct")
14
 
 
 
 
 
15
  @tool
16
  def web_search(query: str) -> list:
17
  """Search Tavily for a query and return a maximum 3 results as LlamaIndex Documents.
 
12
 
13
  llm = HuggingFaceInferenceAPI(model_name="Qwen/Qwen2.5-VL-32B-Instruct")
14
 
15
+ class ToolMetadata(Metadata):
16
+ name: str
17
+ description: str
18
+
19
  @tool
20
  def web_search(query: str) -> list:
21
  """Search Tavily for a query and return a maximum 3 results as LlamaIndex Documents.