nemoguardrails.library.self_check.output_check.actions
nemoguardrails.library.self_check.output_check.actions
Module Contents
Functions
Data
API
async
Checks if the output from the bot.
Prompt the LLM, using the self_check_output task prompt, to determine if the output
from the bot should be allowed or not.
The LLM call should return “yes” if the output is bad and should be blocked (this is consistent with self_check_input_prompt).
Returns:
True if the output should be allowed, False otherwise.