Update tools_registry.py
Browse files- tools_registry.py +2 -3
tools_registry.py
CHANGED
@@ -1,7 +1,6 @@
|
|
1 |
-
from typing import Callable, Any, Dict, get_type_hints, Optional
|
2 |
from dataclasses import dataclass
|
3 |
import inspect
|
4 |
-
from typing import _GenericAlias
|
5 |
|
6 |
|
7 |
# DataClasses are like normal classes in Python, but they have some basic functions like instantiation, comparing, and printing the classes already implemented.
|
@@ -72,7 +71,7 @@ def tool(name: str = None):
|
|
72 |
"type": get_type_description(type_hints.get(param_name, Any)),
|
73 |
"description": param_docs.get(param_name, "No description available")
|
74 |
}
|
75 |
-
|
76 |
return Tool(
|
77 |
name=tool_name,
|
78 |
description=description.split('\n\n')[0],
|
|
|
1 |
+
from typing import Callable, Any, Dict, get_type_hints, Optional, _GenericAlias
|
2 |
from dataclasses import dataclass
|
3 |
import inspect
|
|
|
4 |
|
5 |
|
6 |
# DataClasses are like normal classes in Python, but they have some basic functions like instantiation, comparing, and printing the classes already implemented.
|
|
|
71 |
"type": get_type_description(type_hints.get(param_name, Any)),
|
72 |
"description": param_docs.get(param_name, "No description available")
|
73 |
}
|
74 |
+
print(description)
|
75 |
return Tool(
|
76 |
name=tool_name,
|
77 |
description=description.split('\n\n')[0],
|