laverdes commited on
Commit
a43d586
·
verified ·
1 Parent(s): 0e3ab27

fix: remove cache hit in tool

Browse files
Files changed (1) hide show
  1. tools.py +0 -3
tools.py CHANGED
@@ -73,9 +73,6 @@ extract_tool = TavilyExtract()
73
  def search_and_extract(query: str) -> list[dict]:
74
  """Performs a web search and returns structured content extracted from top results."""
75
  time.sleep(3) # To avoid hitting the API rate limit in the llm-apis when calling the tool multiple times in a row.
76
- if query in cache:
77
- print(f"Cache hit for query: {query}")
78
- return cache[query]
79
  MAX_NUMBER_OF_CHARS = 10_000
80
 
81
  if CUSTOM_DEBUG:
 
73
  def search_and_extract(query: str) -> list[dict]:
74
  """Performs a web search and returns structured content extracted from top results."""
75
  time.sleep(3) # To avoid hitting the API rate limit in the llm-apis when calling the tool multiple times in a row.
 
 
 
76
  MAX_NUMBER_OF_CHARS = 10_000
77
 
78
  if CUSTOM_DEBUG: