Skip to content

Commit 22e2b73

Browse files
nfcamposagola11
andauthored
Handle zapier errors (#627)
Co-authored-by: Ankush Gola <[email protected]>
1 parent 7d7e79c commit 22e2b73

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

langchain/src/agents/tools/zapier.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ export class ZapierNLAWrapper {
105105
params?: ZapierValues
106106
): Promise<ZapierValues> {
107107
const resp = await this._getActionRequest(actionId, instructions, params);
108-
return resp.result;
108+
return resp.status === "error" ? resp.error : resp.result;
109109
}
110110

111111
/**

0 commit comments

Comments
 (0)