Skip to main content

check_question

Function check_question 

Source
pub fn check_question(id: &str, question: &Question) -> Result<(), Refusal>
Expand description

Check one question against the role’s limits. A refusal names questions.<id> (the id), questions.<id>.type (a type this crate does not name, checked before anything else about the question, since the rest depends on the type), questions.<id>.instructions or questions.<id>.criteria.