junaid17 commited on
Commit
d1f2f58
·
verified ·
1 Parent(s): 7afac3f

Update tools.py

Browse files
Files changed (1) hide show
  1. tools.py +1 -3
tools.py CHANGED
@@ -1,4 +1,3 @@
1
- ```python
2
  from langchain_core.tools import tool
3
  from langchain_text_splitters import RecursiveCharacterTextSplitter
4
  from langchain_community.vectorstores import FAISS
@@ -106,5 +105,4 @@ def tavily_search(query: str) -> dict:
106
  try:
107
  return {"results": TavilySearchResults(max_results=5).run(query)}
108
  except Exception as e:
109
- return {"error": str(e)}
110
- ```
 
 
1
  from langchain_core.tools import tool
2
  from langchain_text_splitters import RecursiveCharacterTextSplitter
3
  from langchain_community.vectorstores import FAISS
 
105
  try:
106
  return {"results": TavilySearchResults(max_results=5).run(query)}
107
  except Exception as e:
108
+ return {"error": str(e)}