@langchain/protocol
Advanced tools
+2
-2
| { | ||
| "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", | ||
| } | ||
| } | ||
| } |
+49
-1
@@ -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 @@ */ |
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
41183
3.72%1085
4.23%1
Infinity%