Guardrails

Examples for input/output safety checks and policy enforcement.

ExampleDescription
Custom GuardrailBuild custom guardrails to validate agent behavior.
Openai ModerationExample demonstrating how to use OpenAI moderation guardrails with Kern Agent.
Output GuardrailValidate and constrain agent output with guardrails.
Pii DetectionExample demonstrating how to use PII detection guardrails with Kern Agent.
Prompt InjectionExample demonstrating how to use checks with Kern Agent to implement guardrails.