We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 29f0b95 commit b1b29b8Copy full SHA for b1b29b8
libs/langchain/src/agents/middleware/hitl.ts
@@ -535,10 +535,7 @@ export function humanInTheLoopMiddleware(
535
`Invalid edited action for tool "${toolCall.name}": name must be a string`
536
);
537
}
538
- if (
539
- !editedAction.args ||
540
- typeof editedAction.args !== "object"
541
- ) {
+ if (!editedAction.args || typeof editedAction.args !== "object") {
542
throw new Error(
543
`Invalid edited action for tool "${toolCall.name}": args must be an object`
544
0 commit comments