deepagents 1.9.1 → 1.10.0

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.cts CHANGED
@@ -1,8 +1,8 @@
1
1
  import * as _$zod_v30 from "zod/v3";
2
2
  import * as _langchain from "langchain";
3
- import { AgentMiddleware, AgentMiddleware as AgentMiddleware$1, AgentTypeConfig, CreateAgentParams, HumanMessage, InferMiddlewareStates, InterruptOnConfig, ProviderStrategy, ReactAgent, ResponseFormat, ResponseFormatUndefined, Runtime, StructuredTool, SystemMessage, ToolMessage, ToolRuntime, ToolStrategy } from "langchain";
3
+ import { AgentMiddleware, AgentMiddleware as AgentMiddleware$1, AgentRunStream, AgentTypeConfig, CreateAgentParams, HumanMessage, InferMiddlewareStates, InterruptOnConfig, ProviderStrategy, ReactAgent, ResponseFormat, ResponseFormatUndefined, Runtime, StructuredTool, SystemMessage, ToolCallStreamUnion, ToolMessage, ToolRuntime, ToolStrategy } from "langchain";
4
4
  import * as _langgraph from "@langchain/langgraph";
5
- import { AnnotationRoot, Command, ReducedValue, StateSchema } from "@langchain/langgraph";
5
+ import { AnnotationRoot, ChatModelStream, Command, Namespace, NativeStreamTransformer, ReducedValue, StateSchema, StreamTransformer } from "@langchain/langgraph";
6
6
  import { z } from "zod/v4";
7
7
  import { BaseCheckpointSaver, BaseStore } from "@langchain/langgraph-checkpoint";
8
8
  import * as _messages from "@langchain/core/messages";
@@ -709,6 +709,35 @@ interface FilesystemPermission {
709
709
  }
710
710
  //#endregion
711
711
  //#region src/middleware/fs.d.ts
712
+ /**
713
+ * Tools that should be excluded from the large result eviction logic.
714
+ *
715
+ * This array contains tools that should NOT have their results evicted to the filesystem
716
+ * when they exceed token limits. Tools are excluded for different reasons:
717
+ *
718
+ * 1. Tools with built-in truncation (ls, glob, grep):
719
+ * These tools truncate their own output when it becomes too large. When these tools
720
+ * produce truncated output due to many matches, it typically indicates the query
721
+ * needs refinement rather than full result preservation. In such cases, the truncated
722
+ * matches are potentially more like noise and the LLM should be prompted to narrow
723
+ * its search criteria instead.
724
+ *
725
+ * 2. Tools with problematic truncation behavior (read_file):
726
+ * read_file is tricky to handle as the failure mode here is single long lines
727
+ * (e.g., imagine a jsonl file with very long payloads on each line). If we try to
728
+ * truncate the result of read_file, the agent may then attempt to re-read the
729
+ * truncated file using read_file again, which won't help.
730
+ *
731
+ * 3. Tools that never exceed limits (edit_file, write_file):
732
+ * These tools return minimal confirmation messages and are never expected to produce
733
+ * output large enough to exceed token limits, so checking them would be unnecessary.
734
+ */
735
+ /**
736
+ * All tool names registered by FilesystemMiddleware.
737
+ * This is the single source of truth — used by createDeepAgent to detect
738
+ * collisions with user-supplied tools at construction time.
739
+ */
740
+ declare const FILESYSTEM_TOOL_NAMES: readonly ["ls", "read_file", "write_file", "edit_file", "glob", "grep", "execute"];
712
741
  /**
713
742
  * Type for the files state record.
714
743
  */
@@ -2473,6 +2502,19 @@ interface AsyncTask {
2473
2502
  /** ISO timestamp of the most recent status poll via the check tool. */
2474
2503
  checkedAt?: string;
2475
2504
  }
2505
+ /**
2506
+ * Task statuses that will never change.
2507
+ *
2508
+ * When listing tasks, live-status fetches are skipped for tasks whose
2509
+ * cached status is in this set, since they are guaranteed to be final.
2510
+ */
2511
+ /**
2512
+ * Names of the tools added by the async subagent middleware.
2513
+ *
2514
+ * Exported so `agent.ts` can include them in `BUILTIN_TOOL_NAMES` and
2515
+ * surface a `ConfigurationError` if a user-provided tool collides.
2516
+ */
2517
+ declare const ASYNC_TASK_TOOL_NAMES: readonly ["start_async_task", "check_async_task", "update_async_task", "cancel_async_task", "list_async_tasks"];
2476
2518
  /**
2477
2519
  * Options for creating async subagent middleware.
2478
2520
  */
@@ -2574,8 +2616,100 @@ declare function createAsyncSubAgentMiddleware(options: AsyncSubAgentMiddlewareO
2574
2616
  statusFilter?: string | null | undefined;
2575
2617
  }, string | Command<unknown, Record<string, unknown>, string>, unknown, "list_async_tasks">)[]>;
2576
2618
  //#endregion
2619
+ //#region src/stream.d.ts
2620
+ /**
2621
+ * Represents a single subagent invocation observed during a deep agent run.
2622
+ *
2623
+ * @typeParam TOutput - The subagent's output state type. Defaults to
2624
+ * `unknown`; inferred to the subagent's `MergedAgentState` for
2625
+ * `CompiledSubAgent` via {@link SubagentRunStreamUnion}.
2626
+ */
2627
+ interface SubagentRunStream<TOutput = unknown, TTools extends readonly (ClientTool | ServerTool)[] = readonly (ClientTool | ServerTool)[]> {
2628
+ readonly name: string;
2629
+ readonly taskInput: Promise<string>;
2630
+ readonly output: Promise<TOutput>;
2631
+ readonly messages: AsyncIterable<ChatModelStream>;
2632
+ readonly toolCalls: AsyncIterable<ToolCallStreamUnion<TTools>>;
2633
+ readonly subagents: AsyncIterable<SubagentRunStream>;
2634
+ }
2635
+ /**
2636
+ * Extract the output state type from a subagent spec.
2637
+ * For `CompiledSubAgent<ReactAgent<Types>>`, resolves to the agent's
2638
+ * invoke return type. Falls back to `unknown` for `SubAgent` and
2639
+ * `AsyncSubAgent`.
2640
+ */
2641
+ type SubagentOutputOf<T extends AnySubAgent> = T extends CompiledSubAgent<infer R> ? R extends ReactAgent<infer Types> ? Awaited<ReturnType<ReactAgent<Types>["invoke"]>> : unknown : unknown;
2642
+ /**
2643
+ * Extract the tools tuple from a subagent spec.
2644
+ * For `CompiledSubAgent<ReactAgent<Types>>`, resolves to `Types["Tools"]`.
2645
+ * Falls back to the default `(ClientTool | ServerTool)[]` for `SubAgent`
2646
+ * and `AsyncSubAgent`.
2647
+ */
2648
+ type SubagentToolsOf<T extends AnySubAgent> = T extends CompiledSubAgent<infer R> ? R extends ReactAgent<infer Types> ? Types["Tools"] : readonly (ClientTool | ServerTool)[] : readonly (ClientTool | ServerTool)[];
2649
+ /**
2650
+ * A typed `SubagentRunStream` variant for a single subagent spec.
2651
+ * Narrows `.name` to the literal string type, `.output` to the
2652
+ * inferred state type, and `.toolCalls` to the subagent's tools
2653
+ * when available.
2654
+ */
2655
+ type NamedSubagentRunStream<T extends AnySubAgent> = T extends {
2656
+ name: infer N extends string;
2657
+ } ? SubagentRunStream<SubagentOutputOf<T>, SubagentToolsOf<T>> & {
2658
+ readonly name: N;
2659
+ } : SubagentRunStream;
2660
+ /**
2661
+ * Discriminated union of {@link SubagentRunStream} variants, one per
2662
+ * subagent in `TSubagents`. Enables TypeScript to narrow `.output`
2663
+ * when the consumer checks `sub.name === "someSubagentName"`.
2664
+ */
2665
+ type SubagentRunStreamUnion<TSubagents extends readonly AnySubAgent[]> = { [K in keyof TSubagents]: NamedSubagentRunStream<TSubagents[K]> }[number];
2666
+ /**
2667
+ * An {@link AgentRunStream} with native deep-agent projections assigned
2668
+ * directly on the instance by `createGraphRunStream` (via `__native`
2669
+ * transformers).
2670
+ *
2671
+ * This is a pure type overlay — no runtime class exists. The
2672
+ * `subagents` property is populated at runtime by the
2673
+ * `createSubagentTransformer` registered at compile time.
2674
+ */
2675
+ type DeepAgentRunStream<TValues = Record<string, unknown>, TTools extends readonly (ClientTool | ServerTool)[] = readonly (ClientTool | ServerTool)[], TSubagents extends readonly AnySubAgent[] = readonly AnySubAgent[], TExtensions extends Record<string, unknown> = Record<string, unknown>> = AgentRunStream<TValues, TTools, TExtensions> & {
2676
+ /** Subagent invocation streams from the native SubagentTransformer. */subagents: AsyncIterable<SubagentRunStreamUnion<TSubagents>>;
2677
+ };
2678
+ interface SubagentProjection {
2679
+ subagents: AsyncIterable<SubagentRunStream>;
2680
+ }
2681
+ /**
2682
+ * Native transformer that correlates `task` tool calls into
2683
+ * {@link SubagentRunStream} objects and routes child-namespace
2684
+ * `tools` and `messages` events into per-subagent channels.
2685
+ *
2686
+ * Marked `__native: true` — the `subagents` projection key lands
2687
+ * directly on the `GraphRunStream` instance as `run.subagents`.
2688
+ */
2689
+ declare function createSubagentTransformer(path: Namespace): () => NativeStreamTransformer<SubagentProjection>;
2690
+ //#endregion
2577
2691
  //#region src/types.d.ts
2578
2692
  type AnyAnnotationRoot = AnnotationRoot<any>;
2693
+ /**
2694
+ * Literal union of all built-in deep agent tool names.
2695
+ * These are always present on the agent regardless of user-provided tools.
2696
+ */
2697
+ type DeepAgentBuiltinToolName = (typeof FILESYSTEM_TOOL_NAMES)[number] | (typeof ASYNC_TASK_TOOL_NAMES)[number] | "task" | "write_todos";
2698
+ /**
2699
+ * A placeholder StructuredTool type with a literal `name` for each
2700
+ * built-in tool. Used to thread built-in tool names into the
2701
+ * `ToolCallStreamUnion` so they appear in `run.toolCalls` alongside
2702
+ * user-provided tools.
2703
+ */
2704
+ type BuiltinToolPlaceholder<N extends string> = {
2705
+ name: N;
2706
+ } & StructuredTool$1;
2707
+ /**
2708
+ * Tuple of placeholder tool types for all built-in deep agent tools.
2709
+ * Combined with `TTypes["Tools"]` in the `DeepAgentRunStream` return type.
2710
+ */
2711
+ type DeepAgentBuiltinToolsTuple = { [K in DeepAgentBuiltinToolName]: BuiltinToolPlaceholder<K> }[DeepAgentBuiltinToolName][];
2712
+ type InferDeepAgentStreamExtensions<T extends ReadonlyArray<() => StreamTransformer<any>>> = T extends readonly [] ? Record<string, never> : T extends readonly [() => StreamTransformer<infer P>, ...infer Rest extends ReadonlyArray<() => StreamTransformer<any>>] ? P & InferDeepAgentStreamExtensions<Rest> : Record<string, unknown>;
2579
2713
  /** Any subagent specification — sync, compiled, or async. */
2580
2714
  type AnySubAgent = SubAgent | CompiledSubAgent | AsyncSubAgent;
2581
2715
  interface TypedToolStrategy<T = unknown> extends Array<ToolStrategy<any>> {
@@ -2656,7 +2790,7 @@ type InferStructuredResponse<T extends SupportedResponseFormat> = SupportedRespo
2656
2790
  * type Types = InferDeepAgentType<typeof agent, "Subagents">;
2657
2791
  * ```
2658
2792
  */
2659
- interface DeepAgentTypeConfig<TResponse extends Record<string, any> | ResponseFormatUndefined = Record<string, any> | ResponseFormatUndefined, TState extends AnyAnnotationRoot | InteropZodObject | undefined = AnyAnnotationRoot | InteropZodObject | undefined, TContext extends AnyAnnotationRoot | InteropZodObject = AnyAnnotationRoot | InteropZodObject, TMiddleware extends readonly AgentMiddleware[] = readonly AgentMiddleware[], TTools extends readonly (ClientTool | ServerTool)[] = readonly (ClientTool | ServerTool)[], TSubagents extends readonly AnySubAgent[] = readonly AnySubAgent[]> extends AgentTypeConfig<TResponse, TState, TContext, TMiddleware, TTools> {
2793
+ interface DeepAgentTypeConfig<TResponse extends Record<string, any> | ResponseFormatUndefined = Record<string, any> | ResponseFormatUndefined, TState extends AnyAnnotationRoot | InteropZodObject | undefined = AnyAnnotationRoot | InteropZodObject | undefined, TContext extends AnyAnnotationRoot | InteropZodObject = AnyAnnotationRoot | InteropZodObject, TMiddleware extends readonly AgentMiddleware[] = readonly AgentMiddleware[], TTools extends readonly (ClientTool | ServerTool)[] = readonly (ClientTool | ServerTool)[], TSubagents extends readonly AnySubAgent[] = readonly AnySubAgent[], TStreamTransformers extends ReadonlyArray<() => StreamTransformer<any>> = ReadonlyArray<() => StreamTransformer<any>>> extends AgentTypeConfig<TResponse, TState, TContext, TMiddleware, TTools, TStreamTransformers> {
2660
2794
  /** The subagents array type for type-safe streaming */
2661
2795
  Subagents: TSubagents;
2662
2796
  }
@@ -2671,6 +2805,7 @@ interface DefaultDeepAgentTypeConfig extends DeepAgentTypeConfig {
2671
2805
  Middleware: readonly AgentMiddleware[];
2672
2806
  Tools: readonly (ClientTool | ServerTool)[];
2673
2807
  Subagents: readonly AnySubAgent[];
2808
+ StreamTransformers: readonly [];
2674
2809
  }
2675
2810
  /**
2676
2811
  * DeepAgent extends ReactAgent with additional subagent type information.
@@ -2688,9 +2823,86 @@ interface DefaultDeepAgentTypeConfig extends DeepAgentTypeConfig {
2688
2823
  * type Subagents = InferDeepAgentSubagents<typeof agent>;
2689
2824
  * ```
2690
2825
  */
2691
- type DeepAgent<TTypes extends DeepAgentTypeConfig = DeepAgentTypeConfig> = ReactAgent<TTypes> & {
2692
- /** Type brand for DeepAgent type inference */readonly "~deepAgentTypes": TTypes;
2693
- };
2826
+ interface DeepAgent<TTypes extends DeepAgentTypeConfig = DeepAgentTypeConfig> extends ReactAgent<TTypes> {
2827
+ /** Type brand for DeepAgent type inference */
2828
+ readonly "~deepAgentTypes": TTypes;
2829
+ /**
2830
+ * Executes the agent with the v3 streaming interface, returning an
2831
+ * {@link DeepAgentRunStream} that provides ergonomic, typed projections for
2832
+ * messages, tool calls, subagents, and middleware events.
2833
+ *
2834
+ * Pass `version: "v3"` to opt into this projection-oriented stream. Omitting
2835
+ * `version` preserves the legacy internal LangGraph event-stream behavior
2836
+ * for compatibility with LangGraph Platform integrations.
2837
+ *
2838
+ * This v3 stream is experimental and its API may change in future releases.
2839
+ * It will become the default in a future major release.
2840
+ *
2841
+ * @param state - The initial state for the agent execution. Can be:
2842
+ * - An object containing `messages` array and any middleware-specific state properties
2843
+ * - A Command object for more advanced control flow
2844
+ *
2845
+ * @param config - Runtime configuration including:
2846
+ * @param config.version - Must be `"v3"` to use the {@link DeepAgentRunStream}
2847
+ * interface. The default legacy event stream is maintained for internal
2848
+ * integrations and should not be used for new user-facing agent streaming.
2849
+ * @param config.context - The context for the agent execution.
2850
+ * @param config.configurable - LangGraph configuration options like `thread_id`, `run_id`, etc.
2851
+ * @param config.store - The store for the agent execution for persisting state.
2852
+ * @param config.signal - An optional AbortSignal for the agent execution.
2853
+ * @param config.recursionLimit - The recursion limit for the agent execution.
2854
+ *
2855
+ * @returns A Promise that resolves to an {@link DeepAgentRunStream} providing:
2856
+ * - `run.messages` — all AI message lifecycles with streaming `.text` and `.reasoning`
2857
+ * - `run.toolCalls` — individual tool call streams with `.input`, `.output`, `.status`
2858
+ * - `run.subagents` — subagent delegation streams
2859
+ * - `run.middleware` — middleware lifecycle events (before/after agent/model)
2860
+ * - `run.values` — state snapshots (async iterable + promise-like)
2861
+ * - `run.output` — final agent state when the run completes
2862
+ * - `run.subgraphs` — child subgraph run streams
2863
+ * - `run.extensions` — merged projections from user-supplied transformers
2864
+ *
2865
+ * @example
2866
+ * ```typescript
2867
+ * const run = await agent.streamEvents(
2868
+ * {
2869
+ * messages: [{ role: "user", content: "What's the weather in Paris?" }],
2870
+ * },
2871
+ * { version: "v3" }
2872
+ * );
2873
+ *
2874
+ * // Stream all messages
2875
+ * for await (const msg of run.messages) {
2876
+ * for await (const token of msg.text) {
2877
+ * process.stdout.write(token);
2878
+ * }
2879
+ * }
2880
+ *
2881
+ * // Observe tool calls
2882
+ * for await (const call of run.toolCalls) {
2883
+ * console.log(`Tool: ${call.name}`, call.input);
2884
+ * console.log(`Result:`, await call.output);
2885
+ * }
2886
+ *
2887
+ * // Observe subagent delegations
2888
+ * for await (const subagent of run.subagents) {
2889
+ * console.log(`Subagent: ${subagent.name}`);
2890
+ *
2891
+ * for await (const msg of subagent.messages) {
2892
+ * for await (const token of msg.text) {
2893
+ * process.stdout.write(token);
2894
+ * }
2895
+ * }
2896
+ * }
2897
+ *
2898
+ * // Get final state
2899
+ * const state = await run.output;
2900
+ * ```
2901
+ */
2902
+ streamEvents: ((state: Parameters<ReactAgent<TTypes>["invoke"]>[0], config: NonNullable<Parameters<ReactAgent<TTypes>["invoke"]>[1]> & {
2903
+ version: "v3";
2904
+ }) => Promise<DeepAgentRunStream<Awaited<ReturnType<ReactAgent<TTypes>["invoke"]>>, readonly [...TTypes["Tools"], ...DeepAgentBuiltinToolsTuple], TTypes["Subagents"], InferDeepAgentStreamExtensions<TTypes["StreamTransformers"]>>>) & ReactAgent<TTypes>["streamEvents"];
2905
+ }
2694
2906
  /**
2695
2907
  * Helper type to resolve a DeepAgentTypeConfig from either:
2696
2908
  * - A DeepAgentTypeConfig directly
@@ -2770,8 +2982,9 @@ type InferSubagentReactAgentType<TSubagent extends SubAgent | CompiledSubAgent>
2770
2982
  * @typeParam TMiddleware - The middleware array type for proper type inference
2771
2983
  * @typeParam TSubagents - The subagents array type for extracting subagent middleware states
2772
2984
  * @typeParam TTools - The tools array type
2985
+ * @typeParam TStreamTransformers - Custom stream transformer factories
2773
2986
  */
2774
- interface CreateDeepAgentParams<TResponse extends SupportedResponseFormat = SupportedResponseFormat, ContextSchema extends AnnotationRoot<any> | InteropZodObject = AnnotationRoot<any>, TMiddleware extends readonly AgentMiddleware[] = readonly AgentMiddleware[], TSubagents extends readonly AnySubAgent[] = readonly AnySubAgent[], TTools extends readonly (ClientTool | ServerTool)[] = readonly (ClientTool | ServerTool)[]> {
2987
+ interface CreateDeepAgentParams<TResponse extends SupportedResponseFormat = SupportedResponseFormat, ContextSchema extends AnnotationRoot<any> | InteropZodObject = AnnotationRoot<any>, TMiddleware extends readonly AgentMiddleware[] = readonly AgentMiddleware[], TSubagents extends readonly AnySubAgent[] = readonly AnySubAgent[], TTools extends readonly (ClientTool | ServerTool)[] = readonly (ClientTool | ServerTool)[], TStreamTransformers extends ReadonlyArray<() => StreamTransformer<any>> = readonly []> {
2775
2988
  /** The model to use (model name string or LanguageModelLike instance). Defaults to claude-sonnet-4-5-20250929 */
2776
2989
  model?: BaseLanguageModel | string;
2777
2990
  /** Tools the agent should have access to */
@@ -2866,6 +3079,14 @@ interface CreateDeepAgentParams<TResponse extends SupportedResponseFormat = Supp
2866
3079
  * ```
2867
3080
  */
2868
3081
  permissions?: FilesystemPermission[];
3082
+ /**
3083
+ * Optional {@link StreamTransformer} factories to register with the underlying agent.
3084
+ *
3085
+ * Deepagents always registers its built-in subagent transformer; custom
3086
+ * transformers are appended after it and are exposed on `run.extensions`
3087
+ * when using `streamEvents(..., { version: "v3" })`.
3088
+ */
3089
+ streamTransformers?: TStreamTransformers;
2869
3090
  }
2870
3091
  //#endregion
2871
3092
  //#region src/agent.d.ts
@@ -2899,7 +3120,7 @@ interface CreateDeepAgentParams<TResponse extends SupportedResponseFormat = Supp
2899
3120
  * // result.research is properly typed as string
2900
3121
  * ```
2901
3122
  */
2902
- declare function createDeepAgent<TResponse extends SupportedResponseFormat = SupportedResponseFormat, ContextSchema extends InteropZodObject = InteropZodObject, const TMiddleware extends readonly AgentMiddleware[] = readonly [], const TSubagents extends readonly AnySubAgent[] = readonly [], const TTools extends readonly (ClientTool | ServerTool)[] = readonly []>(params?: CreateDeepAgentParams<TResponse, ContextSchema, TMiddleware, TSubagents, TTools>): DeepAgent<DeepAgentTypeConfig<InferStructuredResponse<TResponse>, undefined, ContextSchema, readonly [AgentMiddleware<_$zod_v30.ZodObject<{
3123
+ declare function createDeepAgent<TResponse extends SupportedResponseFormat = SupportedResponseFormat, ContextSchema extends InteropZodObject = InteropZodObject, const TMiddleware extends readonly AgentMiddleware[] = readonly [], const TSubagents extends readonly AnySubAgent[] = readonly [], const TTools extends readonly (ClientTool | ServerTool)[] = readonly [], const TStreamTransformers extends ReadonlyArray<() => StreamTransformer<any>> = readonly []>(params?: CreateDeepAgentParams<TResponse, ContextSchema, TMiddleware, TSubagents, TTools, TStreamTransformers>): DeepAgent<DeepAgentTypeConfig<InferStructuredResponse<TResponse>, undefined, ContextSchema, readonly [AgentMiddleware<_$zod_v30.ZodObject<{
2903
3124
  todos: _$zod_v30.ZodDefault<_$zod_v30.ZodArray<_$zod_v30.ZodObject<{
2904
3125
  content: _$zod_v30.ZodString;
2905
3126
  status: _$zod_v30.ZodEnum<["pending", "in_progress", "completed"]>;
@@ -3057,7 +3278,7 @@ declare function createDeepAgent<TResponse extends SupportedResponseFormat = Sup
3057
3278
  summaryMessage: z$2.ZodCustom<_messages.HumanMessage<_messages.MessageStructure<_messages.MessageToolSet>>, _messages.HumanMessage<_messages.MessageStructure<_messages.MessageToolSet>>>;
3058
3279
  filePath: z$2.ZodNullable<z$2.ZodString>;
3059
3280
  }, _$zod_v4_core0.$strip>>;
3060
- }, _$zod_v4_core0.$strip>, undefined, unknown, readonly (ClientTool | ServerTool)[]>, AgentMiddleware<undefined, undefined, unknown, readonly (ClientTool | ServerTool)[]>, ...TMiddleware, ...FlattenSubAgentMiddleware<TSubagents>], TTools, TSubagents>>;
3281
+ }, _$zod_v4_core0.$strip>, undefined, unknown, readonly (ClientTool | ServerTool)[]>, AgentMiddleware<undefined, undefined, unknown, readonly (ClientTool | ServerTool)[]>, ...TMiddleware, ...FlattenSubAgentMiddleware<TSubagents>], TTools, TSubagents, TStreamTransformers>>;
3061
3282
  //#endregion
3062
3283
  //#region src/errors.d.ts
3063
3284
  /**
@@ -3304,5 +3525,5 @@ declare function parseSkillMetadata(skillMdPath: string, source: "user" | "proje
3304
3525
  */
3305
3526
  declare function listSkills(options: ListSkillsOptions): SkillMetadata[];
3306
3527
  //#endregion
3307
- export { type AgentMemoryMiddlewareOptions, type AnyBackendProtocol, type AnySubAgent, type AsyncSubAgent, type AsyncSubAgentMiddlewareOptions, type AsyncTask, type AsyncTaskStatus, type BackendFactory, type BackendProtocol, type BackendProtocolV1, type BackendProtocolV2, type BackendRuntime, BaseSandbox, type CompiledSubAgent, type CompletionCallbackOptions, CompositeBackend, ConfigurationError, type ConfigurationErrorCode, type CreateDeepAgentParams, DEFAULT_GENERAL_PURPOSE_DESCRIPTION, DEFAULT_SUBAGENT_PROMPT, type DeepAgent, type DeepAgentTypeConfig, type DefaultDeepAgentTypeConfig, type EditResult, type ExecuteResponse, type ExtractSubAgentMiddleware, type FileData, type FileDownloadResponse, type FileInfo, type FileOperationError, type FileUploadResponse, FilesystemBackend, type FilesystemMiddlewareOptions, type FilesystemOperation, type FilesystemPermission, type FlattenSubAgentMiddleware, GENERAL_PURPOSE_SUBAGENT, type GlobResult, type GrepMatch, type GrepResult, type InferDeepAgentSubagents, type InferDeepAgentType, type InferStructuredResponse, type InferSubAgentMiddlewareStates, type InferSubagentByName, type InferSubagentReactAgentType, LangSmithSandbox, type LangSmithSandboxOptions, type ListSkillsOptions, type SkillMetadata as LoaderSkillMetadata, LocalShellBackend, type LocalShellBackendOptions, type LsResult, MAX_SKILL_DESCRIPTION_LENGTH, MAX_SKILL_FILE_SIZE, MAX_SKILL_NAME_LENGTH, type MaybePromise, type MemoryMiddlewareOptions, type MergedDeepAgentState, type PermissionMode, type ReadRawResult, type ReadResult, type ResolveDeepAgentTypeConfig, type SandboxBackendProtocol, type SandboxBackendProtocolV1, type SandboxBackendProtocolV2, type SandboxDeleteOptions, SandboxError, type SandboxErrorCode, type SandboxGetOrCreateOptions, type SandboxInfo, type SandboxListOptions, type SandboxListResponse, type Settings, type SettingsOptions, type SkillMetadata$1 as SkillMetadata, type SkillsMiddlewareOptions, type StateAndStore, StateBackend, StoreBackend, type StoreBackendContext, type StoreBackendNamespaceFactory, type StoreBackendOptions, type SubAgent, type SubAgentMiddlewareOptions, type SupportedResponseFormat, TASK_SYSTEM_PROMPT, type WriteResult, adaptBackendProtocol, adaptSandboxProtocol, computeSummarizationDefaults, createAgentMemoryMiddleware, createAsyncSubAgentMiddleware, createCompletionCallbackMiddleware, createDeepAgent, createFilesystemMiddleware, createMemoryMiddleware, createPatchToolCallsMiddleware, createSettings, createSkillsMiddleware, createSubAgentMiddleware, createSummarizationMiddleware, filesValue, findProjectRoot, isAsyncSubAgent, isSandboxBackend, isSandboxProtocol, listSkills, parseSkillMetadata, resolveBackend };
3528
+ export { type AgentMemoryMiddlewareOptions, type AnyBackendProtocol, type AnySubAgent, type AsyncSubAgent, type AsyncSubAgentMiddlewareOptions, type AsyncTask, type AsyncTaskStatus, type BackendFactory, type BackendProtocol, type BackendProtocolV1, type BackendProtocolV2, type BackendRuntime, BaseSandbox, type CompiledSubAgent, type CompletionCallbackOptions, CompositeBackend, ConfigurationError, type ConfigurationErrorCode, type CreateDeepAgentParams, DEFAULT_GENERAL_PURPOSE_DESCRIPTION, DEFAULT_SUBAGENT_PROMPT, type DeepAgent, type DeepAgentRunStream, type DeepAgentTypeConfig, type DefaultDeepAgentTypeConfig, type EditResult, type ExecuteResponse, type ExtractSubAgentMiddleware, type FileData, type FileDownloadResponse, type FileInfo, type FileOperationError, type FileUploadResponse, FilesystemBackend, type FilesystemMiddlewareOptions, type FilesystemOperation, type FilesystemPermission, type FlattenSubAgentMiddleware, GENERAL_PURPOSE_SUBAGENT, type GlobResult, type GrepMatch, type GrepResult, type InferDeepAgentSubagents, type InferDeepAgentType, type InferStructuredResponse, type InferSubAgentMiddlewareStates, type InferSubagentByName, type InferSubagentReactAgentType, LangSmithSandbox, type LangSmithSandboxOptions, type ListSkillsOptions, type SkillMetadata as LoaderSkillMetadata, LocalShellBackend, type LocalShellBackendOptions, type LsResult, MAX_SKILL_DESCRIPTION_LENGTH, MAX_SKILL_FILE_SIZE, MAX_SKILL_NAME_LENGTH, type MaybePromise, type MemoryMiddlewareOptions, type MergedDeepAgentState, type PermissionMode, type ReadRawResult, type ReadResult, type ResolveDeepAgentTypeConfig, type SandboxBackendProtocol, type SandboxBackendProtocolV1, type SandboxBackendProtocolV2, type SandboxDeleteOptions, SandboxError, type SandboxErrorCode, type SandboxGetOrCreateOptions, type SandboxInfo, type SandboxListOptions, type SandboxListResponse, type Settings, type SettingsOptions, type SkillMetadata$1 as SkillMetadata, type SkillsMiddlewareOptions, type StateAndStore, StateBackend, StoreBackend, type StoreBackendContext, type StoreBackendNamespaceFactory, type StoreBackendOptions, type SubAgent, type SubAgentMiddlewareOptions, type SubagentRunStream, type SupportedResponseFormat, TASK_SYSTEM_PROMPT, type WriteResult, adaptBackendProtocol, adaptSandboxProtocol, computeSummarizationDefaults, createAgentMemoryMiddleware, createAsyncSubAgentMiddleware, createCompletionCallbackMiddleware, createDeepAgent, createFilesystemMiddleware, createMemoryMiddleware, createPatchToolCallsMiddleware, createSettings, createSkillsMiddleware, createSubAgentMiddleware, createSubagentTransformer, createSummarizationMiddleware, filesValue, findProjectRoot, isAsyncSubAgent, isSandboxBackend, isSandboxProtocol, listSkills, parseSkillMetadata, resolveBackend };
3308
3529
  //# sourceMappingURL=index.d.cts.map