Coverage for agentos/guardrails/__init__.py: 100%
4 statements
« prev ^ index » next coverage.py v7.14.3, created at 2026-07-02 09:59 +0800
« prev ^ index » next coverage.py v7.14.3, created at 2026-07-02 09: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"""
7from agentos.guardrails.engine import (
8 GuardrailEngine,
9 GuardrailResult,
10 GuardrailAction,
11 GuardrailRule,
12 GuardrailCategory,
13 InputGuardrail,
14 OutputGuardrail,
15)
16from agentos.guardrails.rules import (
17 PIIRule,
18 KeywordBlockRule,
19 LengthLimitRule,
20 RegexRule,
21 ToxicityRule,
22 CodeInjectionRule,
23 build_default_rules,
24)
25from agentos.guardrails.policy import (
26 GuardrailPolicy,
27 PolicyViolation,
28 PolicyEnforcer,
29)
31__all__ = [
32 "GuardrailEngine",
33 "GuardrailResult",
34 "GuardrailAction",
35 "GuardrailRule",
36 "GuardrailCategory",
37 "InputGuardrail",
38 "OutputGuardrail",
39 "PIIRule",
40 "KeywordBlockRule",
41 "LengthLimitRule",
42 "RegexRule",
43 "ToxicityRule",
44 "CodeInjectionRule",
45 "build_default_rules",
46 "GuardrailPolicy",
47 "PolicyViolation",
48 "PolicyEnforcer",
49]