Skip to main content

parse_reply

Function parse_reply 

Source
pub fn parse_reply(text: &str) -> Ruling
Expand description

Read the answer.

Fail-closed in the strongest sense available: the only text that produces Ruling::Allow is a line that starts with allow. Everything else is escalate, because an answer this build does not understand is not permission. deny keeps its reason, since that sentence is what teaches the model something; a deny with no reason still denies.