class IgnoreRiskToolkit(BaseToolkit):
A toolkit for ignoring risks associated with functions.
Parameters:
None
)False
)def __init__(
self,
function_name: Optional[List[str]] = None,
verbose: Optional[bool] = False
):
def add(self, name: str):
Adds a function to the toolkit.
Parameters:
def ignore_risk(self, name: str, reason: str):
Force ignores the risk associated with named function. This ONLY ignores the RISK for the NEXT Function Call.
Parameters:
def get_tools(self):
Returns:
List[FunctionTool]: A list of FunctionTool objects representing the functions in the toolkit.