Threads
feature in LangSmith.
Thread
is a sequence of traces representing a single conversation. Each response is represented as its own trace, but these traces are linked together by being part of the same thread.
To associate traces together, you need to pass in a special metadata
key where the value is the unique identifier for that thread.
The key value is the unique identifier for that conversation.
The key name should be one of:
session_id
thread_id
conversation_id
.f47ac10b-58cc-4372-a567-0e02b2c3d479
.
getChatHistory: true
,
you can continue the conversation from where it left off. This means that the LLM will receive the entire message history and respond to it,
instead of just responding to the latest message.
Threads
tab in any project details page. You will then see a list of all threads, sorted by the most recent activity.
Annotate
and Open trace
, respectively.