Spaces:
Runtime error
Runtime error
Update tools.py
Browse files
tools.py
CHANGED
|
@@ -97,13 +97,11 @@ def tool_register(cls: BaseModel):
|
|
| 97 |
|
| 98 |
@tool_register
|
| 99 |
class get_documents(ToolBase):
|
| 100 |
-
"""
|
| 101 |
-
Retrieves general information about a region, its cities, activities, tourism, or surrounding areas based on query.
|
| 102 |
-
"""
|
| 103 |
|
| 104 |
logging.info("@tool_register: get_documents()")
|
| 105 |
|
| 106 |
-
query: str = Field(description="An
|
| 107 |
logging.info(f"query: {query}")
|
| 108 |
|
| 109 |
@classmethod
|
|
|
|
| 97 |
|
| 98 |
@tool_register
|
| 99 |
class get_documents(ToolBase):
|
| 100 |
+
"""Retrieves general information from Wikipedia based on the user's query. """
|
|
|
|
|
|
|
| 101 |
|
| 102 |
logging.info("@tool_register: get_documents()")
|
| 103 |
|
| 104 |
+
query: str = Field(description="An optimized user query used to retrieve relevant information.")
|
| 105 |
logging.info(f"query: {query}")
|
| 106 |
|
| 107 |
@classmethod
|