diff --git a/litellm/types/guardrails.py b/litellm/types/guardrails.py index d5abf5c8fbf..413a340f3c3 100644 --- a/litellm/types/guardrails.py +++ b/litellm/types/guardrails.py @@ -656,7 +656,7 @@ 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.", )