mohammadKa143 commited on
Commit
16a5a24
·
verified ·
1 Parent(s): 530aa21

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -25,7 +25,7 @@ def my_custom_tool(arg1:str, arg2:int)-> str: #it's import to specify the return
25
  return "What magic will you build ?"
26
 
27
 
28
- @too
29
  def browsing_tool_fetch_content(url: str, query_context: str) -> str:
30
  """
31
  Placeholder function to simulate fetching full content from a URL.
@@ -35,7 +35,7 @@ def browsing_tool_fetch_content(url: str, query_context: str) -> str:
35
 
36
  Args:
37
  url: the URL to fetch the content from.
38
- arg2: the context related to the URL.
39
  """
40
  print(f"[Browsing Tool Stub] Attempting to fetch content for URL: {url} (context: '{query_context}')")
41
  # Simulate fetching content. Replace with actual fetching logic.
 
25
  return "What magic will you build ?"
26
 
27
 
28
+ @tool
29
  def browsing_tool_fetch_content(url: str, query_context: str) -> str:
30
  """
31
  Placeholder function to simulate fetching full content from a URL.
 
35
 
36
  Args:
37
  url: the URL to fetch the content from.
38
+ query_context: the context related to the URL.
39
  """
40
  print(f"[Browsing Tool Stub] Attempting to fetch content for URL: {url} (context: '{query_context}')")
41
  # Simulate fetching content. Replace with actual fetching logic.