From 7a7a54ec1ed1e615d4523e7b04e0f6a42c893218 Mon Sep 17 00:00:00 2001 From: Ishaan Jaffer Date: Fri, 13 Feb 2026 19:35:08 -0800 Subject: [PATCH] Add PipelineStepResult and PipelineTestResult types --- .../src/components/policies/types.ts | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/ui/litellm-dashboard/src/components/policies/types.ts b/ui/litellm-dashboard/src/components/policies/types.ts index b3a373441d7..a1036c013eb 100644 --- a/ui/litellm-dashboard/src/components/policies/types.ts +++ b/ui/litellm-dashboard/src/components/policies/types.ts @@ -82,3 +82,20 @@ export interface PolicyAttachmentListResponse { attachments: PolicyAttachment[]; total_count: number; } + +export interface PipelineStepResult { + guardrail_name: string; + outcome: "pass" | "fail" | "error"; + action_taken: string; + modified_data: Record | null; + error_detail: string | null; + duration_seconds: number | null; +} + +export interface PipelineTestResult { + terminal_action: string; + step_results: PipelineStepResult[]; + modified_data: Record | null; + error_message: string | null; + modify_response_message: string | null; +}