LLMGuardRuntime
- prompt (str): The prompt to use for the language model. (default: :obj:
GUARDPROMPT) - model (BaseModelBackend): The language model to use. (default: :obj:
None) - verbose (bool): Whether to print verbose output. (default: :obj:
False)
init
add
- funcs (FunctionTool or List[FunctionTool]): The function or list of functions to add.
- threshold (int): The risk threshold for functions. (default: :obj:
2)