@ag-ui/langgraph 0.0.40 → 0.0.41
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/index.d.mts +4 -4
- package/dist/index.d.ts +4 -4
- package/package.json +4 -4
package/dist/index.d.mts
CHANGED
|
@@ -2,7 +2,7 @@ import { AbstractAgent, AgentConfig, CustomEvent, HttpAgent, MessagesSnapshotEve
|
|
|
2
2
|
import { Observable, Subscriber } from "rxjs";
|
|
3
3
|
import * as _langchain_langgraph_sdk0 from "@langchain/langgraph-sdk";
|
|
4
4
|
import { Assistant, AssistantGraph, Client, Config, Message, StreamMode, Thread, ThreadState } from "@langchain/langgraph-sdk";
|
|
5
|
-
import * as
|
|
5
|
+
import * as _langchain_core_tools0 from "@langchain/core/tools";
|
|
6
6
|
import { MessageType } from "@langchain/core/messages";
|
|
7
7
|
import { A2UIAttemptRecord, A2UIGuidelines, A2UIRecoveryConfig, A2UIToolParams, A2UIValidationCatalog, A2UI_OPERATIONS_KEY, BASIC_CATALOG_ID } from "@ag-ui/a2ui-toolkit";
|
|
8
8
|
import * as _langchain_langgraph_sdk_dist_types_stream0 from "@langchain/langgraph-sdk/dist/types.stream";
|
|
@@ -180,12 +180,12 @@ declare class LangGraphAgent extends AbstractAgent {
|
|
|
180
180
|
run(input: RunAgentInput): Observable<ProcessedEvents>;
|
|
181
181
|
runAgentStream(input: RunAgentExtendedInput, subscriber: Subscriber<ProcessedEvents>): Promise<void>;
|
|
182
182
|
prepareRegenerateStream(input: RegenerateInput, streamMode: StreamMode | StreamMode[]): Promise<void | {
|
|
183
|
-
streamResponse: _langchain_langgraph_sdk_dist_types_stream0.TypedAsyncGenerator<"
|
|
183
|
+
streamResponse: _langchain_langgraph_sdk_dist_types_stream0.TypedAsyncGenerator<"values" | "messages" | "updates" | "events" | "debug" | "tasks" | "checkpoints" | "custom" | "messages-tuple" | "tools" | StreamMode[], false, _langchain_langgraph_sdk0.DefaultValues, _langchain_langgraph_sdk0.DefaultValues, unknown>;
|
|
184
184
|
state: ThreadState<State>;
|
|
185
185
|
streamMode: StreamMode | StreamMode[];
|
|
186
186
|
}>;
|
|
187
187
|
prepareStream(input: RunAgentExtendedInput, streamMode: StreamMode | StreamMode[]): Promise<void | {
|
|
188
|
-
streamResponse: _langchain_langgraph_sdk_dist_types_stream0.TypedAsyncGenerator<"
|
|
188
|
+
streamResponse: _langchain_langgraph_sdk_dist_types_stream0.TypedAsyncGenerator<"values" | "messages" | "updates" | "events" | "debug" | "tasks" | "checkpoints" | "custom" | "messages-tuple" | "tools" | StreamMode[], false, _langchain_langgraph_sdk0.DefaultValues, _langchain_langgraph_sdk0.DefaultValues, unknown>;
|
|
189
189
|
state: ThreadState<State>;
|
|
190
190
|
streamMode: StreamMode | StreamMode[];
|
|
191
191
|
} | {
|
|
@@ -268,7 +268,7 @@ interface GenerateA2UIArgs {
|
|
|
268
268
|
* @param params Shared `A2UIToolParams` (model + behavior knobs). The toolkit
|
|
269
269
|
* owns the shape and fills defaults via `resolveA2UIToolParams`.
|
|
270
270
|
*/
|
|
271
|
-
declare function getA2UITools<TModel = A2UISubagentModel>(params: A2UIToolParams<TModel>):
|
|
271
|
+
declare function getA2UITools<TModel = A2UISubagentModel>(params: A2UIToolParams<TModel>): _langchain_core_tools0.DynamicStructuredTool<any, GenerateA2UIArgs, unknown, string, unknown, string>;
|
|
272
272
|
//#endregion
|
|
273
273
|
//#region src/index.d.ts
|
|
274
274
|
declare class LangGraphHttpAgent extends HttpAgent {}
|
package/dist/index.d.ts
CHANGED
|
@@ -6,7 +6,7 @@ import { Observable, Subscriber } from "rxjs";
|
|
|
6
6
|
import { MessageType } from "@langchain/core/messages";
|
|
7
7
|
import { RunAgentInput as RunAgentInput$1 } from "@ag-ui/core";
|
|
8
8
|
import { RunsStreamPayload } from "@langchain/langgraph-sdk/dist/types";
|
|
9
|
-
import * as
|
|
9
|
+
import * as _langchain_core_tools0 from "@langchain/core/tools";
|
|
10
10
|
import { A2UIAttemptRecord, A2UIGuidelines, A2UIRecoveryConfig, A2UIToolParams, A2UIValidationCatalog, A2UI_OPERATIONS_KEY, BASIC_CATALOG_ID } from "@ag-ui/a2ui-toolkit";
|
|
11
11
|
|
|
12
12
|
//#region src/types.d.ts
|
|
@@ -180,12 +180,12 @@ declare class LangGraphAgent extends AbstractAgent {
|
|
|
180
180
|
run(input: RunAgentInput): Observable<ProcessedEvents>;
|
|
181
181
|
runAgentStream(input: RunAgentExtendedInput, subscriber: Subscriber<ProcessedEvents>): Promise<void>;
|
|
182
182
|
prepareRegenerateStream(input: RegenerateInput, streamMode: StreamMode | StreamMode[]): Promise<void | {
|
|
183
|
-
streamResponse: _langchain_langgraph_sdk_dist_types_stream0.TypedAsyncGenerator<"
|
|
183
|
+
streamResponse: _langchain_langgraph_sdk_dist_types_stream0.TypedAsyncGenerator<"values" | "messages" | "updates" | "events" | "debug" | "tasks" | "checkpoints" | "custom" | "messages-tuple" | "tools" | StreamMode[], false, _langchain_langgraph_sdk0.DefaultValues, _langchain_langgraph_sdk0.DefaultValues, unknown>;
|
|
184
184
|
state: ThreadState<State>;
|
|
185
185
|
streamMode: StreamMode | StreamMode[];
|
|
186
186
|
}>;
|
|
187
187
|
prepareStream(input: RunAgentExtendedInput, streamMode: StreamMode | StreamMode[]): Promise<void | {
|
|
188
|
-
streamResponse: _langchain_langgraph_sdk_dist_types_stream0.TypedAsyncGenerator<"
|
|
188
|
+
streamResponse: _langchain_langgraph_sdk_dist_types_stream0.TypedAsyncGenerator<"values" | "messages" | "updates" | "events" | "debug" | "tasks" | "checkpoints" | "custom" | "messages-tuple" | "tools" | StreamMode[], false, _langchain_langgraph_sdk0.DefaultValues, _langchain_langgraph_sdk0.DefaultValues, unknown>;
|
|
189
189
|
state: ThreadState<State>;
|
|
190
190
|
streamMode: StreamMode | StreamMode[];
|
|
191
191
|
} | {
|
|
@@ -268,7 +268,7 @@ interface GenerateA2UIArgs {
|
|
|
268
268
|
* @param params Shared `A2UIToolParams` (model + behavior knobs). The toolkit
|
|
269
269
|
* owns the shape and fills defaults via `resolveA2UIToolParams`.
|
|
270
270
|
*/
|
|
271
|
-
declare function getA2UITools<TModel = A2UISubagentModel>(params: A2UIToolParams<TModel>):
|
|
271
|
+
declare function getA2UITools<TModel = A2UISubagentModel>(params: A2UIToolParams<TModel>): _langchain_core_tools0.DynamicStructuredTool<any, GenerateA2UIArgs, unknown, string, unknown, string>;
|
|
272
272
|
//#endregion
|
|
273
273
|
//#region src/index.d.ts
|
|
274
274
|
declare class LangGraphHttpAgent extends HttpAgent {}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ag-ui/langgraph",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.41",
|
|
4
4
|
"repository": {
|
|
5
5
|
"type": "git",
|
|
6
6
|
"url": "https://github.com/ag-ui-protocol/ag-ui.git"
|
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
"langchain": ">=1.2.0",
|
|
24
24
|
"partial-json": "^0.1.7",
|
|
25
25
|
"rxjs": "7.8.1",
|
|
26
|
-
"@ag-ui/a2ui-toolkit": "0.0.
|
|
26
|
+
"@ag-ui/a2ui-toolkit": "0.0.3"
|
|
27
27
|
},
|
|
28
28
|
"peerDependencies": {
|
|
29
29
|
"@ag-ui/core": ">=0.0.42",
|
|
@@ -37,8 +37,8 @@
|
|
|
37
37
|
"vitest": "^4.0.18",
|
|
38
38
|
"tsdown": "^0.20.1",
|
|
39
39
|
"typescript": "^5.3.3",
|
|
40
|
-
"@ag-ui/
|
|
41
|
-
"@ag-ui/
|
|
40
|
+
"@ag-ui/core": "0.0.56",
|
|
41
|
+
"@ag-ui/client": "0.0.56"
|
|
42
42
|
},
|
|
43
43
|
"exports": {
|
|
44
44
|
".": {
|