@langchain/protocol
Advanced tools
+1
-1
| { | ||
| "name": "@langchain/protocol", | ||
| "version": "0.0.15", | ||
| "version": "0.0.16", | ||
| "description": "TypeScript bindings for the LangChain agent streaming protocol", | ||
@@ -5,0 +5,0 @@ "license": "MIT", |
+37
-1
@@ -848,2 +848,8 @@ // ========================================================================== | ||
| // A respond command resolves either a single interrupt or several | ||
| // interrupts that are pending at the same checkpoint (e.g. parallel | ||
| // tool-authorization prompts). The batch form is required because | ||
| // sequential single resumes cannot do this: the first resume starts a | ||
| // run, leaving the remaining interrupts with no interrupted run to | ||
| // respond to. | ||
| export interface InputRespond { | ||
@@ -854,4 +860,34 @@ method: "input.respond"; | ||
| // Single-interrupt resume. | ||
| export type InputRespondParams = InputRespondOne | InputRespondMany; | ||
| // Batch resume — one entry per interrupt, resumed in a single run. | ||
| export interface InputRespondOne { | ||
| namespace: Namespace; | ||
| interrupt_id: string; | ||
| response: any; | ||
| /** | ||
| * Per-run config overrides | ||
| */ | ||
| config?: Record<string, any>; | ||
| /** | ||
| * Per-run metadata | ||
| */ | ||
| metadata?: Record<string, any>; | ||
| } | ||
| export interface InputRespondMany { | ||
| responses: InputRespondEntry[]; | ||
| /** | ||
| * Per-run config overrides | ||
| */ | ||
| config?: Record<string, any>; | ||
| /** | ||
| * Per-run metadata | ||
| */ | ||
| metadata?: Record<string, any>; | ||
| } | ||
| // --- input.inject --- | ||
| export interface InputRespondParams { | ||
| export interface InputRespondEntry { | ||
| namespace: Namespace; | ||
@@ -858,0 +894,0 @@ interrupt_id: string; |
39706
2.54%1041
3.27%