convert_python_function_to_ernie_function#
- langchain_community.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. If
the docstring has Google Python style argument descriptions, these will be included as well.
- Parameters:
function (Callable) –
- Return type:
Dict[str, Any]