CryptoScoutv1 commited on
Commit
ddb53d4
·
verified ·
1 Parent(s): 9076694

Update WebScape_TOOL.py

Browse files
Files changed (1) hide show
  1. WebScape_TOOL.py +11 -11
WebScape_TOOL.py CHANGED
@@ -48,11 +48,11 @@ class WebSearchTools:
48
 
49
 
50
 
51
- @tool("forecast search")
52
  def forecast_search(query: str) -> str:
53
  """
54
- Performs an internet search using a DuckDuckGo-like service and returns the results.
55
-
56
  Parameters:
57
  query (str): The search query.
58
 
@@ -61,14 +61,14 @@ class WebSearchTools:
61
  """
62
  # Assuming `ddgs` is initialized and ready to use here, with a context manager support
63
  with DDGS() as ddgs:
64
- results = [r for r in ddgs.text(f"site:digitalcoinprice.com/forecast {query}", max_results=4)]
65
  return results if results else "No results found."
66
 
67
- @tool("technical signal search")
68
  def technicalsignals_search(query: str) -> str:
69
  """
70
- Performs an internet search using a DuckDuckGo-like service and returns the results.
71
-
72
  Parameters:
73
  query (str): The search query.
74
 
@@ -77,15 +77,15 @@ class WebSearchTools:
77
  """
78
  # Assuming `ddgs` is initialized and ready to use here, with a context manager support
79
  with DDGS() as ddgs:
80
- results = [r for r in ddgs.text(f"site:centralcharts.com signals {query}", max_results=4)]
81
  return results if results else "No results found."
82
 
83
 
84
- @tool("price target search")
85
  def pricetargets_search(query: str) -> str:
86
  """
87
- Performs an internet search using a DuckDuckGo-like service and returns the results
88
-
89
  Parameters:
90
  query (str): The search query.
91
 
 
48
 
49
 
50
 
51
+ @tool("forecast search", return_direct=False)
52
  def forecast_search(query: str) -> str:
53
  """
54
+ Performs an internet search and returns the results.
55
+ **** Note: only pass the cryptocurrency name or symbol into the search query****
56
  Parameters:
57
  query (str): The search query.
58
 
 
61
  """
62
  # Assuming `ddgs` is initialized and ready to use here, with a context manager support
63
  with DDGS() as ddgs:
64
+ results = [r for r in ddgs.text(f"site:digitalcoinprice.com/forecast 2024 {query}", max_results=5)]
65
  return results if results else "No results found."
66
 
67
+ @tool("technical signal search", return_direct=False)
68
  def technicalsignals_search(query: str) -> str:
69
  """
70
+ Performs an internet search and returns the results.
71
+ **** Note: only pass the cryptocurrency name or symbol into the search query****
72
  Parameters:
73
  query (str): The search query.
74
 
 
77
  """
78
  # Assuming `ddgs` is initialized and ready to use here, with a context manager support
79
  with DDGS() as ddgs:
80
+ results = [r for r in ddgs.text(f"site:centralcharts.com trading signals {query}", max_results=5)]
81
  return results if results else "No results found."
82
 
83
 
84
+ @tool("price target search", return_direct=False)
85
  def pricetargets_search(query: str) -> str:
86
  """
87
+ Performs an internet search and returns the results.
88
+ **** Note: only pass the cryptocurrency name or symbol into the search query****
89
  Parameters:
90
  query (str): The search query.
91