@langchain/langgraph-sdk 1.4.4 → 1.4.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/_virtual/rolldown_runtime.cjs +29 -0
- package/dist/auth/error.cjs +79 -0
- package/dist/auth/error.cjs.map +1 -0
- package/dist/auth/error.d.cts +13 -0
- package/dist/auth/error.d.cts.map +1 -0
- package/dist/auth/error.d.ts +13 -0
- package/dist/auth/error.d.ts.map +1 -0
- package/dist/auth/error.js +78 -0
- package/dist/auth/error.js.map +1 -0
- package/dist/auth/index.cjs +39 -0
- package/dist/auth/index.cjs.map +1 -0
- package/dist/auth/index.d.cts +29 -0
- package/dist/auth/index.d.cts.map +1 -0
- package/dist/auth/index.d.ts +29 -0
- package/dist/auth/index.d.ts.map +1 -0
- package/dist/auth/index.js +37 -0
- package/dist/auth/index.js.map +1 -0
- package/dist/auth/types.d.cts +294 -0
- package/dist/auth/types.d.cts.map +1 -0
- package/dist/auth/types.d.ts +294 -0
- package/dist/auth/types.d.ts.map +1 -0
- package/dist/client.cjs +1210 -0
- package/dist/client.cjs.map +1 -0
- package/dist/client.d.cts +799 -0
- package/dist/client.d.cts.map +1 -0
- package/dist/client.d.ts +799 -0
- package/dist/client.d.ts.map +1 -0
- package/dist/client.js +1203 -0
- package/dist/client.js.map +1 -0
- package/dist/index.cjs +6 -0
- package/dist/index.d.cts +8 -0
- package/dist/index.d.ts +8 -0
- package/dist/index.js +4 -0
- package/dist/logging/index.cjs +35 -0
- package/dist/logging/index.cjs.map +1 -0
- package/dist/logging/index.d.cts +46 -0
- package/dist/logging/index.d.cts.map +1 -0
- package/dist/logging/index.d.ts +46 -0
- package/dist/logging/index.d.ts.map +1 -0
- package/dist/logging/index.js +34 -0
- package/dist/logging/index.js.map +1 -0
- package/dist/react/index.cjs +5 -0
- package/dist/react/index.d.cts +5 -0
- package/dist/react/index.d.ts +5 -0
- package/dist/react/index.js +4 -0
- package/dist/react/stream.cjs +18 -0
- package/dist/react/stream.cjs.map +1 -0
- package/dist/react/stream.custom.cjs +135 -0
- package/dist/react/stream.custom.cjs.map +1 -0
- package/dist/react/stream.custom.d.cts +40 -0
- package/dist/react/stream.custom.d.cts.map +1 -0
- package/dist/react/stream.custom.d.ts +40 -0
- package/dist/react/stream.custom.d.ts.map +1 -0
- package/dist/react/stream.custom.js +133 -0
- package/dist/react/stream.custom.js.map +1 -0
- package/dist/react/stream.d.cts +155 -0
- package/dist/react/stream.d.cts.map +1 -0
- package/dist/react/stream.d.ts +155 -0
- package/dist/react/stream.d.ts.map +1 -0
- package/dist/react/stream.js +17 -0
- package/dist/react/stream.js.map +1 -0
- package/dist/react/stream.lgp.cjs +448 -0
- package/dist/react/stream.lgp.cjs.map +1 -0
- package/dist/react/stream.lgp.js +447 -0
- package/dist/react/stream.lgp.js.map +1 -0
- package/dist/react/thread.cjs +21 -0
- package/dist/react/thread.cjs.map +1 -0
- package/dist/react/thread.js +20 -0
- package/dist/react/thread.js.map +1 -0
- package/dist/react/types.d.cts +152 -0
- package/dist/react/types.d.cts.map +1 -0
- package/dist/react/types.d.ts +152 -0
- package/dist/react/types.d.ts.map +1 -0
- package/dist/react-ui/client.cjs +138 -0
- package/dist/react-ui/client.cjs.map +1 -0
- package/dist/react-ui/client.d.cts +73 -0
- package/dist/react-ui/client.d.cts.map +1 -0
- package/dist/react-ui/client.d.ts +73 -0
- package/dist/react-ui/client.d.ts.map +1 -0
- package/dist/react-ui/client.js +132 -0
- package/dist/react-ui/client.js.map +1 -0
- package/dist/react-ui/index.cjs +14 -0
- package/dist/react-ui/index.cjs.map +1 -0
- package/dist/react-ui/index.d.cts +3 -0
- package/dist/react-ui/index.d.ts +3 -0
- package/dist/react-ui/index.js +9 -0
- package/dist/react-ui/index.js.map +1 -0
- package/dist/react-ui/server/index.cjs +5 -0
- package/dist/react-ui/server/index.d.cts +3 -0
- package/dist/react-ui/server/index.d.ts +3 -0
- package/dist/react-ui/server/index.js +4 -0
- package/dist/react-ui/server/server.cjs +57 -0
- package/dist/react-ui/server/server.cjs.map +1 -0
- package/dist/react-ui/server/server.d.cts +55 -0
- package/dist/react-ui/server/server.d.cts.map +1 -0
- package/dist/react-ui/server/server.d.ts +55 -0
- package/dist/react-ui/server/server.d.ts.map +1 -0
- package/dist/react-ui/server/server.js +56 -0
- package/dist/react-ui/server/server.js.map +1 -0
- package/dist/react-ui/types.cjs +38 -0
- package/dist/react-ui/types.cjs.map +1 -0
- package/dist/react-ui/types.d.cts +25 -0
- package/dist/react-ui/types.d.cts.map +1 -0
- package/dist/react-ui/types.d.ts +25 -0
- package/dist/react-ui/types.d.ts.map +1 -0
- package/dist/react-ui/types.js +35 -0
- package/dist/react-ui/types.js.map +1 -0
- package/dist/schema.d.cts +284 -0
- package/dist/schema.d.cts.map +1 -0
- package/dist/schema.d.ts +284 -0
- package/dist/schema.d.ts.map +1 -0
- package/dist/singletons/fetch.cjs +24 -0
- package/dist/singletons/fetch.cjs.map +1 -0
- package/dist/singletons/fetch.d.cts +14 -0
- package/dist/singletons/fetch.d.cts.map +1 -0
- package/dist/singletons/fetch.d.ts +14 -0
- package/dist/singletons/fetch.d.ts.map +1 -0
- package/dist/singletons/fetch.js +22 -0
- package/dist/singletons/fetch.js.map +1 -0
- package/dist/types.d.cts +187 -0
- package/dist/types.d.cts.map +1 -0
- package/dist/types.d.ts +187 -0
- package/dist/types.d.ts.map +1 -0
- package/dist/types.messages.d.cts +264 -0
- package/dist/types.messages.d.cts.map +1 -0
- package/dist/types.messages.d.ts +264 -0
- package/dist/types.messages.d.ts.map +1 -0
- package/dist/types.stream.d.cts +233 -0
- package/dist/types.stream.d.cts.map +1 -0
- package/dist/types.stream.d.ts +233 -0
- package/dist/types.stream.d.ts.map +1 -0
- package/dist/types.template.d.cts +19 -0
- package/dist/types.template.d.cts.map +1 -0
- package/dist/types.template.d.ts +19 -0
- package/dist/types.template.d.ts.map +1 -0
- package/dist/ui/branching.cjs +153 -0
- package/dist/ui/branching.cjs.map +1 -0
- package/dist/ui/branching.d.cts +19 -0
- package/dist/ui/branching.d.cts.map +1 -0
- package/dist/ui/branching.d.ts +19 -0
- package/dist/ui/branching.d.ts.map +1 -0
- package/dist/ui/branching.js +152 -0
- package/dist/ui/branching.js.map +1 -0
- package/dist/ui/errors.cjs +15 -0
- package/dist/ui/errors.cjs.map +1 -0
- package/dist/ui/errors.js +14 -0
- package/dist/ui/errors.js.map +1 -0
- package/dist/ui/manager.cjs +188 -0
- package/dist/ui/manager.cjs.map +1 -0
- package/dist/ui/manager.js +188 -0
- package/dist/ui/manager.js.map +1 -0
- package/dist/ui/messages.cjs +70 -0
- package/dist/ui/messages.cjs.map +1 -0
- package/dist/ui/messages.js +68 -0
- package/dist/ui/messages.js.map +1 -0
- package/dist/ui/types.d.cts +420 -0
- package/dist/ui/types.d.cts.map +1 -0
- package/dist/ui/types.d.ts +420 -0
- package/dist/ui/types.d.ts.map +1 -0
- package/dist/ui/utils.cjs +13 -0
- package/dist/ui/utils.cjs.map +1 -0
- package/dist/ui/utils.js +11 -0
- package/dist/ui/utils.js.map +1 -0
- package/dist/utils/async_caller.cjs +119 -0
- package/dist/utils/async_caller.cjs.map +1 -0
- package/dist/utils/async_caller.d.cts +51 -0
- package/dist/utils/async_caller.d.cts.map +1 -0
- package/dist/utils/async_caller.d.ts +51 -0
- package/dist/utils/async_caller.d.ts.map +1 -0
- package/dist/utils/async_caller.js +116 -0
- package/dist/utils/async_caller.js.map +1 -0
- package/dist/utils/env.cjs +13 -0
- package/dist/utils/env.cjs.map +1 -0
- package/dist/utils/env.js +12 -0
- package/dist/utils/env.js.map +1 -0
- package/dist/utils/error.cjs +17 -0
- package/dist/utils/error.cjs.map +1 -0
- package/dist/utils/error.js +16 -0
- package/dist/utils/error.js.map +1 -0
- package/dist/utils/signals.cjs +20 -0
- package/dist/utils/signals.cjs.map +1 -0
- package/dist/utils/signals.js +19 -0
- package/dist/utils/signals.js.map +1 -0
- package/dist/utils/sse.cjs +124 -0
- package/dist/utils/sse.cjs.map +1 -0
- package/dist/utils/sse.js +122 -0
- package/dist/utils/sse.js.map +1 -0
- package/dist/utils/stream.cjs +174 -0
- package/dist/utils/stream.cjs.map +1 -0
- package/dist/utils/stream.js +173 -0
- package/dist/utils/stream.js.map +1 -0
- package/dist/utils/tools.cjs +52 -0
- package/dist/utils/tools.cjs.map +1 -0
- package/dist/utils/tools.js +51 -0
- package/dist/utils/tools.js.map +1 -0
- package/package.json +1 -1
|
@@ -0,0 +1,264 @@
|
|
|
1
|
+
//#region src/types.messages.d.ts
|
|
2
|
+
type ImageDetail = "auto" | "low" | "high";
|
|
3
|
+
type MessageContentImageUrl = {
|
|
4
|
+
type: "image_url";
|
|
5
|
+
image_url: string | {
|
|
6
|
+
url: string;
|
|
7
|
+
detail?: ImageDetail | undefined;
|
|
8
|
+
};
|
|
9
|
+
};
|
|
10
|
+
type MessageContentText = {
|
|
11
|
+
type: "text";
|
|
12
|
+
text: string;
|
|
13
|
+
};
|
|
14
|
+
type MessageContentComplex = MessageContentText | MessageContentImageUrl;
|
|
15
|
+
type MessageContent = string | MessageContentComplex[];
|
|
16
|
+
/**
|
|
17
|
+
* Model-specific additional kwargs, which is passed back to the underlying LLM.
|
|
18
|
+
*/
|
|
19
|
+
type MessageAdditionalKwargs = Record<string, unknown>;
|
|
20
|
+
type BaseMessage = {
|
|
21
|
+
additional_kwargs?: MessageAdditionalKwargs | undefined;
|
|
22
|
+
content: MessageContent;
|
|
23
|
+
id?: string | undefined;
|
|
24
|
+
name?: string | undefined;
|
|
25
|
+
response_metadata?: Record<string, unknown> | undefined;
|
|
26
|
+
};
|
|
27
|
+
type HumanMessage = BaseMessage & {
|
|
28
|
+
type: "human";
|
|
29
|
+
example?: boolean | undefined;
|
|
30
|
+
};
|
|
31
|
+
/**
|
|
32
|
+
* Default tool call type when no specific tool definitions are provided.
|
|
33
|
+
*/
|
|
34
|
+
type DefaultToolCall = {
|
|
35
|
+
name: string;
|
|
36
|
+
args: {
|
|
37
|
+
[x: string]: any;
|
|
38
|
+
};
|
|
39
|
+
id?: string | undefined;
|
|
40
|
+
type?: "tool_call" | undefined;
|
|
41
|
+
};
|
|
42
|
+
/**
|
|
43
|
+
* Invalid tool call type.
|
|
44
|
+
*/
|
|
45
|
+
type InvalidToolCall = {
|
|
46
|
+
name?: string | undefined;
|
|
47
|
+
args?: string | undefined;
|
|
48
|
+
id?: string | undefined;
|
|
49
|
+
error?: string | undefined;
|
|
50
|
+
type?: "invalid_tool_call" | undefined;
|
|
51
|
+
};
|
|
52
|
+
/**
|
|
53
|
+
* Usage metadata for AI messages.
|
|
54
|
+
*/
|
|
55
|
+
type UsageMetadata = {
|
|
56
|
+
input_tokens: number;
|
|
57
|
+
output_tokens: number;
|
|
58
|
+
total_tokens: number;
|
|
59
|
+
input_token_details?: {
|
|
60
|
+
audio?: number | undefined;
|
|
61
|
+
cache_read?: number | undefined;
|
|
62
|
+
cache_creation?: number | undefined;
|
|
63
|
+
} | undefined;
|
|
64
|
+
output_token_details?: {
|
|
65
|
+
audio?: number | undefined;
|
|
66
|
+
reasoning?: number | undefined;
|
|
67
|
+
} | undefined;
|
|
68
|
+
};
|
|
69
|
+
/**
|
|
70
|
+
* AI message type that can be parameterized with custom tool call types.
|
|
71
|
+
*
|
|
72
|
+
* @template ToolCall The type of tool calls, defaults to DefaultToolCall.
|
|
73
|
+
* Provide a discriminated union for type-safe tool call handling.
|
|
74
|
+
*
|
|
75
|
+
* @example
|
|
76
|
+
* ```ts
|
|
77
|
+
* // Define typed tool calls as a discriminated union
|
|
78
|
+
* type MyToolCalls =
|
|
79
|
+
* | { name: "get_weather"; args: { location: string }; id?: string }
|
|
80
|
+
* | { name: "search"; args: { query: string; limit?: number }; id?: string };
|
|
81
|
+
*
|
|
82
|
+
* // Use with AIMessage
|
|
83
|
+
* const message: AIMessage<MyToolCalls> = ...;
|
|
84
|
+
*
|
|
85
|
+
* // Now tool.name === "get_weather" narrows tool.args type
|
|
86
|
+
* if (message.tool_calls) {
|
|
87
|
+
* for (const tool of message.tool_calls) {
|
|
88
|
+
* if (tool.name === "get_weather") {
|
|
89
|
+
* // tool.args is now { location: string }
|
|
90
|
+
* console.log(tool.args.location);
|
|
91
|
+
* }
|
|
92
|
+
* }
|
|
93
|
+
* }
|
|
94
|
+
* ```
|
|
95
|
+
*/
|
|
96
|
+
type AIMessage<ToolCall = DefaultToolCall> = BaseMessage & {
|
|
97
|
+
type: "ai";
|
|
98
|
+
example?: boolean | undefined;
|
|
99
|
+
tool_calls?: ToolCall[] | undefined;
|
|
100
|
+
invalid_tool_calls?: InvalidToolCall[] | undefined;
|
|
101
|
+
usage_metadata?: UsageMetadata | undefined;
|
|
102
|
+
};
|
|
103
|
+
type ToolMessage = BaseMessage & {
|
|
104
|
+
type: "tool";
|
|
105
|
+
status?: "error" | "success" | undefined;
|
|
106
|
+
tool_call_id: string;
|
|
107
|
+
/**
|
|
108
|
+
* Artifact of the Tool execution which is not meant to be sent to the model.
|
|
109
|
+
*
|
|
110
|
+
* Should only be specified if it is different from the message content, e.g. if only
|
|
111
|
+
* a subset of the full tool output is being passed as message content but the full
|
|
112
|
+
* output is needed in other parts of the code.
|
|
113
|
+
*/
|
|
114
|
+
artifact?: any;
|
|
115
|
+
};
|
|
116
|
+
type SystemMessage = BaseMessage & {
|
|
117
|
+
type: "system";
|
|
118
|
+
};
|
|
119
|
+
type FunctionMessage = BaseMessage & {
|
|
120
|
+
type: "function";
|
|
121
|
+
};
|
|
122
|
+
type RemoveMessage = BaseMessage & {
|
|
123
|
+
type: "remove";
|
|
124
|
+
};
|
|
125
|
+
/**
|
|
126
|
+
* Union of all message types.
|
|
127
|
+
*
|
|
128
|
+
* @template ToolCall The type of tool calls for AIMessage, defaults to DefaultToolCall.
|
|
129
|
+
*/
|
|
130
|
+
type Message<ToolCall = DefaultToolCall> = HumanMessage | AIMessage<ToolCall> | ToolMessage | SystemMessage | FunctionMessage | RemoveMessage;
|
|
131
|
+
/**
|
|
132
|
+
* Helper type to infer schema input type, supporting both Zod v3 and v4.
|
|
133
|
+
* - Zod v4 uses `_zod.input` property
|
|
134
|
+
* - Zod v3 uses `_input` property
|
|
135
|
+
*
|
|
136
|
+
* Note: Zod v4 is checked first as it's the more specific structure.
|
|
137
|
+
*/
|
|
138
|
+
type InferSchemaInput<S> = S extends {
|
|
139
|
+
_zod: {
|
|
140
|
+
input: infer Args;
|
|
141
|
+
};
|
|
142
|
+
} ? Args : S extends {
|
|
143
|
+
_input: infer Args;
|
|
144
|
+
} ? Args : never;
|
|
145
|
+
/**
|
|
146
|
+
* Helper type to extract the input type from a DynamicStructuredTool's _call method.
|
|
147
|
+
* This is more reliable than trying to infer from the schema directly because
|
|
148
|
+
* DynamicStructuredTool has the input type baked into its _call signature.
|
|
149
|
+
*/
|
|
150
|
+
type InferToolInput<T> = T extends {
|
|
151
|
+
_call: (arg: infer Args, ...rest: any[]) => any;
|
|
152
|
+
} ? Args : T extends {
|
|
153
|
+
schema: infer S;
|
|
154
|
+
} ? InferSchemaInput<S> : never;
|
|
155
|
+
/**
|
|
156
|
+
* Infer a tool call type from a single tool.
|
|
157
|
+
* Works with tools created via `tool()` from `@langchain/core/tools`.
|
|
158
|
+
*
|
|
159
|
+
* For DynamicStructuredTool, this extracts the input type from the _call method,
|
|
160
|
+
* which is the most reliable source as it's the pre-computed input type.
|
|
161
|
+
*
|
|
162
|
+
* @template T The tool type (e.g., DynamicStructuredTool)
|
|
163
|
+
*
|
|
164
|
+
* @example
|
|
165
|
+
* ```ts
|
|
166
|
+
* import { tool } from "@langchain/core/tools";
|
|
167
|
+
* import { z } from "zod";
|
|
168
|
+
*
|
|
169
|
+
* const getWeather = tool(
|
|
170
|
+
* async ({ location }) => `Weather in ${location}`,
|
|
171
|
+
* { name: "get_weather", schema: z.object({ location: z.string() }) }
|
|
172
|
+
* );
|
|
173
|
+
*
|
|
174
|
+
* // Infer: { name: "get_weather"; args: { location: string }; id?: string; type?: "tool_call" }
|
|
175
|
+
* type WeatherToolCall = ToolCallFromTool<typeof getWeather>;
|
|
176
|
+
* ```
|
|
177
|
+
*/
|
|
178
|
+
type ToolCallFromTool<T> = T extends {
|
|
179
|
+
name: infer N;
|
|
180
|
+
} ? InferToolInput<T> extends infer Args ? Args extends never ? never : Args extends Record<string, any> ? {
|
|
181
|
+
name: N;
|
|
182
|
+
args: Args;
|
|
183
|
+
id?: string;
|
|
184
|
+
type?: "tool_call";
|
|
185
|
+
} : never : never : never;
|
|
186
|
+
/**
|
|
187
|
+
* Infer a union of tool call types from an array of tools.
|
|
188
|
+
* Works with tools created via `tool()` from `@langchain/core/tools`.
|
|
189
|
+
*
|
|
190
|
+
* @template T A tuple/array of tools
|
|
191
|
+
*
|
|
192
|
+
* @example
|
|
193
|
+
* ```ts
|
|
194
|
+
* import { tool } from "@langchain/core/tools";
|
|
195
|
+
* import { z } from "zod";
|
|
196
|
+
*
|
|
197
|
+
* const getWeather = tool(
|
|
198
|
+
* async ({ location }) => `Weather in ${location}`,
|
|
199
|
+
* { name: "get_weather", schema: z.object({ location: z.string() }) }
|
|
200
|
+
* );
|
|
201
|
+
*
|
|
202
|
+
* const search = tool(
|
|
203
|
+
* async ({ query }) => `Results for ${query}`,
|
|
204
|
+
* { name: "search", schema: z.object({ query: z.string() }) }
|
|
205
|
+
* );
|
|
206
|
+
*
|
|
207
|
+
* const tools = [getWeather, search] as const;
|
|
208
|
+
*
|
|
209
|
+
* // Infer union:
|
|
210
|
+
* // | { name: "get_weather"; args: { location: string }; id?: string; type?: "tool_call" }
|
|
211
|
+
* // | { name: "search"; args: { query: string }; id?: string; type?: "tool_call" }
|
|
212
|
+
* type MyToolCalls = ToolCallsFromTools<typeof tools>;
|
|
213
|
+
* ```
|
|
214
|
+
*/
|
|
215
|
+
type ToolCallsFromTools<T extends readonly unknown[]> = T extends readonly [infer First, ...infer Rest] ? ToolCallFromTool<First> | ToolCallsFromTools<Rest> : never;
|
|
216
|
+
/**
|
|
217
|
+
* The lifecycle state of a tool call.
|
|
218
|
+
*
|
|
219
|
+
* - `pending`: Tool call received, awaiting result
|
|
220
|
+
* - `completed`: Tool execution finished successfully
|
|
221
|
+
* - `error`: Tool execution failed (result.status === "error")
|
|
222
|
+
*/
|
|
223
|
+
type ToolCallState = "pending" | "completed" | "error";
|
|
224
|
+
/**
|
|
225
|
+
* Represents a tool call paired with its result.
|
|
226
|
+
* Useful for rendering tool invocations and their outputs together.
|
|
227
|
+
*
|
|
228
|
+
* @template ToolCall The type of the tool call.
|
|
229
|
+
*/
|
|
230
|
+
type ToolCallWithResult<ToolCall = DefaultToolCall> = {
|
|
231
|
+
/**
|
|
232
|
+
* Unique identifier for this tool call.
|
|
233
|
+
* Uses the tool call's id if available, otherwise generates one from aiMessage.id and index.
|
|
234
|
+
*/
|
|
235
|
+
id: string;
|
|
236
|
+
/**
|
|
237
|
+
* The tool call from the AI message.
|
|
238
|
+
*/
|
|
239
|
+
call: ToolCall;
|
|
240
|
+
/**
|
|
241
|
+
* The result message from tool execution.
|
|
242
|
+
* `undefined` if the tool is still being executed or no result was received.
|
|
243
|
+
*/
|
|
244
|
+
result: ToolMessage | undefined;
|
|
245
|
+
/**
|
|
246
|
+
* The AI message that initiated this tool call.
|
|
247
|
+
*/
|
|
248
|
+
aiMessage: AIMessage<ToolCall>;
|
|
249
|
+
/**
|
|
250
|
+
* Index of this tool call within the AI message's tool_calls array.
|
|
251
|
+
*/
|
|
252
|
+
index: number;
|
|
253
|
+
/**
|
|
254
|
+
* The current lifecycle state of the tool call.
|
|
255
|
+
*
|
|
256
|
+
* - `pending`: No result yet
|
|
257
|
+
* - `completed`: Has result with success status
|
|
258
|
+
* - `error`: Has result with error status
|
|
259
|
+
*/
|
|
260
|
+
state: ToolCallState;
|
|
261
|
+
};
|
|
262
|
+
//#endregion
|
|
263
|
+
export { AIMessage, DefaultToolCall, FunctionMessage, HumanMessage, Message, RemoveMessage, SystemMessage, ToolCallFromTool, ToolCallState, ToolCallWithResult, ToolCallsFromTools, ToolMessage };
|
|
264
|
+
//# sourceMappingURL=types.messages.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.messages.d.ts","names":["ImageDetail","MessageContentImageUrl","MessageContentText","MessageContentComplex","MessageContent","MessageAdditionalKwargs","Record","BaseMessage","HumanMessage","DefaultToolCall","InvalidToolCall","UsageMetadata","AIMessage","ToolCall","ToolMessage","SystemMessage","FunctionMessage","RemoveMessage","Message","InferSchemaInput","S","Args","InferToolInput","T","ToolCallFromTool","N","ToolCallsFromTools","First","Rest","ToolCallState","ToolCallWithResult"],"sources":["../src/types.messages.d.ts"],"sourcesContent":["type ImageDetail = \"auto\" | \"low\" | \"high\";\ntype MessageContentImageUrl = {\n type: \"image_url\";\n image_url: string | {\n url: string;\n detail?: ImageDetail | undefined;\n };\n};\ntype MessageContentText = {\n type: \"text\";\n text: string;\n};\ntype MessageContentComplex = MessageContentText | MessageContentImageUrl;\ntype MessageContent = string | MessageContentComplex[];\n/**\n * Model-specific additional kwargs, which is passed back to the underlying LLM.\n */\ntype MessageAdditionalKwargs = Record<string, unknown>;\ntype BaseMessage = {\n additional_kwargs?: MessageAdditionalKwargs | undefined;\n content: MessageContent;\n id?: string | undefined;\n name?: string | undefined;\n response_metadata?: Record<string, unknown> | undefined;\n};\nexport type HumanMessage = BaseMessage & {\n type: \"human\";\n example?: boolean | undefined;\n};\n/**\n * Default tool call type when no specific tool definitions are provided.\n */\nexport type DefaultToolCall = {\n name: string;\n args: {\n [x: string]: any;\n };\n id?: string | undefined;\n type?: \"tool_call\" | undefined;\n};\n/**\n * Invalid tool call type.\n */\nexport type InvalidToolCall = {\n name?: string | undefined;\n args?: string | undefined;\n id?: string | undefined;\n error?: string | undefined;\n type?: \"invalid_tool_call\" | undefined;\n};\n/**\n * Usage metadata for AI messages.\n */\nexport type UsageMetadata = {\n input_tokens: number;\n output_tokens: number;\n total_tokens: number;\n input_token_details?: {\n audio?: number | undefined;\n cache_read?: number | undefined;\n cache_creation?: number | undefined;\n } | undefined;\n output_token_details?: {\n audio?: number | undefined;\n reasoning?: number | undefined;\n } | undefined;\n};\n/**\n * AI message type that can be parameterized with custom tool call types.\n *\n * @template ToolCall The type of tool calls, defaults to DefaultToolCall.\n * Provide a discriminated union for type-safe tool call handling.\n *\n * @example\n * ```ts\n * // Define typed tool calls as a discriminated union\n * type MyToolCalls =\n * | { name: \"get_weather\"; args: { location: string }; id?: string }\n * | { name: \"search\"; args: { query: string; limit?: number }; id?: string };\n *\n * // Use with AIMessage\n * const message: AIMessage<MyToolCalls> = ...;\n *\n * // Now tool.name === \"get_weather\" narrows tool.args type\n * if (message.tool_calls) {\n * for (const tool of message.tool_calls) {\n * if (tool.name === \"get_weather\") {\n * // tool.args is now { location: string }\n * console.log(tool.args.location);\n * }\n * }\n * }\n * ```\n */\nexport type AIMessage<ToolCall = DefaultToolCall> = BaseMessage & {\n type: \"ai\";\n example?: boolean | undefined;\n tool_calls?: ToolCall[] | undefined;\n invalid_tool_calls?: InvalidToolCall[] | undefined;\n usage_metadata?: UsageMetadata | undefined;\n};\nexport type ToolMessage = BaseMessage & {\n type: \"tool\";\n status?: \"error\" | \"success\" | undefined;\n tool_call_id: string;\n /**\n * Artifact of the Tool execution which is not meant to be sent to the model.\n *\n * Should only be specified if it is different from the message content, e.g. if only\n * a subset of the full tool output is being passed as message content but the full\n * output is needed in other parts of the code.\n */\n artifact?: any;\n};\nexport type SystemMessage = BaseMessage & {\n type: \"system\";\n};\nexport type FunctionMessage = BaseMessage & {\n type: \"function\";\n};\nexport type RemoveMessage = BaseMessage & {\n type: \"remove\";\n};\n/**\n * Union of all message types.\n *\n * @template ToolCall The type of tool calls for AIMessage, defaults to DefaultToolCall.\n */\nexport type Message<ToolCall = DefaultToolCall> = HumanMessage | AIMessage<ToolCall> | ToolMessage | SystemMessage | FunctionMessage | RemoveMessage;\n/**\n * Helper type to infer schema input type, supporting both Zod v3 and v4.\n * - Zod v4 uses `_zod.input` property\n * - Zod v3 uses `_input` property\n *\n * Note: Zod v4 is checked first as it's the more specific structure.\n */\ntype InferSchemaInput<S> = S extends {\n _zod: {\n input: infer Args;\n };\n} ? Args : S extends {\n _input: infer Args;\n} ? Args : never;\n/**\n * Helper type to extract the input type from a DynamicStructuredTool's _call method.\n * This is more reliable than trying to infer from the schema directly because\n * DynamicStructuredTool has the input type baked into its _call signature.\n */\ntype InferToolInput<T> = T extends {\n _call: (arg: infer Args, ...rest: any[]) => any;\n} ? Args : T extends {\n schema: infer S;\n} ? InferSchemaInput<S> : never;\n/**\n * Infer a tool call type from a single tool.\n * Works with tools created via `tool()` from `@langchain/core/tools`.\n *\n * For DynamicStructuredTool, this extracts the input type from the _call method,\n * which is the most reliable source as it's the pre-computed input type.\n *\n * @template T The tool type (e.g., DynamicStructuredTool)\n *\n * @example\n * ```ts\n * import { tool } from \"@langchain/core/tools\";\n * import { z } from \"zod\";\n *\n * const getWeather = tool(\n * async ({ location }) => `Weather in ${location}`,\n * { name: \"get_weather\", schema: z.object({ location: z.string() }) }\n * );\n *\n * // Infer: { name: \"get_weather\"; args: { location: string }; id?: string; type?: \"tool_call\" }\n * type WeatherToolCall = ToolCallFromTool<typeof getWeather>;\n * ```\n */\nexport type ToolCallFromTool<T> = T extends {\n name: infer N;\n} ? InferToolInput<T> extends infer Args ? Args extends never ? never : Args extends Record<string, any> ? {\n name: N;\n args: Args;\n id?: string;\n type?: \"tool_call\";\n} : never : never : never;\n/**\n * Infer a union of tool call types from an array of tools.\n * Works with tools created via `tool()` from `@langchain/core/tools`.\n *\n * @template T A tuple/array of tools\n *\n * @example\n * ```ts\n * import { tool } from \"@langchain/core/tools\";\n * import { z } from \"zod\";\n *\n * const getWeather = tool(\n * async ({ location }) => `Weather in ${location}`,\n * { name: \"get_weather\", schema: z.object({ location: z.string() }) }\n * );\n *\n * const search = tool(\n * async ({ query }) => `Results for ${query}`,\n * { name: \"search\", schema: z.object({ query: z.string() }) }\n * );\n *\n * const tools = [getWeather, search] as const;\n *\n * // Infer union:\n * // | { name: \"get_weather\"; args: { location: string }; id?: string; type?: \"tool_call\" }\n * // | { name: \"search\"; args: { query: string }; id?: string; type?: \"tool_call\" }\n * type MyToolCalls = ToolCallsFromTools<typeof tools>;\n * ```\n */\nexport type ToolCallsFromTools<T extends readonly unknown[]> = T extends readonly [infer First, ...infer Rest] ? ToolCallFromTool<First> | ToolCallsFromTools<Rest> : never;\n/**\n * The lifecycle state of a tool call.\n *\n * - `pending`: Tool call received, awaiting result\n * - `completed`: Tool execution finished successfully\n * - `error`: Tool execution failed (result.status === \"error\")\n */\nexport type ToolCallState = \"pending\" | \"completed\" | \"error\";\n/**\n * Represents a tool call paired with its result.\n * Useful for rendering tool invocations and their outputs together.\n *\n * @template ToolCall The type of the tool call.\n */\nexport type ToolCallWithResult<ToolCall = DefaultToolCall> = {\n /**\n * Unique identifier for this tool call.\n * Uses the tool call's id if available, otherwise generates one from aiMessage.id and index.\n */\n id: string;\n /**\n * The tool call from the AI message.\n */\n call: ToolCall;\n /**\n * The result message from tool execution.\n * `undefined` if the tool is still being executed or no result was received.\n */\n result: ToolMessage | undefined;\n /**\n * The AI message that initiated this tool call.\n */\n aiMessage: AIMessage<ToolCall>;\n /**\n * Index of this tool call within the AI message's tool_calls array.\n */\n index: number;\n /**\n * The current lifecycle state of the tool call.\n *\n * - `pending`: No result yet\n * - `completed`: Has result with success status\n * - `error`: Has result with error status\n */\n state: ToolCallState;\n};\nexport {};\n"],"mappings":";KAAKA,WAAAA;KACAC,sBAAAA,GADW;EACXA,IAAAA,EAAAA,WAAAA;EAOAC,SAAAA,EAAAA,MAAAA,GAAAA;IAIAC,GAAAA,EAAAA,MAAAA;IAAqB,MAAA,CAAA,EAPTH,WAOS,GAAA,SAAA;;;KAJrBE,kBAAAA,GAImE;EACnEE,IAAAA,EAAAA,MAAAA;EAIAC,IAAAA,EAAAA,MAAAA;AAAgC,CAAA;KALhCF,qBAAAA,GAAwBD,kBAMb,GANkCD,sBAMlC;KALXG,cAAAA,GAMmBC,MAAAA,GANOF,qBAMPE,EA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MAAMD,SAAAA;sBAEfA,CAAAA,EAAAA;IAAfD,KAAAA,CAAAA,EAAAA,MAAAA,GAAAA,SAAAA;IAAuCD,SAAAA,CAAAA,EAAAA,MAAAA,GAAAA,SAAAA;MAA6BA,SAAAA;;;;;AAmCxE;;;;;;;;AAQA;AAOA;;;;;;;;;;;;;;;KAtIYT,qBAAqBH,mBAAmBF;;;eAGnCM;uBACQH;mBACJC;;KAETG,WAAAA,GAAcP;;;;;;;;;;;;;KAadQ,aAAAA,GAAgBR;;;KAGhBS,eAAAA,GAAkBT;;;KAGlBU,aAAAA,GAAgBV;;;;;;;;KAQhBW,mBAAmBT,mBAAmBD,eAAeI,UAAUC,YAAYC,cAAcC,gBAAgBC,kBAAkBC;;;;;;;;KAQlIE,sBAAsBC;;;;IAIvBC,OAAOD;;IAEPC;;;;;;KAMCC,oBAAoBC;;IAErBF,OAAOE;;IAEPJ,iBAAiBC;;;;;;;;;;;;;;;;;;;;;;;;KAwBTI,sBAAsBD;;IAE9BD,eAAeC,wBAAwBF,6BAA6BA,aAAaf;QAC3EmB;QACAJ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KAiCEK,mDAAmDH,kDAAkDC,iBAAiBG,SAASD,mBAAmBE;;;;;;;;KAQlJC,aAAAA;;;;;;;KAOAC,8BAA8BrB;;;;;;;;;QAShCI;;;;;UAKEC;;;;aAIGF,UAAUC;;;;;;;;;;;;SAYdgB"}
|
|
@@ -0,0 +1,233 @@
|
|
|
1
|
+
import { Config, Interrupt, Metadata, ThreadTask } from "./schema.cjs";
|
|
2
|
+
import { Message } from "./types.messages.cjs";
|
|
3
|
+
|
|
4
|
+
//#region src/types.stream.d.ts
|
|
5
|
+
|
|
6
|
+
/**
|
|
7
|
+
import type { SubgraphCheckpointsStreamEvent } from "./types.stream.subgraph.js";
|
|
8
|
+
* Stream modes
|
|
9
|
+
* - "values": Stream only the state values.
|
|
10
|
+
* - "messages": Stream complete messages.
|
|
11
|
+
* - "messages-tuple": Stream (message chunk, metadata) tuples.
|
|
12
|
+
* - "updates": Stream updates to the state.
|
|
13
|
+
* - "events": Stream events occurring during execution.
|
|
14
|
+
* - "debug": Stream detailed debug information.
|
|
15
|
+
* - "custom": Stream custom events.
|
|
16
|
+
*/
|
|
17
|
+
type StreamMode = "values" | "messages" | "updates" | "events" | "debug" | "tasks" | "checkpoints" | "custom" | "messages-tuple";
|
|
18
|
+
type ThreadStreamMode = "run_modes" | "lifecycle" | "state_update";
|
|
19
|
+
type MessageTupleMetadata = {
|
|
20
|
+
tags: string[];
|
|
21
|
+
[key: string]: unknown;
|
|
22
|
+
};
|
|
23
|
+
type AsSubgraph<TEvent extends {
|
|
24
|
+
id?: string;
|
|
25
|
+
event: string;
|
|
26
|
+
data: unknown;
|
|
27
|
+
}> = {
|
|
28
|
+
id?: TEvent["id"];
|
|
29
|
+
event: TEvent["event"] | `${TEvent["event"]}|${string}`;
|
|
30
|
+
data: TEvent["data"];
|
|
31
|
+
};
|
|
32
|
+
/**
|
|
33
|
+
* Stream event with values after completion of each step.
|
|
34
|
+
*/
|
|
35
|
+
type ValuesStreamEvent<StateType> = {
|
|
36
|
+
id?: string;
|
|
37
|
+
event: "values";
|
|
38
|
+
data: StateType;
|
|
39
|
+
};
|
|
40
|
+
/** @internal */
|
|
41
|
+
type SubgraphValuesStreamEvent<StateType> = AsSubgraph<ValuesStreamEvent<StateType>>;
|
|
42
|
+
/**
|
|
43
|
+
* Stream event with message chunks coming from LLM invocations inside nodes.
|
|
44
|
+
*/
|
|
45
|
+
type MessagesTupleStreamEvent = {
|
|
46
|
+
event: "messages";
|
|
47
|
+
data: [message: Message, config: MessageTupleMetadata];
|
|
48
|
+
};
|
|
49
|
+
/** @internal */
|
|
50
|
+
type SubgraphMessagesTupleStreamEvent = AsSubgraph<MessagesTupleStreamEvent>;
|
|
51
|
+
/**
|
|
52
|
+
* Metadata stream event with information about the run and thread
|
|
53
|
+
*/
|
|
54
|
+
type MetadataStreamEvent = {
|
|
55
|
+
id?: string;
|
|
56
|
+
event: "metadata";
|
|
57
|
+
data: {
|
|
58
|
+
run_id: string;
|
|
59
|
+
thread_id: string;
|
|
60
|
+
};
|
|
61
|
+
};
|
|
62
|
+
/**
|
|
63
|
+
* Stream event with error information.
|
|
64
|
+
*/
|
|
65
|
+
type ErrorStreamEvent = {
|
|
66
|
+
id?: string;
|
|
67
|
+
event: "error";
|
|
68
|
+
data: {
|
|
69
|
+
error: string;
|
|
70
|
+
message: string;
|
|
71
|
+
};
|
|
72
|
+
};
|
|
73
|
+
/** @internal */
|
|
74
|
+
type SubgraphErrorStreamEvent = AsSubgraph<ErrorStreamEvent>;
|
|
75
|
+
/**
|
|
76
|
+
* Stream event with updates to the state after each step.
|
|
77
|
+
* The streamed outputs include the name of the node that
|
|
78
|
+
* produced the update as well as the update.
|
|
79
|
+
*/
|
|
80
|
+
type UpdatesStreamEvent<UpdateType> = {
|
|
81
|
+
id?: string;
|
|
82
|
+
event: "updates";
|
|
83
|
+
data: {
|
|
84
|
+
[node: string]: UpdateType;
|
|
85
|
+
};
|
|
86
|
+
};
|
|
87
|
+
/** @internal */
|
|
88
|
+
type SubgraphUpdatesStreamEvent<UpdateType> = AsSubgraph<UpdatesStreamEvent<UpdateType>>;
|
|
89
|
+
/**
|
|
90
|
+
* Streaming custom data from inside the nodes.
|
|
91
|
+
*/
|
|
92
|
+
type CustomStreamEvent<T> = {
|
|
93
|
+
event: "custom";
|
|
94
|
+
data: T;
|
|
95
|
+
};
|
|
96
|
+
/** @internal */
|
|
97
|
+
type SubgraphCustomStreamEvent<T> = AsSubgraph<CustomStreamEvent<T>>;
|
|
98
|
+
type MessagesMetadataStreamEvent = {
|
|
99
|
+
id?: string;
|
|
100
|
+
event: "messages/metadata";
|
|
101
|
+
data: {
|
|
102
|
+
[messageId: string]: {
|
|
103
|
+
metadata: unknown;
|
|
104
|
+
};
|
|
105
|
+
};
|
|
106
|
+
};
|
|
107
|
+
type MessagesCompleteStreamEvent = {
|
|
108
|
+
id?: string;
|
|
109
|
+
event: "messages/complete";
|
|
110
|
+
data: Message[];
|
|
111
|
+
};
|
|
112
|
+
type MessagesPartialStreamEvent = {
|
|
113
|
+
id?: string;
|
|
114
|
+
event: "messages/partial";
|
|
115
|
+
data: Message[];
|
|
116
|
+
};
|
|
117
|
+
type TasksStreamCreateEvent<StateType> = {
|
|
118
|
+
id?: string;
|
|
119
|
+
event: "tasks";
|
|
120
|
+
data: {
|
|
121
|
+
id: string;
|
|
122
|
+
name: string;
|
|
123
|
+
interrupts: Interrupt[];
|
|
124
|
+
input: StateType;
|
|
125
|
+
triggers: string[];
|
|
126
|
+
};
|
|
127
|
+
};
|
|
128
|
+
type TasksStreamResultEvent<UpdateType> = {
|
|
129
|
+
id?: string;
|
|
130
|
+
event: "tasks";
|
|
131
|
+
data: {
|
|
132
|
+
id: string;
|
|
133
|
+
name: string;
|
|
134
|
+
interrupts: Interrupt[];
|
|
135
|
+
result: [string, UpdateType][];
|
|
136
|
+
};
|
|
137
|
+
};
|
|
138
|
+
type TasksStreamErrorEvent = {
|
|
139
|
+
id?: string;
|
|
140
|
+
event: "tasks";
|
|
141
|
+
data: {
|
|
142
|
+
id: string;
|
|
143
|
+
name: string;
|
|
144
|
+
interrupts: Interrupt[];
|
|
145
|
+
error: string;
|
|
146
|
+
};
|
|
147
|
+
};
|
|
148
|
+
type TasksStreamEvent<StateType, UpdateType> = TasksStreamCreateEvent<StateType> | TasksStreamResultEvent<UpdateType> | TasksStreamErrorEvent;
|
|
149
|
+
type SubgraphTasksStreamEvent<StateType, UpdateType> = AsSubgraph<TasksStreamCreateEvent<StateType>> | AsSubgraph<TasksStreamResultEvent<UpdateType>> | AsSubgraph<TasksStreamErrorEvent>;
|
|
150
|
+
type CheckpointsStreamEvent<StateType> = {
|
|
151
|
+
id?: string;
|
|
152
|
+
event: "checkpoints";
|
|
153
|
+
data: {
|
|
154
|
+
values: StateType;
|
|
155
|
+
next: string[];
|
|
156
|
+
config: Config;
|
|
157
|
+
metadata: Metadata;
|
|
158
|
+
tasks: ThreadTask[];
|
|
159
|
+
};
|
|
160
|
+
};
|
|
161
|
+
type SubgraphCheckpointsStreamEvent<StateType> = AsSubgraph<CheckpointsStreamEvent<StateType>>;
|
|
162
|
+
/**
|
|
163
|
+
* Message stream event specific to LangGraph Server.
|
|
164
|
+
* @deprecated Use `streamMode: "messages-tuple"` instead.
|
|
165
|
+
*/
|
|
166
|
+
type MessagesStreamEvent = MessagesMetadataStreamEvent | MessagesCompleteStreamEvent | MessagesPartialStreamEvent;
|
|
167
|
+
/** @internal */
|
|
168
|
+
type SubgraphMessagesStreamEvent = AsSubgraph<MessagesMetadataStreamEvent> | AsSubgraph<MessagesCompleteStreamEvent> | AsSubgraph<MessagesPartialStreamEvent>;
|
|
169
|
+
/**
|
|
170
|
+
* Stream event with detailed debug information.
|
|
171
|
+
*/
|
|
172
|
+
type DebugStreamEvent = {
|
|
173
|
+
id?: string;
|
|
174
|
+
event: "debug";
|
|
175
|
+
data: unknown;
|
|
176
|
+
};
|
|
177
|
+
/** @internal */
|
|
178
|
+
type SubgraphDebugStreamEvent = AsSubgraph<DebugStreamEvent>;
|
|
179
|
+
/**
|
|
180
|
+
* Stream event with events occurring during execution.
|
|
181
|
+
*/
|
|
182
|
+
type EventsStreamEvent = {
|
|
183
|
+
id?: string;
|
|
184
|
+
event: "events";
|
|
185
|
+
data: {
|
|
186
|
+
event: `on_${"chat_model" | "llm" | "chain" | "tool" | "retriever" | "prompt"}_${"start" | "stream" | "end"}` | (string & {});
|
|
187
|
+
name: string;
|
|
188
|
+
tags: string[];
|
|
189
|
+
run_id: string;
|
|
190
|
+
metadata: Record<string, unknown>;
|
|
191
|
+
parent_ids: string[];
|
|
192
|
+
data: unknown;
|
|
193
|
+
};
|
|
194
|
+
};
|
|
195
|
+
/** @internal */
|
|
196
|
+
type SubgraphEventsStreamEvent = AsSubgraph<EventsStreamEvent>;
|
|
197
|
+
/**
|
|
198
|
+
* Stream event with a feedback key to signed URL map. Set `feedbackKeys` in
|
|
199
|
+
* the `RunsStreamPayload` to receive this event.
|
|
200
|
+
*/
|
|
201
|
+
type FeedbackStreamEvent = {
|
|
202
|
+
id?: string;
|
|
203
|
+
event: "feedback";
|
|
204
|
+
data: {
|
|
205
|
+
[feedbackKey: string]: string;
|
|
206
|
+
};
|
|
207
|
+
};
|
|
208
|
+
type GetStreamModeMap<TStreamMode extends StreamMode | StreamMode[], TStateType = unknown, TUpdateType = TStateType, TCustomType = unknown> = {
|
|
209
|
+
values: ValuesStreamEvent<TStateType>;
|
|
210
|
+
updates: UpdatesStreamEvent<TUpdateType>;
|
|
211
|
+
custom: CustomStreamEvent<TCustomType>;
|
|
212
|
+
debug: DebugStreamEvent;
|
|
213
|
+
messages: MessagesStreamEvent;
|
|
214
|
+
"messages-tuple": MessagesTupleStreamEvent;
|
|
215
|
+
tasks: TasksStreamEvent<TStateType, TUpdateType>;
|
|
216
|
+
checkpoints: CheckpointsStreamEvent<TStateType>;
|
|
217
|
+
events: EventsStreamEvent;
|
|
218
|
+
}[TStreamMode extends StreamMode[] ? TStreamMode[number] : TStreamMode] | ErrorStreamEvent | MetadataStreamEvent | FeedbackStreamEvent;
|
|
219
|
+
type GetSubgraphsStreamModeMap<TStreamMode extends StreamMode | StreamMode[], TStateType = unknown, TUpdateType = TStateType, TCustomType = unknown> = {
|
|
220
|
+
values: SubgraphValuesStreamEvent<TStateType>;
|
|
221
|
+
updates: SubgraphUpdatesStreamEvent<TUpdateType>;
|
|
222
|
+
custom: SubgraphCustomStreamEvent<TCustomType>;
|
|
223
|
+
debug: SubgraphDebugStreamEvent;
|
|
224
|
+
messages: SubgraphMessagesStreamEvent;
|
|
225
|
+
"messages-tuple": SubgraphMessagesTupleStreamEvent;
|
|
226
|
+
events: SubgraphEventsStreamEvent;
|
|
227
|
+
tasks: SubgraphTasksStreamEvent<TStateType, TUpdateType>;
|
|
228
|
+
checkpoints: SubgraphCheckpointsStreamEvent<TStateType>;
|
|
229
|
+
}[TStreamMode extends StreamMode[] ? TStreamMode[number] : TStreamMode] | SubgraphErrorStreamEvent | MetadataStreamEvent | FeedbackStreamEvent;
|
|
230
|
+
type TypedAsyncGenerator<TStreamMode extends StreamMode | StreamMode[] = [], TSubgraphs extends boolean = false, TStateType = unknown, TUpdateType = TStateType, TCustomType = unknown> = AsyncGenerator<TSubgraphs extends true ? GetSubgraphsStreamModeMap<TStreamMode, TStateType, TUpdateType, TCustomType> : GetStreamModeMap<TStreamMode, TStateType, TUpdateType, TCustomType>>;
|
|
231
|
+
//#endregion
|
|
232
|
+
export { CheckpointsStreamEvent, CustomStreamEvent, DebugStreamEvent, ErrorStreamEvent, EventsStreamEvent, FeedbackStreamEvent, MessagesStreamEvent, MessagesTupleStreamEvent, MetadataStreamEvent, StreamMode, TasksStreamEvent, ThreadStreamMode, TypedAsyncGenerator, UpdatesStreamEvent, ValuesStreamEvent };
|
|
233
|
+
//# sourceMappingURL=types.stream.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.stream.d.cts","names":["Message","Interrupt","Metadata","Config","ThreadTask","StreamMode","ThreadStreamMode","MessageTupleMetadata","AsSubgraph","TEvent","ValuesStreamEvent","StateType","SubgraphValuesStreamEvent","MessagesTupleStreamEvent","SubgraphMessagesTupleStreamEvent","MetadataStreamEvent","ErrorStreamEvent","SubgraphErrorStreamEvent","UpdatesStreamEvent","UpdateType","SubgraphUpdatesStreamEvent","CustomStreamEvent","T","SubgraphCustomStreamEvent","MessagesMetadataStreamEvent","MessagesCompleteStreamEvent","MessagesPartialStreamEvent","TasksStreamCreateEvent","TasksStreamResultEvent","TasksStreamErrorEvent","TasksStreamEvent","SubgraphTasksStreamEvent","CheckpointsStreamEvent","SubgraphCheckpointsStreamEvent","MessagesStreamEvent","SubgraphMessagesStreamEvent","DebugStreamEvent","SubgraphDebugStreamEvent","EventsStreamEvent","Record","SubgraphEventsStreamEvent","FeedbackStreamEvent","GetStreamModeMap","TStateType","TUpdateType","TCustomType","TStreamMode","GetSubgraphsStreamModeMap","TypedAsyncGenerator","TSubgraphs","AsyncGenerator"],"sources":["../src/types.stream.d.ts"],"sourcesContent":["import type { Message } from \"./types.messages.js\";\nimport type { Interrupt, Metadata, Config, ThreadTask } from \"./schema.js\";\n/**\nimport type { SubgraphCheckpointsStreamEvent } from \"./types.stream.subgraph.js\";\n * Stream modes\n * - \"values\": Stream only the state values.\n * - \"messages\": Stream complete messages.\n * - \"messages-tuple\": Stream (message chunk, metadata) tuples.\n * - \"updates\": Stream updates to the state.\n * - \"events\": Stream events occurring during execution.\n * - \"debug\": Stream detailed debug information.\n * - \"custom\": Stream custom events.\n */\nexport type StreamMode = \"values\" | \"messages\" | \"updates\" | \"events\" | \"debug\" | \"tasks\" | \"checkpoints\" | \"custom\" | \"messages-tuple\";\nexport type ThreadStreamMode = \"run_modes\" | \"lifecycle\" | \"state_update\";\ntype MessageTupleMetadata = {\n tags: string[];\n [key: string]: unknown;\n};\ntype AsSubgraph<TEvent extends {\n id?: string;\n event: string;\n data: unknown;\n}> = {\n id?: TEvent[\"id\"];\n event: TEvent[\"event\"] | `${TEvent[\"event\"]}|${string}`;\n data: TEvent[\"data\"];\n};\n/**\n * Stream event with values after completion of each step.\n */\nexport type ValuesStreamEvent<StateType> = {\n id?: string;\n event: \"values\";\n data: StateType;\n};\n/** @internal */\nexport type SubgraphValuesStreamEvent<StateType> = AsSubgraph<ValuesStreamEvent<StateType>>;\n/**\n * Stream event with message chunks coming from LLM invocations inside nodes.\n */\nexport type MessagesTupleStreamEvent = {\n event: \"messages\";\n data: [message: Message, config: MessageTupleMetadata];\n};\n/** @internal */\nexport type SubgraphMessagesTupleStreamEvent = AsSubgraph<MessagesTupleStreamEvent>;\n/**\n * Metadata stream event with information about the run and thread\n */\nexport type MetadataStreamEvent = {\n id?: string;\n event: \"metadata\";\n data: {\n run_id: string;\n thread_id: string;\n };\n};\n/**\n * Stream event with error information.\n */\nexport type ErrorStreamEvent = {\n id?: string;\n event: \"error\";\n data: {\n error: string;\n message: string;\n };\n};\n/** @internal */\nexport type SubgraphErrorStreamEvent = AsSubgraph<ErrorStreamEvent>;\n/**\n * Stream event with updates to the state after each step.\n * The streamed outputs include the name of the node that\n * produced the update as well as the update.\n */\nexport type UpdatesStreamEvent<UpdateType> = {\n id?: string;\n event: \"updates\";\n data: {\n [node: string]: UpdateType;\n };\n};\n/** @internal */\nexport type SubgraphUpdatesStreamEvent<UpdateType> = AsSubgraph<UpdatesStreamEvent<UpdateType>>;\n/**\n * Streaming custom data from inside the nodes.\n */\nexport type CustomStreamEvent<T> = {\n event: \"custom\";\n data: T;\n};\n/** @internal */\nexport type SubgraphCustomStreamEvent<T> = AsSubgraph<CustomStreamEvent<T>>;\ntype MessagesMetadataStreamEvent = {\n id?: string;\n event: \"messages/metadata\";\n data: {\n [messageId: string]: {\n metadata: unknown;\n };\n };\n};\ntype MessagesCompleteStreamEvent = {\n id?: string;\n event: \"messages/complete\";\n data: Message[];\n};\ntype MessagesPartialStreamEvent = {\n id?: string;\n event: \"messages/partial\";\n data: Message[];\n};\ntype TasksStreamCreateEvent<StateType> = {\n id?: string;\n event: \"tasks\";\n data: {\n id: string;\n name: string;\n interrupts: Interrupt[];\n input: StateType;\n triggers: string[];\n };\n};\ntype TasksStreamResultEvent<UpdateType> = {\n id?: string;\n event: \"tasks\";\n data: {\n id: string;\n name: string;\n interrupts: Interrupt[];\n result: [string, UpdateType][];\n };\n};\ntype TasksStreamErrorEvent = {\n id?: string;\n event: \"tasks\";\n data: {\n id: string;\n name: string;\n interrupts: Interrupt[];\n error: string;\n };\n};\nexport type TasksStreamEvent<StateType, UpdateType> = TasksStreamCreateEvent<StateType> | TasksStreamResultEvent<UpdateType> | TasksStreamErrorEvent;\ntype SubgraphTasksStreamEvent<StateType, UpdateType> = AsSubgraph<TasksStreamCreateEvent<StateType>> | AsSubgraph<TasksStreamResultEvent<UpdateType>> | AsSubgraph<TasksStreamErrorEvent>;\nexport type CheckpointsStreamEvent<StateType> = {\n id?: string;\n event: \"checkpoints\";\n data: {\n values: StateType;\n next: string[];\n config: Config;\n metadata: Metadata;\n tasks: ThreadTask[];\n };\n};\ntype SubgraphCheckpointsStreamEvent<StateType> = AsSubgraph<CheckpointsStreamEvent<StateType>>;\n/**\n * Message stream event specific to LangGraph Server.\n * @deprecated Use `streamMode: \"messages-tuple\"` instead.\n */\nexport type MessagesStreamEvent = MessagesMetadataStreamEvent | MessagesCompleteStreamEvent | MessagesPartialStreamEvent;\n/** @internal */\nexport type SubgraphMessagesStreamEvent = AsSubgraph<MessagesMetadataStreamEvent> | AsSubgraph<MessagesCompleteStreamEvent> | AsSubgraph<MessagesPartialStreamEvent>;\n/**\n * Stream event with detailed debug information.\n */\nexport type DebugStreamEvent = {\n id?: string;\n event: \"debug\";\n data: unknown;\n};\n/** @internal */\nexport type SubgraphDebugStreamEvent = AsSubgraph<DebugStreamEvent>;\n/**\n * Stream event with events occurring during execution.\n */\nexport type EventsStreamEvent = {\n id?: string;\n event: \"events\";\n data: {\n event: `on_${\"chat_model\" | \"llm\" | \"chain\" | \"tool\" | \"retriever\" | \"prompt\"}_${\"start\" | \"stream\" | \"end\"}` | (string & {});\n name: string;\n tags: string[];\n run_id: string;\n metadata: Record<string, unknown>;\n parent_ids: string[];\n data: unknown;\n };\n};\n/** @internal */\nexport type SubgraphEventsStreamEvent = AsSubgraph<EventsStreamEvent>;\n/**\n * Stream event with a feedback key to signed URL map. Set `feedbackKeys` in\n * the `RunsStreamPayload` to receive this event.\n */\nexport type FeedbackStreamEvent = {\n id?: string;\n event: \"feedback\";\n data: {\n [feedbackKey: string]: string;\n };\n};\ntype GetStreamModeMap<TStreamMode extends StreamMode | StreamMode[], TStateType = unknown, TUpdateType = TStateType, TCustomType = unknown> = {\n values: ValuesStreamEvent<TStateType>;\n updates: UpdatesStreamEvent<TUpdateType>;\n custom: CustomStreamEvent<TCustomType>;\n debug: DebugStreamEvent;\n messages: MessagesStreamEvent;\n \"messages-tuple\": MessagesTupleStreamEvent;\n tasks: TasksStreamEvent<TStateType, TUpdateType>;\n checkpoints: CheckpointsStreamEvent<TStateType>;\n events: EventsStreamEvent;\n}[TStreamMode extends StreamMode[] ? TStreamMode[number] : TStreamMode] | ErrorStreamEvent | MetadataStreamEvent | FeedbackStreamEvent;\ntype GetSubgraphsStreamModeMap<TStreamMode extends StreamMode | StreamMode[], TStateType = unknown, TUpdateType = TStateType, TCustomType = unknown> = {\n values: SubgraphValuesStreamEvent<TStateType>;\n updates: SubgraphUpdatesStreamEvent<TUpdateType>;\n custom: SubgraphCustomStreamEvent<TCustomType>;\n debug: SubgraphDebugStreamEvent;\n messages: SubgraphMessagesStreamEvent;\n \"messages-tuple\": SubgraphMessagesTupleStreamEvent;\n events: SubgraphEventsStreamEvent;\n tasks: SubgraphTasksStreamEvent<TStateType, TUpdateType>;\n checkpoints: SubgraphCheckpointsStreamEvent<TStateType>;\n}[TStreamMode extends StreamMode[] ? TStreamMode[number] : TStreamMode] | SubgraphErrorStreamEvent | MetadataStreamEvent | FeedbackStreamEvent;\nexport type TypedAsyncGenerator<TStreamMode extends StreamMode | StreamMode[] = [], TSubgraphs extends boolean = false, TStateType = unknown, TUpdateType = TStateType, TCustomType = unknown> = AsyncGenerator<TSubgraphs extends true ? GetSubgraphsStreamModeMap<TStreamMode, TStateType, TUpdateType, TCustomType> : GetStreamModeMap<TStreamMode, TStateType, TUpdateType, TCustomType>>;\nexport {};\n"],"mappings":";;;;;;;AAaA;AACA;AAA0E;AACjD;;;;;;AAWT,KAbJK,UAAAA,GAaI,QAAA,GAAA,UAAA,GAAA,SAAA,GAAA,QAAA,GAAA,OAAA,GAAA,OAAA,GAAA,aAAA,GAAA,QAAA,GAAA,gBAAA;AAKJK,KAjBAJ,gBAAAA,GAiBiB,WAGnBK,GAAAA,WAAS,GAAA,cAAA;AAGnB,KAtBKJ,oBAAAA,GAsBOK;EAAyB,IAAA,EAAA,MAAA,EAAA;MAA2CD,EAAAA,MAAAA,CAAAA,EAAAA,OAAAA;;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