We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 86825ee commit b395dfbCopy full SHA for b395dfb
2 files changed
tests/tools/safety/test_filter.py
@@ -35,6 +35,8 @@ class TestSafetyFilter:
35
36
def test_filter_is_registered(self):
37
"""SafetyFilter should be registered with the TOOL filter type."""
38
+ # 确保模块导入触发 @register_tool_filter 装饰器
39
+ from trpc_agent_sdk.tools.safety import _safety_filter # noqa: F401
40
from trpc_agent_sdk.filter import get_tool_filter
41
filter_instance = get_tool_filter("safety_filter")
42
assert filter_instance is not None
trpc_agent_sdk/tools/safety/__init__.py
@@ -53,4 +53,4 @@
53
"SafetyWrapper",
54
"ScanInput",
55
"ScriptType",
56
-]
+]
0 commit comments