Critical2
High2
Medium0
#1high+4โ3
Add request_data to A2A output handler
๐ litellm/llms/a2a/chat/guardrail_translation/handler.py
Adds the request_data parameter to process_output_response and merges it into local_request_data via dict unpacking, preserving any input-phase context.
RELATED
Hover a line and click + to ask about specific lines
#5critical+8โ3
Update base class abstract signatures
๐ litellm/llms/base_llm/guardrail_translation/base_translation.py
Updates the abstract BaseTranslation to declare request_data on both process_output_response and process_output_streaming_response, defining the interface contract all subclasses must follow.
RELATED
Hover a line and click + to ask about specific lines
AI
Ask about Chunk #5AI Summary
Updates the abstract BaseTranslation to declare request_data on both process_output_response and process_output_streaming_response, defining the interface contract all subclasses must follow.
RELATED โ#1#2#3#8#20
Y
You3 min ago
Why is this chunk marked as critical?
AI
AI Assistant2 min ago
This chunk modifies the abstract base class `BaseTranslation`, which defines the interface contract for all guardrail handlers. Every concrete handler must conform to this signature. Changing the abstract interface is critical because:
1. Any subclass missing `request_data` breaks Liskov substitution
2. It affects 10+ handler implementations
3. A missing parameter means silent loss of input context
Y
#8high+6โ4
Update OpenAI handler + use local_request_data
๐ litellm/llms/openai/chat/guardrail_translation/handler.py
Adds request_data to the OpenAI chat handler and fixes the streaming path to pass local_request_data instead of the raw parameter, ensuring enriched context reaches the guardrail.
RELATED
Hover a line and click + to ask about specific lines
#20critical+4โ0
Forward request_data from unified guardrail
๐ litellm/proxy/guardrails/guardrail_hooks/unified_guardrail/unified_guardrail.py
The entry point: passes the full request `data` dict into process_output_response and streaming hooks, making it available to all downstream handlers.
RELATED
Hover a line and click + to ask about specific lines