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
-
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:
![image](https://private-user-images.githubusercontent.com/10503163/354657010-777c27ad-b065-46c9-a2ff-b0be481dc044.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MzkwODQ3NTAsIm5iZiI6MTczOTA4NDQ1MCwicGF0aCI6Ii8xMDUwMzE2My8zNTQ2NTcwMTAtNzc3YzI3YWQtYjA2NS00NmM5LWEyZmYtYjBiZTQ4MWRjMDQ0LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAyMDklMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMjA5VDA3MDA1MFomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTY4YmUwNDJjNmYyODU0ZjAyZTljMjVmZjg2NmRlMjc4ZDY5MmUwMjk2MDgwYzYwZGZjZjk4NWVkMGJjN2VlMmMmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0._T5LRd3_mULENWCA-YUT2iQqeyHxVIhhDp0er1_-hu0)
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