marvin.utilities.tools
Constants
T
Classes
ResultTool
run
Functions
update_fn
As a function:
def my_fn(x): return x updated_fn = update_fn(my_fn, name=‘hello_there’)As a decorator with name:
@update_fn(name=‘hello_there’) def my_fn(x): return xAs a decorator with name and description:
@update_fn(name=‘hello_there’, description=‘Says hello’) def my_fn(x): return xAs a decorator with no arguments:
@update_fn() def my_fn(x): return xWorks with async functions too:
@update_fn(name=‘async_hello’) async def my_async_fn(x): return xwrap_tool_errors
Parent Module:
utilities