Coverage for agentos/guardrails/__init__.py: 0%
4 statements
« prev ^ index » next coverage.py v7.14.3, created at 2026-07-08 10:59 +0800
« prev ^ index » next coverage.py v7.14.3, created at 2026-07-08 10:59 +0800
1"""
2AgentOS v1.3.11 — Guardrails: Input/Output safety and policy enforcement.
4Provides a composable guardrail system for validating prompts before they
5reach the LLM and sanitizing outputs before they reach the user.
6"""
8from agentos.guardrails.engine import (
9 GuardrailAction,
10 GuardrailCategory,
11 GuardrailEngine,
12 GuardrailResult,
13 GuardrailRule,
14 InputGuardrail,
15 OutputGuardrail,
16)
17from agentos.guardrails.policy import (
18 GuardrailPolicy,
19 PolicyEnforcer,
20 PolicyViolation,
21)
22from agentos.guardrails.rules import (
23 CodeInjectionRule,
24 KeywordBlockRule,
25 LengthLimitRule,
26 PIIRule,
27 RegexRule,
28 ToxicityRule,
29 build_default_rules,
30)
32__all__ = [
33 "GuardrailEngine",
34 "GuardrailResult",
35 "GuardrailAction",
36 "GuardrailRule",
37 "GuardrailCategory",
38 "InputGuardrail",
39 "OutputGuardrail",
40 "PIIRule",
41 "KeywordBlockRule",
42 "LengthLimitRule",
43 "RegexRule",
44 "ToxicityRule",
45 "CodeInjectionRule",
46 "build_default_rules",
47 "GuardrailPolicy",
48 "PolicyViolation",
49 "PolicyEnforcer",
50]