mirror of
https://github.com/BerriAI/litellm.git
synced 2026-10-07 02:59:05 +00:00
Add PipelineStepResult and PipelineTestResult types
This commit is contained in:
parent
0bbf4fa58c
commit
7a7a54ec1e
1 changed files with 17 additions and 0 deletions
|
|
@ -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<string, any> | null;
|
||||
error_detail: string | null;
|
||||
duration_seconds: number | null;
|
||||
}
|
||||
|
||||
export interface PipelineTestResult {
|
||||
terminal_action: string;
|
||||
step_results: PipelineStepResult[];
|
||||
modified_data: Record<string, any> | null;
|
||||
error_message: string | null;
|
||||
modify_response_message: string | null;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue