mirror of
https://github.com/langchain-ai/langgraphjs.git
synced 2026-07-22 09:05:28 -04:00
chore(sdk): update thread object (#1843)
Co-authored-by: David Duong <david@duong.cz>
This commit is contained in:
@@ -0,0 +1,5 @@
|
||||
---
|
||||
"@langchain/langgraph-sdk": patch
|
||||
---
|
||||
|
||||
Expose `Thread["config"]` and `Thread["error"]`
|
||||
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user