@ag-ui/langgraph 0.0.42-alpha.0 → 0.0.42

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 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 _langchain_core_tools0 from "@langchain/core/tools";
5
+ import * as _langchain_core_tools1 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";
@@ -182,12 +182,12 @@ declare class LangGraphAgent extends AbstractAgent {
182
182
  run(input: RunAgentInput): Observable<ProcessedEvents>;
183
183
  runAgentStream(input: RunAgentExtendedInput, subscriber: Subscriber<ProcessedEvents>): Promise<void>;
184
184
  prepareRegenerateStream(input: RegenerateInput, streamMode: StreamMode | StreamMode[]): Promise<void | {
185
- 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>;
185
+ streamResponse: _langchain_langgraph_sdk_dist_types_stream0.TypedAsyncGenerator<"messages" | "tools" | "values" | "updates" | "events" | "debug" | "tasks" | "checkpoints" | "custom" | "messages-tuple" | StreamMode[], false, _langchain_langgraph_sdk0.DefaultValues, _langchain_langgraph_sdk0.DefaultValues, unknown>;
186
186
  state: ThreadState<State>;
187
187
  streamMode: StreamMode | StreamMode[];
188
188
  }>;
189
189
  prepareStream(input: RunAgentExtendedInput, streamMode: StreamMode | StreamMode[]): Promise<void | {
190
- 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>;
190
+ streamResponse: _langchain_langgraph_sdk_dist_types_stream0.TypedAsyncGenerator<"messages" | "tools" | "values" | "updates" | "events" | "debug" | "tasks" | "checkpoints" | "custom" | "messages-tuple" | StreamMode[], false, _langchain_langgraph_sdk0.DefaultValues, _langchain_langgraph_sdk0.DefaultValues, unknown>;
191
191
  state: ThreadState<State>;
192
192
  streamMode: StreamMode | StreamMode[];
193
193
  } | {
@@ -281,7 +281,7 @@ interface GenerateA2UIArgs {
281
281
  * @param params Shared `A2UIToolParams` (model + behavior knobs). The toolkit
282
282
  * owns the shape and fills defaults via `resolveA2UIToolParams`.
283
283
  */
284
- declare function getA2UITools<TModel = A2UISubagentModel>(params: A2UIToolParams<TModel>): _langchain_core_tools0.DynamicStructuredTool<any, GenerateA2UIArgs, unknown, string, unknown, string>;
284
+ declare function getA2UITools<TModel = A2UISubagentModel>(params: A2UIToolParams<TModel>): _langchain_core_tools1.DynamicStructuredTool<any, GenerateA2UIArgs, unknown, string, unknown, string>;
285
285
  //#endregion
286
286
  //#region src/index.d.ts
287
287
  declare class LangGraphHttpAgent extends HttpAgent {}
package/dist/index.d.ts CHANGED
@@ -182,12 +182,12 @@ declare class LangGraphAgent extends AbstractAgent {
182
182
  run(input: RunAgentInput): Observable<ProcessedEvents>;
183
183
  runAgentStream(input: RunAgentExtendedInput, subscriber: Subscriber<ProcessedEvents>): Promise<void>;
184
184
  prepareRegenerateStream(input: RegenerateInput, streamMode: StreamMode | StreamMode[]): Promise<void | {
185
- 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>;
185
+ streamResponse: _langchain_langgraph_sdk_dist_types_stream0.TypedAsyncGenerator<"messages" | "tools" | "values" | "updates" | "events" | "debug" | "tasks" | "checkpoints" | "custom" | "messages-tuple" | StreamMode[], false, _langchain_langgraph_sdk0.DefaultValues, _langchain_langgraph_sdk0.DefaultValues, unknown>;
186
186
  state: ThreadState<State>;
187
187
  streamMode: StreamMode | StreamMode[];
188
188
  }>;
189
189
  prepareStream(input: RunAgentExtendedInput, streamMode: StreamMode | StreamMode[]): Promise<void | {
190
- 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>;
190
+ streamResponse: _langchain_langgraph_sdk_dist_types_stream0.TypedAsyncGenerator<"messages" | "tools" | "values" | "updates" | "events" | "debug" | "tasks" | "checkpoints" | "custom" | "messages-tuple" | StreamMode[], false, _langchain_langgraph_sdk0.DefaultValues, _langchain_langgraph_sdk0.DefaultValues, unknown>;
191
191
  state: ThreadState<State>;
192
192
  streamMode: StreamMode | StreamMode[];
193
193
  } | {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ag-ui/langgraph",
3
- "version": "0.0.42-alpha.0",
3
+ "version": "0.0.42",
4
4
  "license": "MIT",
5
5
  "repository": {
6
6
  "type": "git",