LangSmith Threads tracing wrong attribute as a chat message for custom input types #584
Replies: 1 comment 4 replies
-
|
Would it be possible to share an example failing trace to help us debug this? |
Beta Was this translation helpful? Give feedback.
4 replies
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.
-
I want to trace messages for specific "thread_id" using LangSmith Threads, consequently I use same attribute naming for getting chat_history from db, but that's not relevant for current discussion.
I successfully modified config dynamically in the runtime with desired thread_id, but on LangSmith Threads wrong attribute is traced as a chat message, as seen from AgentInput class below there are "input" and "thread_id" attributes, "input" should be the one traced on LangSmith Threads but "thread_id" is constantly being traced.

I'm not sure how the attribute is depicted internally, I assume it has something to do with naming and type of attribute, I've also included my workaround which helped solve the problem, but It's kinda hacky and I don't want to do it that way.
Is there an intended way to explicitly set which attribute should be traced when using custom data types?
This is the code where I had problems:
This is the hacky workaround:
Beta Was this translation helpful? Give feedback.
All reactions