Update app.py
Browse files
app.py
CHANGED
|
@@ -117,9 +117,9 @@ def extract_tos_content_impl(company_name: str) -> dict:
|
|
| 117 |
return {"error": error_msg}
|
| 118 |
|
| 119 |
|
| 120 |
-
# Define tools with
|
| 121 |
@tool
|
| 122 |
-
def search_terms_of_service(company_name):
|
| 123 |
"""
|
| 124 |
Search for a company's Terms of Service link.
|
| 125 |
|
|
@@ -134,7 +134,7 @@ def search_terms_of_service(company_name):
|
|
| 134 |
|
| 135 |
|
| 136 |
@tool
|
| 137 |
-
def extract_tos_content(company_name):
|
| 138 |
"""
|
| 139 |
Fetch and extract the Terms of Service content for a company.
|
| 140 |
|
|
|
|
| 117 |
return {"error": error_msg}
|
| 118 |
|
| 119 |
|
| 120 |
+
# Define tools with proper type hints but simple types
|
| 121 |
@tool
|
| 122 |
+
def search_terms_of_service(company_name: str) -> str:
|
| 123 |
"""
|
| 124 |
Search for a company's Terms of Service link.
|
| 125 |
|
|
|
|
| 134 |
|
| 135 |
|
| 136 |
@tool
|
| 137 |
+
def extract_tos_content(company_name: str) -> str:
|
| 138 |
"""
|
| 139 |
Fetch and extract the Terms of Service content for a company.
|
| 140 |
|