mirror of
https://github.com/langchain-ai/langgraph.git
synced 2026-08-29 11:19:54 +02:00
Merge pull request #2458 from langchain-ai/brace/expose-command-interface
fix(sdk-js): Expose Command interface
This commit is contained in:
@@ -17,4 +17,4 @@ export type {
|
||||
Checkpoint,
|
||||
} from "./schema.js";
|
||||
|
||||
export type { OnConflictBehavior } from "./types.js";
|
||||
export type { OnConflictBehavior, Command } from "./types.js";
|
||||
|
||||
@@ -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[];
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user