Files
iAOP/core/llm-gateway/__init__.py
T

35 lines
1023 B
Python
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# -*- coding: utf-8 -*-
"""iAOP-Core · LLM 网关(LLM Gateway)—— 混合 LLM 的安全出站防线。
对应 PRD 5.4「④ LLM 网关 + RAG」与 EPIC #6:
本地 70B(敏感/核心)+ 云端 API(脱敏/通用)混合,敏感数据**本地闭环**。
当前子模块(Issue #48):
- dlp DLP 敏感数据拦截引擎:出站内容(query / RAG context / 模型输出)
发往云端前做敏感规则检查,命中即拦截(目标 100% 拦截),全量审计。
后续子任务(EPIC #6 拆分,将在本包扩展):
- 敏感度路由(router)、Prompt 版本管理与幻觉校验中间件、路由准确率评估。
测试:`python -m unittest discover -s tests -v`(在 core/llm-gateway 目录下执行)。
"""
__version__ = "0.1.0"
from .dlp import (
DLP_DEFAULT_RULES,
DlpEngine,
DlpHit,
DlpResult,
DlpRule,
DlpRuleKind,
)
__all__ = [
"DlpRuleKind",
"DlpRule",
"DlpHit",
"DlpResult",
"DlpEngine",
"DLP_DEFAULT_RULES",
]