Ask a question to get started
Enter to sendā¢Shift+Enter new line
Convert a raw function/class to an Ernie function.
convert_to_ernie_function( function: Union[Dict[str, Any], Type[BaseModel], Callable] ) -> Dict[str, Any]
function
Union[Dict[str, Any], Type[BaseModel], Callable]
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.