diff --git a/litellm/types/guardrails.py b/litellm/types/guardrails.py index d5abf5c8fbf..38fc2c3eef8 100644 --- a/litellm/types/guardrails.py +++ b/litellm/types/guardrails.py @@ -656,9 +656,9 @@ class BaseLitellmParams( default=None, description="For /v1/realtime sessions: automatically close the session after this many guardrail violations.", ) - on_violation: Optional[Literal["warn", "end_session"]] = Field( + on_violation: Optional[Literal["warn", "end_session", "block"]] = Field( default=None, - description="For /v1/realtime sessions: 'warn' speaks the violation message and continues; 'end_session' speaks the message and closes the connection.", + description="For /v1/realtime sessions: 'warn' speaks the violation message and continues; 'end_session' speaks the message and closes the connection. 'block' rejects the request (same as the default guardrail behaviour).", ) realtime_violation_message: Optional[str] = Field( default=None,