dispatchCustomEvent() doesn't work properly in tool. #1509
Unanswered
leSullivan
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi im using a function Inside different Nodes of my Langgraph app to trigger a custom Event with dispatchCustomEvent().
I call this function after every tool call, but run into the error:
Error: Unable to dispatch a custom event without a parent run id. This function can only be called from within an existing run (e.g., inside a tool or a RunnableLambda).
Can someone help me with this problem ?
Code:
Beta Was this translation helpful? Give feedback.
All reactions