Skip to main content

IgnoreRiskToolkit

A toolkit for ignoring risks associated with functions. Parameters:
  • function_names (Optional[List[str]]): A list of function names to ignore risks for. (default: :obj:None)
  • verbose (Optional[bool]): Whether to print verbose output. (default: :obj:False)

init

add

Adds a function to the toolkit. Parameters:
  • name (str): The name of the function to add.

ignore_risk

Force ignores the risk associated with named function. This ONLY ignores the RISK for the NEXT Function Call. Parameters:
  • name (str): The name of the function to ignore.
  • reason (str): A brief explanation of the reasoning behind the decision to ignore the risk.

get_tools

Returns: List[FunctionTool]: A list of FunctionTool objects representing the functions in the toolkit.