GR
Guided Review
🔗
GUIDED MODE
Review Progress0/5 completed
WHY#20#5#1#8END
📋
Phase 1 — Understand the Intent
Before looking at any code, understand what problem is being solved and why.
PR Description

fix(guardrail): pass request_data to output response handlers

ishaan-jaff•14 files•+87−52
Currently, when guardrail output handlers process a response, they create a fresh request_data dict containing only the response. This means any context from the original request (e.g., metadata, user info, routing decisions) is lost.
This PR threads the original request_data dict from the proxy through the guardrail pipeline so that output handlers can access the full request context when making guardrail decisions.
Changes:
- Updated abstract base class to accept request_data parameter
- Modified all concrete handlers (A2A, OpenAI, etc.) to accept and merge request_data
- Updated the unified guardrail hook to forward data dict to output handlers
🔗
Linked Issue #24180
Guardrail output handlers missing request context
â–¼