Merge pull request #2458 from langchain-ai/brace/expose-command-interface

fix(sdk-js): Expose Command interface
This commit is contained in:
Brace Sproul
2024-11-18 18:54:19 -08:00
committed by GitHub
2 changed files with 10 additions and 1 deletions
+1 -1
View File
@@ -17,4 +17,4 @@ export type {
Checkpoint,
} from "./schema.js";
export type { OnConflictBehavior } from "./types.js";
export type { OnConflictBehavior, Command } from "./types.js";
+9
View File
@@ -29,10 +29,19 @@ export interface Send {
}
export interface Command {
/**
* An object to update the thread state with.
*/
update?: Record<string, unknown>;
/**
* The value to return from an `interrupt` function call.
*/
resume?: unknown;
/**
* A single, or array of `Send` commands to trigger nodes.
*/
send?: Send | Send[];
}