chore(sdk): update thread object (#1843)

Co-authored-by: David Duong <david@duong.cz>
This commit is contained in:
William FH
2026-01-07 17:27:00 -08:00
committed by GitHub
parent 03e3dd15ff
commit 4ffdde9e18
2 changed files with 11 additions and 0 deletions
+5
View File
@@ -0,0 +1,5 @@
---
"@langchain/langgraph-sdk": patch
---
Expose `Thread["config"]` and `Thread["error"]`
+6
View File
@@ -211,6 +211,12 @@ export interface Thread<ValuesType = DefaultValues> {
/** Interrupts which were thrown in this thread */
interrupts: Record<string, Array<Interrupt>>;
/** The config for the thread */
config?: Config;
/** The error for the thread (if status == "error") */
error?: Optional<string | Record<string, unknown>>;
}
export interface Cron {