feat(ai): durcissement phase F (#79) - rate limit, redaction, OpenAPI/MCP, E2E
This commit is contained in:
@@ -17,11 +17,22 @@ from backend.tools.context import (
|
||||
ToolMode,
|
||||
ToolNotFoundError,
|
||||
ToolPermissionError,
|
||||
ToolRateLimitError,
|
||||
ToolRisk,
|
||||
ToolScope,
|
||||
ToolValidationError,
|
||||
resolve_safe_path,
|
||||
)
|
||||
from backend.tools.ratelimit import (
|
||||
check_and_record as check_tool_rate_limit,
|
||||
)
|
||||
from backend.tools.ratelimit import (
|
||||
get_status as get_tool_rate_limit_status,
|
||||
)
|
||||
from backend.tools.ratelimit import (
|
||||
reset as reset_tool_rate_limit,
|
||||
)
|
||||
from backend.tools.redaction import redact_payload
|
||||
from backend.tools.registry import (
|
||||
ToolSpec,
|
||||
call_tool,
|
||||
@@ -39,15 +50,20 @@ __all__ = [
|
||||
"ToolMode",
|
||||
"ToolNotFoundError",
|
||||
"ToolPermissionError",
|
||||
"ToolRateLimitError",
|
||||
"ToolResult",
|
||||
"ToolRisk",
|
||||
"ToolScope",
|
||||
"ToolSpec",
|
||||
"ToolValidationError",
|
||||
"call_tool",
|
||||
"check_tool_rate_limit",
|
||||
"get_tool",
|
||||
"get_tool_rate_limit_status",
|
||||
"get_tool_schemas",
|
||||
"list_tools",
|
||||
"redact_payload",
|
||||
"reset_tool_rate_limit",
|
||||
"resolve_safe_path",
|
||||
"tool",
|
||||
]
|
||||
|
||||
Reference in New Issue
Block a user