[GH-ISSUE #2258] Erroneous sample code for Thread #285

Open
opened 2026-02-17 17:19:33 -05:00 by yindo · 0 comments
Owner

Originally created by @jonace73 on GitHub (Jan 16, 2026).
Original GitHub issue: https://github.com/langchain-ai/docs/issues/2258

The sample code in https://docs.langchain.com/langsmith/threads when added at the bottom with

Continue the conversation.

messages = [
{
"content": "What is my name?",
"role": "user"
}
]
get_chat_history = True

chat_pipeline(messages, get_chat_history, langsmith_extra=langsmith_extra)

yields run_tree as NoneType despite run_tree = langsmith.get_current_run_tree() being executed inside a traceable decorated function

Originally created by @jonace73 on GitHub (Jan 16, 2026). Original GitHub issue: https://github.com/langchain-ai/docs/issues/2258 The sample code in https://docs.langchain.com/langsmith/threads when added at the bottom with # Continue the conversation. messages = [ { "content": "What is my name?", "role": "user" } ] get_chat_history = True chat_pipeline(messages, get_chat_history, langsmith_extra=langsmith_extra) yields run_tree as NoneType despite run_tree = langsmith.get_current_run_tree() being executed inside a traceable decorated function
yindo added the external label 2026-02-17 17:19:33 -05:00
yindo changed title from Erroneous sample code for Thread to [GH-ISSUE #2258] Erroneous sample code for Thread 2026-06-05 17:26:03 -04:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langchain-ai/docs#285