You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
description="The endpoint for the Trend Micro AI Guard API. For other regions, use: https://api.{region}.xdr.trendmicro.com/v3.0/aiSecurity/applyGuardrails where region is eu, jp, au, in, sg, or mea.",
853
853
)
854
854
855
855
api_key_env_var: Optional[str] =Field(
856
856
default=None,
857
857
description="Environment variable containing API key for Trend Micro AI Guard",
858
858
)
859
859
860
+
application_name: str=Field(
861
+
default="nemo-guardrails",
862
+
description="Application name for TMV1-Application-Name header (REQUIRED). Must contain only letters, numbers, hyphens, and underscores, with a maximum length of 64 characters.",
863
+
max_length=64,
864
+
)
865
+
866
+
detailed_response: Optional[bool] =Field(
867
+
default=False,
868
+
description="If True, returns detailed AI Guard results with confidence scores (Prefer: return=representation). If False, returns minimal response with only action and reasons (Prefer: return=minimal).",
869
+
)
870
+
860
871
defget_api_key(self) ->Optional[str]:
861
872
"""Helper to return an API key (if it exists) from a Trend Micro configuration.
862
873
The `api_key_env_var` field, a string stored in this environment variable.
0 commit comments