🎩 You're Invited:Meet the Socket team at Black Hat in Las Vegas, August 3-6.RSVP
Sign In

@langchain/protocol

Package Overview
Dependencies
Maintainers
2
Versions
19
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.16
to
0.0.17
+2
-2
package.json
{
"name": "@langchain/protocol",
"version": "0.0.16",
"version": "0.0.17",
"description": "TypeScript bindings for the LangChain agent streaming protocol",

@@ -30,2 +30,2 @@ "license": "MIT",

}
}
}

@@ -761,2 +761,4 @@ // ==========================================================================

// Breakdown of input token counts. Keys are optional and need not sum to
// inputTokens; may also hold extra provider-specific keys.
export type MessageFinishData = Extensible & {

@@ -770,2 +772,15 @@ event: "message-finish";

// Breakdown of output token counts. Keys are optional and need not sum to
// outputTokens; may also hold extra provider-specific keys.
export type InputTokenDetails = Extensible & {
audio?: number;
cache_creation?: number;
cache_read?: number;
};
export type OutputTokenDetails = Extensible & {
audio?: number;
reasoning?: number;
};
// Emitted on unrecoverable errors within a model call.

@@ -776,2 +791,4 @@ export type UsageInfo = Extensible & {

total_tokens?: number;
input_token_details?: InputTokenDetails;
output_token_details?: OutputTokenDetails;
};

@@ -862,5 +879,20 @@

// Single-interrupt resume.
// A directed jump applied alongside a resume, mapped to LangGraph's
// Command(goto=...). Either a target node name, a Send (a node plus the
// per-send input handed to it), or a list mixing the two for fan-out.
export type InputRespondParams = InputRespondOne | InputRespondMany;
export interface RunSend {
/**
* Target graph node
*/
node: string;
/**
* Per-send input passed to the node
*/
input?: any;
}
export type Goto = string | RunSend | (string | RunSend)[];
// Batch resume — one entry per interrupt, resumed in a single run.

@@ -872,2 +904,10 @@ export interface InputRespondOne {

/**
* State update applied in the same superstep as the resume (LangGraph Command(update=...))
*/
update?: Record<string, any>;
/**
* Directed jump applied in the same superstep as the resume (LangGraph Command(goto=...))
*/
goto?: Goto;
/**
* Per-run config overrides

@@ -885,2 +925,10 @@ */

/**
* State update applied in the same superstep as the resume (LangGraph Command(update=...))
*/
update?: Record<string, any>;
/**
* Directed jump applied in the same superstep as the resume (LangGraph Command(goto=...))
*/
goto?: Goto;
/**
* Per-run config overrides

@@ -887,0 +935,0 @@ */