Update litellm/types/guardrails.py to description as well

Co-authored-by: greptile-apps[bot] <165735046+greptile-apps[bot]@users.noreply.github.com>
This commit is contained in:
Aarish Alam 2026-03-17 03:42:35 +05:30 committed by GitHub
parent 6adb6a632d
commit 352807204f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -658,7 +658,7 @@ class BaseLitellmParams(
)
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' blocks the request (used by guardrails such as MCP Security).",
)
realtime_violation_message: Optional[str] = Field(
default=None,