Skip to content

Commit

Permalink
fix(LangChain Code Node): Fix execution of custom n8n tools called vi…
Browse files Browse the repository at this point in the history
…a LC code node (#9265)

Signed-off-by: Oleg Ivaniv <me@olegivaniv.com>
Co-authored-by: Michael Kret <michael.k@radency.com>
  • Loading branch information
OlegIvaniv and michael-radency committed Apr 30, 2024
1 parent 426a12a commit 741e829
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/@n8n/nodes-langchain/nodes/code/Code.node.ts
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,8 @@ function getSandbox(
// eslint-disable-next-line @typescript-eslint/unbound-method
context.getNodeOutputs = this.getNodeOutputs;
// eslint-disable-next-line @typescript-eslint/unbound-method
context.executeWorkflow = this.executeWorkflow;
// eslint-disable-next-line @typescript-eslint/unbound-method
context.logger = this.logger;

if (options?.addItems) {
Expand Down

0 comments on commit 741e829

Please sign in to comment.