Replies: 2 comments
-
Hello, @salvadr! I'm here to assist you with any issues you're experiencing. If you have any questions or need help with bug fixes, feel free to ask. To achieve consistent results with tags and sessions in LangChain/LangGraph using the
By following these steps, you ensure that the tags and session information are consistently applied to your traces, and the input and output are correctly captured using the |
Beta Was this translation helpful? Give feedback.
-
@salvadr Could you please try wrapping your LLM execution in a chain / Runnable? The config you have passed is only supported on chains and not if using a |
Beta Was this translation helpful? Give feedback.
-
Hi, I'm trying to add traces to our LangChain/LangGraph code and I can't manage to get consistent results, specifically in relation to tags and sessions. I've tried 2 approaches:
1/ With CallbackHandler:
I'm using this code copied from the docs:
With this I don't get the tags nor the session (the tags are present in the "metadata" area), but I do get the input and output.
With this I do get the tags and session parsed correctly but the input and output are
null
. And I get an empty duplicate record of the trace.I'd favor the first approach, so that I can set the session id with the metadata.
Any ideas are welcome, thanks in advance.
Beta Was this translation helpful? Give feedback.
All reactions