Skip to content

Commit

Permalink
Merge pull request #2429 from langchain-ai/nc/15nov/sdk-js-types
Browse files Browse the repository at this point in the history
sdk-js: Update types for state.task
  • Loading branch information
nfcampos authored Nov 15, 2024
2 parents e9162e2 + 29a0042 commit 81077e7
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 2 deletions.
2 changes: 1 addition & 1 deletion libs/sdk-js/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@langchain/langgraph-sdk",
"version": "0.0.24",
"version": "0.0.25",
"description": "Client library for interacting with the LangGraph API",
"type": "module",
"packageManager": "[email protected]",
Expand Down
1 change: 1 addition & 0 deletions libs/sdk-js/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ export type {
Metadata,
Run,
Thread,
ThreadTask,
ThreadState,
ThreadStatus,
Cron,
Expand Down
8 changes: 7 additions & 1 deletion libs/sdk-js/src/schema.ts
Original file line number Diff line number Diff line change
Expand Up @@ -208,8 +208,14 @@ export interface ThreadState<ValuesType = DefaultValues> {
export interface ThreadTask {
id: string;
name: string;
result?: unknown;
error: Optional<string>;
interrupts: Array<{ value: unknown; when: "during" }>;
interrupts: Array<{
value: unknown;
when: "during";
resumable: boolean;
ns?: string[];
}>;
checkpoint: Optional<Checkpoint>;
state: Optional<ThreadState>;
}
Expand Down

0 comments on commit 81077e7

Please sign in to comment.