@langchain/protocol
Advanced tools
+1
-1
| { | ||
| "name": "@langchain/protocol", | ||
| "version": "0.0.14", | ||
| "version": "0.0.15", | ||
| "description": "TypeScript bindings for the LangChain agent streaming protocol", | ||
@@ -5,0 +5,0 @@ "license": "MIT", |
+8
-8
@@ -333,3 +333,3 @@ // ========================================================================== | ||
| // Thread IDs may be client-generated (UUID) or server-assigned. The | ||
| // server creates the thread lazily on the first `run.input` if it does | ||
| // server creates the thread lazily on the first `run.start` if it does | ||
| // not already exist. | ||
@@ -348,3 +348,3 @@ // Transport endpoints: | ||
| // is persisted on the server. Event streams can be opened before or after | ||
| // `run.input`; streams opened before a run exists stay idle until events | ||
| // `run.start`; streams opened before a run exists stay idle until events | ||
| // are produced. | ||
@@ -366,3 +366,3 @@ // **WebSocket:** Subscriptions are managed via in-band | ||
| // 4a. Run Module | ||
| // `run.input` is the single entry point for all input to the graph. | ||
| // `run.start` is the single entry point for all input to the graph. | ||
| // The thread manages a state machine: | ||
@@ -379,10 +379,10 @@ // - No active run → starts a new run with the provided input | ||
| export type RunCommand = RunInput; | ||
| export type RunCommand = RunStart; | ||
| export interface RunInput { | ||
| method: "run.input"; | ||
| params: RunInputParams; | ||
| export interface RunStart { | ||
| method: "run.start"; | ||
| params: RunStartParams; | ||
| } | ||
| export interface RunInputParams { | ||
| export interface RunStartParams { | ||
| /** | ||
@@ -389,0 +389,0 @@ * Deployed graph/agent to run |