Commit
·
001cdc7
1
Parent(s):
45860c2
Update the tool description
Browse filesSigned-off-by: Aivin V. Solatorio <avsolatorio@gmail.com>
- services.py +3 -3
- wdi_mcp_gradio.py +3 -3
services.py
CHANGED
|
@@ -253,13 +253,13 @@ def get_wdi_data(
|
|
| 253 |
|
| 254 |
|
| 255 |
def used_indicators(indicator_ids: list[str] | str) -> list[str]:
|
| 256 |
-
"""
|
| 257 |
|
| 258 |
Args:
|
| 259 |
-
indicator_ids: A list of indicator ids (idno) that have been used by the LLM.
|
| 260 |
|
| 261 |
Returns:
|
| 262 |
-
A list of indicator ids (idno) that have been used by the LLM.
|
| 263 |
"""
|
| 264 |
|
| 265 |
if isinstance(indicator_ids, str):
|
|
|
|
| 253 |
|
| 254 |
|
| 255 |
def used_indicators(indicator_ids: list[str] | str) -> list[str]:
|
| 256 |
+
"""The LLM can use this tool to let the user know which indicators it has used in generating its response.
|
| 257 |
|
| 258 |
Args:
|
| 259 |
+
indicator_ids: A list or comma-separated list of indicator ids (idno) that have been used by the LLM.
|
| 260 |
|
| 261 |
Returns:
|
| 262 |
+
A list of indicator ids (idno) that have been used by the LLM. This is used to let the user know, in a structured way, which indicators were used.
|
| 263 |
"""
|
| 264 |
|
| 265 |
if isinstance(indicator_ids, str):
|
wdi_mcp_gradio.py
CHANGED
|
@@ -71,13 +71,13 @@ def get_wdi_data(indicator_id: str, country_codes_str: str, date: str, per_page:
|
|
| 71 |
|
| 72 |
|
| 73 |
def used_indicators(indicator_ids: list[str] | str):
|
| 74 |
-
"""
|
| 75 |
|
| 76 |
Args:
|
| 77 |
-
indicator_ids: A list of indicator ids (idno) that have been used by the LLM.
|
| 78 |
|
| 79 |
Returns:
|
| 80 |
-
A list of indicator ids (idno) that have been used by the LLM.
|
| 81 |
"""
|
| 82 |
|
| 83 |
return services.used_indicators(indicator_ids=indicator_ids)
|
|
|
|
| 71 |
|
| 72 |
|
| 73 |
def used_indicators(indicator_ids: list[str] | str):
|
| 74 |
+
"""The LLM can use this tool to let the user know which indicators it has used in generating its response.
|
| 75 |
|
| 76 |
Args:
|
| 77 |
+
indicator_ids: A list or comma-separated list of indicator ids (idno) that have been used by the LLM.
|
| 78 |
|
| 79 |
Returns:
|
| 80 |
+
A list of indicator ids (idno) that have been used by the LLM. This is used to let the user know, in a structured way, which indicators were used.
|
| 81 |
"""
|
| 82 |
|
| 83 |
return services.used_indicators(indicator_ids=indicator_ids)
|