server-personification/pers/langchain/tools/tools.py

10 lines
248 B
Python

import json
from termcolor import colored
PRINT_USAGE: bool = True
def _print_func_call(function_name: str, function_arguments: dict):
print('\n' + colored(f'{function_name}("{json.dumps(function_arguments, indent=2)}")' + '\n', 'yellow'))