String check
String Check allows users to write regular expressions that define text patterns that shouldn’t be allowed for discussion. It can be applied to either input or model output.

Using the SDK
from superwise_api.models.agent.agent import AgentStringCheckGuard
restricted_topics_guard = AgentStringCheckGuard(
name="Rule name",
tags={"input", "output"}, # A Set containing "input", "output", or both
regex_pattern={".*id-\d{9}.*"} # Set of regex patterns to search for prohibited content
)
Updated about 16 hours ago