Big News: Socket raises $60M Series C at a $1B valuation to secure software supply chains for AI-driven development.Announcement
Sign In

@langchain/protocol

Package Overview
Dependencies
Maintainers
13
Versions
17
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@langchain/protocol - npm Package Compare versions

Comparing version
0.0.15
to
0.0.16
+1
-1
package.json
{
"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",

@@ -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;