Ask a question to get started
Enter to sendā¢Shift+Enter new line
convert_to_ernie_function( function: Union[Dict[str, Any], Type[BaseModel], Callable] )
function
Union[Dict[str, Any], Type[BaseModel], Callable]
Convert a raw function/class to an Ernie function.
Either a dictionary, a pydantic.BaseModel class, or a Python function. If a dictionary is passed in, it is assumed to already be a valid Ernie function.