Commit b594bd6
committed
refactor(aicore/filtering): collapse public API into filters.py
Address review comment #14 ("can we have all public methods on a
filters.py? Better to read").
Merge _filters.py + _modules.py + _api.py into a single filters.py
(no underscore — signals the public surface). It now owns Severity,
ContentFilter, AzureContentFilter, LlamaGuard38bFilter, InputFiltering,
OutputFiltering, ContentFiltering, set_filtering, disable_filtering.
Tests import directly from .filters; the package __init__ stays a thin
re-export for the flat 'from sap_cloud_sdk.aicore import ...' path.
Internal-only files (_litellm_patch, exceptions) keep their separate
locations; they aren't part of the documented public surface.1 parent 8bcd53b commit b594bd6
8 files changed
Lines changed: 383 additions & 373 deletions
File tree
- src/sap_cloud_sdk/aicore/filtering
- tests/aicore/filtering/unit
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
11 | | - | |
12 | | - | |
13 | | - | |
14 | | - | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
15 | 14 | | |
16 | 15 | | |
17 | 16 | | |
18 | 17 | | |
19 | | - | |
20 | | - | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
21 | 21 | | |
22 | 22 | | |
| 23 | + | |
| 24 | + | |
23 | 25 | | |
| 26 | + | |
24 | 27 | | |
| 28 | + | |
| 29 | + | |
25 | 30 | | |
26 | | - | |
27 | | - | |
28 | | - | |
29 | 31 | | |
30 | 32 | | |
31 | 33 | | |
| |||
This file was deleted.
This file was deleted.
This file was deleted.
0 commit comments