langchain.chains.ernie_functions.base.convert_python_function_to_ernie_function¶
langchain.chains.ernie_functions.base.convert_python_function_to_ernie_function(function: Callable) → Dict[str, Any][source]¶
Convert a Python function to an Ernie function-calling API compatible dict.
Assumes the Python function has type hints and a docstring with a description. Ifthe docstring has Google Python style argument descriptions, these will be
included as well.