Update app.py
Browse files
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 |
-
@
|
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 |
-
|
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.
|