Guardrail applied to agent/chain input before it reaches the LLM.
Examples:
classNoCreditCardGuardrail<Phronomy::Guardrail::InputGuardraildefcheck(input)fail!("Credit card numbers are not allowed")ifinput.to_s.match?(/\d{4}[- ]\d{4}[- ]\d{4}[- ]\d{4}/)endendagent=MyAgent.newagent.add_input_guardrail(NoCreditCardGuardrail.new)