Skip to content

Commit d216804

Browse files
authored
fix (superagent): issue with superagent guardrails response verification (#139)
* fix issue with superagent guardrails response verification * Update guard classification type from 'allow' to 'pass'
1 parent 4377fd9 commit d216804

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

plugins/superagent/steps/guard.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import { type StepInput, withStepLogging } from "@/lib/steps/step-handler";
55
import { getErrorMessage } from "@/lib/utils";
66
import type { SuperagentCredentials } from "../credentials";
77

8-
type GuardClassification = "allow" | "block";
8+
type GuardClassification = "pass" | "block";
99

1010
type GuardResult = {
1111
classification: GuardClassification;
@@ -66,7 +66,7 @@ async function stepHandler(
6666
const classification = content.classification;
6767
if (
6868
!classification ||
69-
(classification !== "allow" && classification !== "block")
69+
(classification !== "pass" && classification !== "block")
7070
) {
7171
throw new Error(
7272
`Invalid Guard API response: missing or invalid classification (received: ${JSON.stringify(classification)})`

0 commit comments

Comments
 (0)