Spaces:
Running
Running
File size: 295 Bytes
5775dc6 |
1 2 3 4 5 6 7 8 9 10 11 12 |
import inspect
from primitives import tools
def get_tool_functions():
"Only get async function and function is tool from tools.py"
return {
name: func
for name, func in inspect.getmembers(tools, inspect.iscoroutinefunction)
if not name.startswith("_")
}
|