Skip to content

[Feature]: Support logging for multiple guardrails #11671

@thetonus

Description

@thetonus

The Feature

In the standard logging payload, log a list of StandardLoggingGuardrailInformation for guardrail_information instead of single instance.

Motivation, pitch

If multiple guardrails are engaged and they fail their checks and these are logged, the last guardrail registered overwrites the information from the previous guardrails. Litellm already logs how many guardrails are enabled for that request in applied_guardrails. Makes sense to log multiple guardrail information.

LiteLLM is hiring a founding backend engineer, are you interested in joining us and shipping to all our users?

No

Twitter / LinkedIn details

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions