Ë
    uPêjB  ã                   ó`   — d Z ddlmZmZ ddlmZ ddlmZ ddlm	Z	m
Z
 ddlmZ ddlmZ g d¢Zy	)
ac  
LiteLLM Policy Engine

The Policy Engine allows administrators to define policies that combine guardrails
with scoping rules. Policies can target specific teams, API keys, and models using
wildcard patterns, and support inheritance from base policies.

Configuration structure:
- `policies`: Define WHAT guardrails to apply (with inheritance and conditions)
- `policy_attachments`: Define WHERE policies apply (teams, keys, models)

Example:
```yaml
policies:
  global-baseline:
    description: "Base guardrails for all requests"
    guardrails:
      add: [pii_blocker]

  gpt4-safety:
    inherit: global-baseline
    description: "Extra safety for GPT-4"
    guardrails:
      add: [toxicity_filter]
    condition:
      model: "gpt-4.*"  # regex pattern

policy_attachments:
  - policy: global-baseline
    scope: "*"
  - policy: gpt4-safety
    scope: "*"
```
é    )ÚAttachmentRegistryÚget_attachment_registry)ÚConditionEvaluator)ÚPolicyMatcher)ÚPolicyRegistryÚget_policy_registry)ÚPolicyResolver)ÚPolicyValidator)r   r   r   r   r	   r
   r   r   N)Ú__doc__Ú/litellm.proxy.policy_engine.attachment_registryr   r   Ú/litellm.proxy.policy_engine.condition_evaluatorr   Ú*litellm.proxy.policy_engine.policy_matcherr   Ú+litellm.proxy.policy_engine.policy_registryr   r   Ú+litellm.proxy.policy_engine.policy_resolverr	   Ú,litellm.proxy.policy_engine.policy_validatorr
   Ú__all__© ó    úi/home/oem/CyberBrain26-unified/.venv/lib/python3.12/site-packages/litellm/proxy/policy_engine/__init__.pyú<module>r      s.   ðñ!÷Fõ OÝ D÷õ GÝ Hò	�r   