Tags and Metadata for Nodes #292
Unanswered
kevinqmcdonald
asked this question in
Q&A
Replies: 1 comment 1 reply
-
Hey @kevinqmcdonald, will add this! |
Beta Was this translation helpful? Give feedback.
1 reply
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.
-
Is there any way to add tags and metadata to individual nodes in a graph? I want to be able to filter events returned by the
streamEvents()
method by tag, but I can't find a good way to tag a specific node (and all its children). I tried filtering by name, but that doesn't stream events for the node's child runs.To illustrate what I'm trying to do, here is a screenshot of my recent run in Langsmith:

In this trace, I want to filter the events streamed back so that I only receive events from the
worker_loop
node. I tried filtering by name, but I don't get any of the child runs (RunnableLambda, ChannelWrite, etc.). I can't seem to find a way to tag the node so that I can filter by tags, other than this hacky way that I came up with below:Does anyone know of a better way to do this?
Beta Was this translation helpful? Give feedback.
All reactions