Merge pull request #97 from langchain-ai/brace/fix-interrupt-not-object

fix: Do not error when interrupt values are not objects
This commit is contained in:
Brace Sproul
2025-04-08 12:55:05 -07:00
committed by GitHub

View File

@@ -6,6 +6,7 @@ export function isAgentInboxInterruptSchema(
const valueAsObject = Array.isArray(value) ? value[0] : value;
return (
valueAsObject &&
typeof valueAsObject === "object" &&
"action_request" in valueAsObject &&
typeof valueAsObject.action_request === "object" &&
"config" in valueAsObject &&