deepagents 1.15.1 → 1.16.1

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.
@@ -332,6 +332,12 @@ interface FileDataV2 {
332
332
  content: string | Uint8Array;
333
333
  /** MIME type of the file (e.g. "image/png", "text/plain") */
334
334
  mimeType: string;
335
+ /**
336
+ * How string `content` is encoded. `"base64"` marks binary bytes stored as
337
+ * base64 text so they survive JSON serialization (e.g. a checkpointer).
338
+ * Omitted means plain text.
339
+ */
340
+ encoding?: "utf-8" | "base64";
335
341
  /** ISO format timestamp of creation */
336
342
  created_at: string;
337
343
  /** ISO format timestamp of last modification */
@@ -1931,6 +1937,14 @@ declare class StateBackend implements BackendProtocolV2 {
1931
1937
  uploadFiles(files: Array<[string, Uint8Array]>): FileUploadResponse[] & {
1932
1938
  filesUpdate?: Record<string, FileData>;
1933
1939
  };
1940
+ /**
1941
+ * Build FileData for an uploaded file.
1942
+ *
1943
+ * In v2, bytes at a binary MIME type stay binary, and bytes at a text MIME
1944
+ * type that are not valid UTF-8 are kept as application/octet-stream rather
1945
+ * than lossily decoded. v1 cannot hold binary, so it always decodes as text.
1946
+ */
1947
+ private createUploadFileData;
1934
1948
  /**
1935
1949
  * Download multiple files.
1936
1950
  *
@@ -2392,6 +2406,9 @@ interface CompletionCallbackOptions {
2392
2406
  * If `callbackThreadId` is not present in state, the middleware does
2393
2407
  * nothing.
2394
2408
  *
2409
+ * @deprecated `createDeepAgent` now notifies the launching agent on its own;
2410
+ * adding this middleware too sends the parent two notifications per task.
2411
+ *
2395
2412
  * @param options - Configuration options.
2396
2413
  * @returns An `AgentMiddleware` instance.
2397
2414
  *
@@ -2543,6 +2560,11 @@ declare function createSummarizationMiddleware(options: SummarizationMiddlewareO
2543
2560
  * Authentication for LangGraph Platform is handled automatically by the SDK
2544
2561
  * via environment variables (`LANGGRAPH_API_KEY`, `LANGSMITH_API_KEY`, or
2545
2562
  * `LANGCHAIN_API_KEY`). For self-hosted servers, pass custom auth via `headers`.
2563
+ *
2564
+ * Subagents on this deployment (no `url`) nest under the parent's trace when tracing is on.
2565
+ * Each task's thread has `parent_thread_id` metadata naming the parent's thread, so
2566
+ * an app can list a parent's subagent threads with the LangGraph SDK:
2567
+ * `client.threads.search({ metadata: { parent_thread_id } })`.
2546
2568
  */
2547
2569
  interface AsyncSubAgent {
2548
2570
  /** Unique identifier for the async subagent. */
@@ -2551,18 +2573,70 @@ interface AsyncSubAgent {
2551
2573
  description: string;
2552
2574
  /** The graph name or assistant ID on the Agent Protocol server. */
2553
2575
  graphId: string;
2554
- /** URL of the Agent Protocol server. Defaults to the LangGraph SDK's default endpoint. */
2576
+ /**
2577
+ * URL of the Agent Protocol server. Omit for a subagent on the same Agent Server
2578
+ * deployment, which gives running graphs its address; elsewhere, defaults to the
2579
+ * LangGraph SDK's default endpoint.
2580
+ */
2555
2581
  url?: string;
2556
2582
  /** Additional headers to include in requests to the server (e.g. for custom auth). */
2557
2583
  headers?: Record<string, string>;
2584
+ /** URL the Agent Server calls whenever a run of this subagent finishes. */
2585
+ webhook?: string;
2586
+ /**
2587
+ * Whether this subagent may wake this agent when it finishes while this agent is idle. Defaults to `true`.
2588
+ *
2589
+ * Set it to `false` when the application delivers results itself, for example
2590
+ * through `webhook`. This agent still sees the subagent's updates while it runs.
2591
+ *
2592
+ * @experimental `notifyParent` may change along with how subagents wake their parent.
2593
+ */
2594
+ notifyParent?: boolean;
2595
+ /**
2596
+ * How `update_async_task` sends a follow-up while a run is active. Defaults to `"interrupt"`.
2597
+ *
2598
+ * - `"interrupt"`: stop the current run and start the follow-up.
2599
+ * - `"enqueue"`: queue the follow-up behind the current run. The task is `pending`
2600
+ * until the follow-up starts. If the current run stops to ask its user for
2601
+ * approval or input, the follow-up still starts, and that request is dropped.
2602
+ *
2603
+ * @experimental `updateStrategy` may change along with how queued follow-ups are tracked.
2604
+ */
2605
+ updateStrategy?: UpdateStrategy;
2606
+ /**
2607
+ * What the subagent starts with. Defaults to `"isolated"`.
2608
+ *
2609
+ * - `"isolated"`: only the delegated task description.
2610
+ * - `"fork"`: a snapshot of the parent's conversation at launch, followed by
2611
+ * the task description, for background work.
2612
+ *
2613
+ * Fork mode copies conversation history, not the parent's model, prompt, tools
2614
+ * or middleware; match them on the remote agent for prompt-cache reuse.
2615
+ *
2616
+ * Media the parent offloaded with `offloadBinaryContent` is forked as references:
2617
+ * the subagent must be a deep agent, and shares the parent's backend to see it.
2618
+ *
2619
+ * @experimental `mode: "fork"` may change in a future release.
2620
+ */
2621
+ mode?: "isolated" | "fork";
2558
2622
  }
2623
+ /** How a follow-up runs while the subagent is busy, as {@link AsyncSubAgent.updateStrategy}. */
2624
+ type UpdateStrategy = "interrupt" | "enqueue";
2559
2625
  /**
2560
2626
  * Possible statuses for an async subagent task.
2561
2627
  *
2562
2628
  * Statuses set by the middleware tools: `"running"`, `"success"`, `"error"`, `"cancelled"`.
2563
2629
  * Statuses that may be returned by the remote server: `"pending"`, `"timeout"`, `"interrupted"`.
2630
+ *
2631
+ * `"waiting"` means the subagent paused for its user (an approval or a
2632
+ * question), who answers it on the subagent's own thread.
2633
+ *
2634
+ * `"pending"` means the latest run hasn't started yet. After a queued follow-up,
2635
+ * an earlier run may still be working.
2636
+ *
2637
+ * @experimental `"waiting"` is experimental and subject to change.
2564
2638
  */
2565
- type AsyncTaskStatus = "pending" | "running" | "success" | "error" | "cancelled" | "timeout" | "interrupted";
2639
+ type AsyncTaskStatus = "pending" | "running" | "waiting" | "success" | "error" | "cancelled" | "timeout" | "interrupted";
2566
2640
  /**
2567
2641
  * A tracked async subagent task persisted in agent state.
2568
2642
  *
@@ -2577,8 +2651,15 @@ interface AsyncTask {
2577
2651
  agentName: string;
2578
2652
  /** Thread ID on the remote server. */
2579
2653
  threadId: string;
2580
- /** Run ID for the current execution on the thread. */
2654
+ /** Run ID of the newest run this task knows of on its thread. A queued follow-up's run may not have started yet. */
2581
2655
  runId: string;
2656
+ /**
2657
+ * Earlier runs of this task, oldest first, from before a queued follow-up.
2658
+ *
2659
+ * Their notifications don't complete the task, and cancelling the task also
2660
+ * cancels any that are still active. Set only with `updateStrategy: "enqueue"`.
2661
+ */
2662
+ supersededRunIds?: string[];
2582
2663
  /** Current task status. */
2583
2664
  status: AsyncTaskStatus;
2584
2665
  /** ISO timestamp of when the task was launched. */
@@ -2590,12 +2671,6 @@ interface AsyncTask {
2590
2671
  /** ISO timestamp of the most recent status poll via the check tool. */
2591
2672
  checkedAt?: string;
2592
2673
  }
2593
- /**
2594
- * Task statuses that will never change.
2595
- *
2596
- * When listing tasks, live-status fetches are skipped for tasks whose
2597
- * cached status is in this set, since they are guaranteed to be final.
2598
- */
2599
2674
  /**
2600
2675
  * Names of the tools added by the async subagent middleware.
2601
2676
  *
@@ -2603,6 +2678,24 @@ interface AsyncTask {
2603
2678
  * surface a `ConfigurationError` if a user-provided tool collides.
2604
2679
  */
2605
2680
  declare const ASYNC_TASK_TOOL_NAMES: readonly ["start_async_task", "check_async_task", "update_async_task", "cancel_async_task", "list_async_tasks"];
2681
+ /**
2682
+ * How an async subagent's task ended or paused, as reported to the agent that started it.
2683
+ *
2684
+ * A notification message carries it in `additional_kwargs.deepagents_notification`,
2685
+ * so apps can tell these messages from the user's. Fields are snake_case, as in Python.
2686
+ *
2687
+ * @experimental This shape is experimental and subject to change.
2688
+ */
2689
+ interface TaskEvent {
2690
+ /** The task's ID (the subagent's thread). */
2691
+ task_id: string;
2692
+ /** The async subagent's name, as in the task's `AsyncTask.agentName`. */
2693
+ agent_name: string;
2694
+ /** `waiting` means the subagent paused for input or approval; `cancelled`, that its run was cancelled on the server. */
2695
+ status: "success" | "error" | "timeout" | "cancelled" | "waiting";
2696
+ /** The subagent run that ended. */
2697
+ run_id?: string;
2698
+ }
2606
2699
  /**
2607
2700
  * Options for creating async subagent middleware.
2608
2701
  */
@@ -2623,6 +2716,11 @@ interface AsyncSubAgentMiddlewareOptions {
2623
2716
  * Works with any Agent Protocol-compliant server — LangGraph Platform (managed)
2624
2717
  * or self-hosted (e.g. a Hono/Express server implementing the Agent Protocol spec).
2625
2718
  *
2719
+ * On an Agent Server, the agent is told when its tasks finish, fail or wait for
2720
+ * the user: by checking while it runs, and through a new run when it's idle.
2721
+ *
2722
+ * @experimental Task notifications are experimental and subject to change.
2723
+ *
2626
2724
  * @throws {Error} If no async subagents are provided or names are duplicated.
2627
2725
  *
2628
2726
  * @example
@@ -2650,6 +2748,7 @@ declare function createAsyncSubAgentMiddleware(options: AsyncSubAgentMiddlewareO
2650
2748
  agentName: string;
2651
2749
  threadId: string;
2652
2750
  runId: string;
2751
+ supersededRunIds?: string[] | undefined;
2653
2752
  status: string;
2654
2753
  createdAt: string;
2655
2754
  description?: string | undefined;
@@ -2660,6 +2759,7 @@ declare function createAsyncSubAgentMiddleware(options: AsyncSubAgentMiddlewareO
2660
2759
  agentName: string;
2661
2760
  threadId: string;
2662
2761
  runId: string;
2762
+ supersededRunIds?: string[] | undefined;
2663
2763
  status: string;
2664
2764
  createdAt: string;
2665
2765
  description?: string | undefined;
@@ -4710,5 +4810,5 @@ declare function createDeepAgent<TResponse extends SupportedResponseFormat = Sup
4710
4810
  }, import("zod/v4/core").$strip>>;
4711
4811
  }, import("zod/v4/core").$strip>, undefined, unknown, readonly (ServerTool | ClientTool)[], readonly []>, AgentMiddleware<undefined, undefined, unknown, readonly (ServerTool | ClientTool)[], readonly []>, ...TMiddleware, ...FlattenSubAgentMiddleware<TSubagents>], TTools, TSubagents, TStreamTransformers>>;
4712
4812
  //#endregion
4713
- export { scrubUnsupportedMultimodalContent as $, TASK_SYSTEM_PROMPT as $t, createSettings as A, SandboxInfo as An, SubAgent as At, FlattenSubAgentMiddleware as B, SandboxBackendProtocolV2 as Bn, serializeProfile as Bt, listSkills as C, ReadRawResult as Cn, createPatchToolCallsMiddleware as Ct, filesValue as D, SandboxError as Dn, ForkedSubAgent as Dt, createAgentMemoryMiddleware as E, SandboxDeleteOptions as En, DEFAULT_SUBAGENT_PROMPT as Et, CreateDeepAgentParams as F, applyGrepMaxCount as Fn, registerHarnessProfile as Ft, InferSubagentByName as G, HarnessProfileOptions as Gt, InferDeepAgentType as H, SandboxBackendProtocolV1 as Hn, createHarnessProfile as Ht, DeepAgent as I, isSandboxBackend as In, HarnessProfileConfigData as It, ResolveDeepAgentTypeConfig as J, ConfigurationErrorCode as Jt, InferSubagentReactAgentType as K, REQUIRED_MIDDLEWARE_NAMES as Kt, DeepAgentTypeConfig as L, isSandboxProtocol as Ln, generalPurposeSubagentConfigSchema as Lt, DeepAgentRunStream as M, SandboxListResponse as Mn, createSubAgent as Mt, SubagentRunStream$1 as N, StateAndStore as Nn, createSubAgentMiddleware as Nt, Settings as O, SandboxErrorCode as On, GENERAL_PURPOSE_SUBAGENT as Ot, AnySubAgent as P, WriteResult as Pn, getHarnessProfile as Pt, multimodalBlockSupported as Q, SystemPromptConfig as Qt, DefaultDeepAgentTypeConfig as R, resolveBackend as Rn, harnessProfileConfigSchema as Rt, SkillMetadata as S, MaybePromise as Sn, StateBackend as St, AgentMemoryMiddlewareOptions as T, SandboxBackendProtocol as Tn, DEFAULT_GENERAL_PURPOSE_DESCRIPTION as Tt, InferStructuredResponse as U, GeneralPurposeSubagentConfig as Ut, InferDeepAgentSubagents as V, BackendProtocolV1 as Vn, EMPTY_HARNESS_PROFILE as Vt, InferSubAgentMiddlewareStates as W, HarnessProfile as Wt, MULTIMODAL_BLOCK_TYPES as X, BASE_AGENT_PROMPT as Xt, SupportedResponseFormat as Y, ASYNC_TASK_SYSTEM_PROMPT as Yt, createUnsupportedContentMiddleware as Z, EXECUTION_SYSTEM_PROMPT as Zt, StoreBackend as _, FileUploadResponse as _n, createSkillsMiddleware as _t, adaptBackendProtocol as a, PermissionMode as an, isAsyncSubAgent as at, StoreBackendOptions as b, GrepResult as bn, MemoryMiddlewareOptions as bt, LangSmithSandbox as c, BackendProtocol as cn, CompletionCallbackOptions as ct, BaseSandbox as d, EditResult as dn, MAX_SKILL_FILE_SIZE as dt, FilesystemMiddlewareOptions as en, AsyncSubAgent as et, LocalShellBackend as f, ExecuteResponse as fn, MAX_SKILL_NAME_LENGTH as ft, FilesystemBackend as g, FileOperationError as gn, SkillsMiddlewareOptions as gt, CompositeBackend as h, FileInfo as hn, SkillToolResolver as ht, LangSmithStartSandboxOptions as i, FilesystemPermission as in, createAsyncSubAgentMiddleware as it, findProjectRoot as j, SandboxListOptions as jn, SubAgentMiddlewareOptions as jt, SettingsOptions as k, SandboxGetOrCreateOptions as kn, SUBAGENT_RESPONSE_FORMAT_CONFIG_KEY as kt, LangSmithSandboxCreateOptions as l, BackendRuntime as ln, createCompletionCallbackMiddleware as lt, ContextHubBackend as m, FileDownloadResponse as mn, SkillMetadataEntry as mt, LangSmithCaptureSnapshotOptions as n, createFilesystemMiddleware as nn, AsyncTask as nt, adaptSandboxProtocol as o, AnyBackendProtocol as on, computeSummarizationDefaults as ot, LocalShellBackendOptions as p, FileData as pn, SkillMetadata$1 as pt, MergedDeepAgentState as q, ConfigurationError as qt, LangSmithSnapshot as r, FilesystemOperation as rn, AsyncTaskStatus as rt, normalizeReadPagination as s, BackendFactory as sn, createSummarizationMiddleware as st, createDeepAgent as t, FsToolName as tn, AsyncSubAgentMiddlewareOptions as tt, LangSmithSandboxOptions as u, DeleteResult as un, MAX_SKILL_DESCRIPTION_LENGTH as ut, StoreBackendContext as v, GlobResult as vn, pinnedSkillsValue as vt, parseSkillMetadata as w, ReadResult as wn, CompiledSubAgent as wt, ListSkillsOptions as x, LsResult as xn, createMemoryMiddleware as xt, StoreBackendNamespaceFactory as y, GrepMatch as yn, skillsMetadataValue as yt, ExtractSubAgentMiddleware as z, BackendProtocolV2 as zn, parseHarnessProfileConfig as zt };
4714
- //# sourceMappingURL=agent-CYPLa3Vi.d.cts.map
4813
+ export { scrubUnsupportedMultimodalContent as $, SystemPromptConfig as $t, createSettings as A, SandboxGetOrCreateOptions as An, SUBAGENT_RESPONSE_FORMAT_CONFIG_KEY as At, FlattenSubAgentMiddleware as B, BackendProtocolV2 as Bn, parseHarnessProfileConfig as Bt, listSkills as C, MaybePromise as Cn, StateBackend as Ct, filesValue as D, SandboxDeleteOptions as Dn, DEFAULT_SUBAGENT_PROMPT as Dt, createAgentMemoryMiddleware as E, SandboxBackendProtocol as En, DEFAULT_GENERAL_PURPOSE_DESCRIPTION as Et, CreateDeepAgentParams as F, WriteResult as Fn, getHarnessProfile as Ft, InferSubagentByName as G, HarnessProfile as Gt, InferDeepAgentType as H, BackendProtocolV1 as Hn, EMPTY_HARNESS_PROFILE as Ht, DeepAgent as I, applyGrepMaxCount as In, registerHarnessProfile as It, ResolveDeepAgentTypeConfig as J, ConfigurationError as Jt, InferSubagentReactAgentType as K, HarnessProfileOptions as Kt, DeepAgentTypeConfig as L, isSandboxBackend as Ln, HarnessProfileConfigData as Lt, DeepAgentRunStream as M, SandboxListOptions as Mn, SubAgentMiddlewareOptions as Mt, SubagentRunStream$1 as N, SandboxListResponse as Nn, createSubAgent as Nt, Settings as O, SandboxError as On, ForkedSubAgent as Ot, AnySubAgent as P, StateAndStore as Pn, createSubAgentMiddleware as Pt, multimodalBlockSupported as Q, EXECUTION_SYSTEM_PROMPT as Qt, DefaultDeepAgentTypeConfig as R, isSandboxProtocol as Rn, generalPurposeSubagentConfigSchema as Rt, SkillMetadata as S, LsResult as Sn, createMemoryMiddleware as St, AgentMemoryMiddlewareOptions as T, ReadResult as Tn, CompiledSubAgent as Tt, InferStructuredResponse as U, SandboxBackendProtocolV1 as Un, createHarnessProfile as Ut, InferDeepAgentSubagents as V, SandboxBackendProtocolV2 as Vn, serializeProfile as Vt, InferSubAgentMiddlewareStates as W, GeneralPurposeSubagentConfig as Wt, MULTIMODAL_BLOCK_TYPES as X, ASYNC_TASK_SYSTEM_PROMPT as Xt, SupportedResponseFormat as Y, ConfigurationErrorCode as Yt, createUnsupportedContentMiddleware as Z, BASE_AGENT_PROMPT as Zt, StoreBackend as _, FileOperationError as _n, SkillsMiddlewareOptions as _t, adaptBackendProtocol as a, FilesystemPermission as an, createAsyncSubAgentMiddleware as at, StoreBackendOptions as b, GrepMatch as bn, skillsMetadataValue as bt, LangSmithSandbox as c, BackendFactory as cn, createSummarizationMiddleware as ct, BaseSandbox as d, DeleteResult as dn, MAX_SKILL_DESCRIPTION_LENGTH as dt, TASK_SYSTEM_PROMPT as en, AsyncSubAgent as et, LocalShellBackend as f, EditResult as fn, MAX_SKILL_FILE_SIZE as ft, FilesystemBackend as g, FileInfo as gn, SkillToolResolver as gt, CompositeBackend as h, FileDownloadResponse as hn, SkillMetadataEntry as ht, LangSmithStartSandboxOptions as i, FilesystemOperation as in, TaskEvent as it, findProjectRoot as j, SandboxInfo as jn, SubAgent as jt, SettingsOptions as k, SandboxErrorCode as kn, GENERAL_PURPOSE_SUBAGENT as kt, LangSmithSandboxCreateOptions as l, BackendProtocol as ln, CompletionCallbackOptions as lt, ContextHubBackend as m, FileData as mn, SkillMetadata$1 as mt, LangSmithCaptureSnapshotOptions as n, FsToolName as nn, AsyncTask as nt, adaptSandboxProtocol as o, PermissionMode as on, isAsyncSubAgent as ot, LocalShellBackendOptions as p, ExecuteResponse as pn, MAX_SKILL_NAME_LENGTH as pt, MergedDeepAgentState as q, REQUIRED_MIDDLEWARE_NAMES as qt, LangSmithSnapshot as r, createFilesystemMiddleware as rn, AsyncTaskStatus as rt, normalizeReadPagination as s, AnyBackendProtocol as sn, computeSummarizationDefaults as st, createDeepAgent as t, FilesystemMiddlewareOptions as tn, AsyncSubAgentMiddlewareOptions as tt, LangSmithSandboxOptions as u, BackendRuntime as un, createCompletionCallbackMiddleware as ut, StoreBackendContext as v, FileUploadResponse as vn, createSkillsMiddleware as vt, parseSkillMetadata as w, ReadRawResult as wn, createPatchToolCallsMiddleware as wt, ListSkillsOptions as x, GrepResult as xn, MemoryMiddlewareOptions as xt, StoreBackendNamespaceFactory as y, GlobResult as yn, pinnedSkillsValue as yt, ExtractSubAgentMiddleware as z, resolveBackend as zn, harnessProfileConfigSchema as zt };
4814
+ //# sourceMappingURL=agent-BErEClzV.d.cts.map
@@ -332,6 +332,12 @@ interface FileDataV2 {
332
332
  content: string | Uint8Array;
333
333
  /** MIME type of the file (e.g. "image/png", "text/plain") */
334
334
  mimeType: string;
335
+ /**
336
+ * How string `content` is encoded. `"base64"` marks binary bytes stored as
337
+ * base64 text so they survive JSON serialization (e.g. a checkpointer).
338
+ * Omitted means plain text.
339
+ */
340
+ encoding?: "utf-8" | "base64";
335
341
  /** ISO format timestamp of creation */
336
342
  created_at: string;
337
343
  /** ISO format timestamp of last modification */
@@ -1931,6 +1937,14 @@ declare class StateBackend implements BackendProtocolV2 {
1931
1937
  uploadFiles(files: Array<[string, Uint8Array]>): FileUploadResponse[] & {
1932
1938
  filesUpdate?: Record<string, FileData>;
1933
1939
  };
1940
+ /**
1941
+ * Build FileData for an uploaded file.
1942
+ *
1943
+ * In v2, bytes at a binary MIME type stay binary, and bytes at a text MIME
1944
+ * type that are not valid UTF-8 are kept as application/octet-stream rather
1945
+ * than lossily decoded. v1 cannot hold binary, so it always decodes as text.
1946
+ */
1947
+ private createUploadFileData;
1934
1948
  /**
1935
1949
  * Download multiple files.
1936
1950
  *
@@ -2392,6 +2406,9 @@ interface CompletionCallbackOptions {
2392
2406
  * If `callbackThreadId` is not present in state, the middleware does
2393
2407
  * nothing.
2394
2408
  *
2409
+ * @deprecated `createDeepAgent` now notifies the launching agent on its own;
2410
+ * adding this middleware too sends the parent two notifications per task.
2411
+ *
2395
2412
  * @param options - Configuration options.
2396
2413
  * @returns An `AgentMiddleware` instance.
2397
2414
  *
@@ -2543,6 +2560,11 @@ declare function createSummarizationMiddleware(options: SummarizationMiddlewareO
2543
2560
  * Authentication for LangGraph Platform is handled automatically by the SDK
2544
2561
  * via environment variables (`LANGGRAPH_API_KEY`, `LANGSMITH_API_KEY`, or
2545
2562
  * `LANGCHAIN_API_KEY`). For self-hosted servers, pass custom auth via `headers`.
2563
+ *
2564
+ * Subagents on this deployment (no `url`) nest under the parent's trace when tracing is on.
2565
+ * Each task's thread has `parent_thread_id` metadata naming the parent's thread, so
2566
+ * an app can list a parent's subagent threads with the LangGraph SDK:
2567
+ * `client.threads.search({ metadata: { parent_thread_id } })`.
2546
2568
  */
2547
2569
  interface AsyncSubAgent {
2548
2570
  /** Unique identifier for the async subagent. */
@@ -2551,18 +2573,70 @@ interface AsyncSubAgent {
2551
2573
  description: string;
2552
2574
  /** The graph name or assistant ID on the Agent Protocol server. */
2553
2575
  graphId: string;
2554
- /** URL of the Agent Protocol server. Defaults to the LangGraph SDK's default endpoint. */
2576
+ /**
2577
+ * URL of the Agent Protocol server. Omit for a subagent on the same Agent Server
2578
+ * deployment, which gives running graphs its address; elsewhere, defaults to the
2579
+ * LangGraph SDK's default endpoint.
2580
+ */
2555
2581
  url?: string;
2556
2582
  /** Additional headers to include in requests to the server (e.g. for custom auth). */
2557
2583
  headers?: Record<string, string>;
2584
+ /** URL the Agent Server calls whenever a run of this subagent finishes. */
2585
+ webhook?: string;
2586
+ /**
2587
+ * Whether this subagent may wake this agent when it finishes while this agent is idle. Defaults to `true`.
2588
+ *
2589
+ * Set it to `false` when the application delivers results itself, for example
2590
+ * through `webhook`. This agent still sees the subagent's updates while it runs.
2591
+ *
2592
+ * @experimental `notifyParent` may change along with how subagents wake their parent.
2593
+ */
2594
+ notifyParent?: boolean;
2595
+ /**
2596
+ * How `update_async_task` sends a follow-up while a run is active. Defaults to `"interrupt"`.
2597
+ *
2598
+ * - `"interrupt"`: stop the current run and start the follow-up.
2599
+ * - `"enqueue"`: queue the follow-up behind the current run. The task is `pending`
2600
+ * until the follow-up starts. If the current run stops to ask its user for
2601
+ * approval or input, the follow-up still starts, and that request is dropped.
2602
+ *
2603
+ * @experimental `updateStrategy` may change along with how queued follow-ups are tracked.
2604
+ */
2605
+ updateStrategy?: UpdateStrategy;
2606
+ /**
2607
+ * What the subagent starts with. Defaults to `"isolated"`.
2608
+ *
2609
+ * - `"isolated"`: only the delegated task description.
2610
+ * - `"fork"`: a snapshot of the parent's conversation at launch, followed by
2611
+ * the task description, for background work.
2612
+ *
2613
+ * Fork mode copies conversation history, not the parent's model, prompt, tools
2614
+ * or middleware; match them on the remote agent for prompt-cache reuse.
2615
+ *
2616
+ * Media the parent offloaded with `offloadBinaryContent` is forked as references:
2617
+ * the subagent must be a deep agent, and shares the parent's backend to see it.
2618
+ *
2619
+ * @experimental `mode: "fork"` may change in a future release.
2620
+ */
2621
+ mode?: "isolated" | "fork";
2558
2622
  }
2623
+ /** How a follow-up runs while the subagent is busy, as {@link AsyncSubAgent.updateStrategy}. */
2624
+ type UpdateStrategy = "interrupt" | "enqueue";
2559
2625
  /**
2560
2626
  * Possible statuses for an async subagent task.
2561
2627
  *
2562
2628
  * Statuses set by the middleware tools: `"running"`, `"success"`, `"error"`, `"cancelled"`.
2563
2629
  * Statuses that may be returned by the remote server: `"pending"`, `"timeout"`, `"interrupted"`.
2630
+ *
2631
+ * `"waiting"` means the subagent paused for its user (an approval or a
2632
+ * question), who answers it on the subagent's own thread.
2633
+ *
2634
+ * `"pending"` means the latest run hasn't started yet. After a queued follow-up,
2635
+ * an earlier run may still be working.
2636
+ *
2637
+ * @experimental `"waiting"` is experimental and subject to change.
2564
2638
  */
2565
- type AsyncTaskStatus = "pending" | "running" | "success" | "error" | "cancelled" | "timeout" | "interrupted";
2639
+ type AsyncTaskStatus = "pending" | "running" | "waiting" | "success" | "error" | "cancelled" | "timeout" | "interrupted";
2566
2640
  /**
2567
2641
  * A tracked async subagent task persisted in agent state.
2568
2642
  *
@@ -2577,8 +2651,15 @@ interface AsyncTask {
2577
2651
  agentName: string;
2578
2652
  /** Thread ID on the remote server. */
2579
2653
  threadId: string;
2580
- /** Run ID for the current execution on the thread. */
2654
+ /** Run ID of the newest run this task knows of on its thread. A queued follow-up's run may not have started yet. */
2581
2655
  runId: string;
2656
+ /**
2657
+ * Earlier runs of this task, oldest first, from before a queued follow-up.
2658
+ *
2659
+ * Their notifications don't complete the task, and cancelling the task also
2660
+ * cancels any that are still active. Set only with `updateStrategy: "enqueue"`.
2661
+ */
2662
+ supersededRunIds?: string[];
2582
2663
  /** Current task status. */
2583
2664
  status: AsyncTaskStatus;
2584
2665
  /** ISO timestamp of when the task was launched. */
@@ -2590,12 +2671,6 @@ interface AsyncTask {
2590
2671
  /** ISO timestamp of the most recent status poll via the check tool. */
2591
2672
  checkedAt?: string;
2592
2673
  }
2593
- /**
2594
- * Task statuses that will never change.
2595
- *
2596
- * When listing tasks, live-status fetches are skipped for tasks whose
2597
- * cached status is in this set, since they are guaranteed to be final.
2598
- */
2599
2674
  /**
2600
2675
  * Names of the tools added by the async subagent middleware.
2601
2676
  *
@@ -2603,6 +2678,24 @@ interface AsyncTask {
2603
2678
  * surface a `ConfigurationError` if a user-provided tool collides.
2604
2679
  */
2605
2680
  declare const ASYNC_TASK_TOOL_NAMES: readonly ["start_async_task", "check_async_task", "update_async_task", "cancel_async_task", "list_async_tasks"];
2681
+ /**
2682
+ * How an async subagent's task ended or paused, as reported to the agent that started it.
2683
+ *
2684
+ * A notification message carries it in `additional_kwargs.deepagents_notification`,
2685
+ * so apps can tell these messages from the user's. Fields are snake_case, as in Python.
2686
+ *
2687
+ * @experimental This shape is experimental and subject to change.
2688
+ */
2689
+ interface TaskEvent {
2690
+ /** The task's ID (the subagent's thread). */
2691
+ task_id: string;
2692
+ /** The async subagent's name, as in the task's `AsyncTask.agentName`. */
2693
+ agent_name: string;
2694
+ /** `waiting` means the subagent paused for input or approval; `cancelled`, that its run was cancelled on the server. */
2695
+ status: "success" | "error" | "timeout" | "cancelled" | "waiting";
2696
+ /** The subagent run that ended. */
2697
+ run_id?: string;
2698
+ }
2606
2699
  /**
2607
2700
  * Options for creating async subagent middleware.
2608
2701
  */
@@ -2623,6 +2716,11 @@ interface AsyncSubAgentMiddlewareOptions {
2623
2716
  * Works with any Agent Protocol-compliant server — LangGraph Platform (managed)
2624
2717
  * or self-hosted (e.g. a Hono/Express server implementing the Agent Protocol spec).
2625
2718
  *
2719
+ * On an Agent Server, the agent is told when its tasks finish, fail or wait for
2720
+ * the user: by checking while it runs, and through a new run when it's idle.
2721
+ *
2722
+ * @experimental Task notifications are experimental and subject to change.
2723
+ *
2626
2724
  * @throws {Error} If no async subagents are provided or names are duplicated.
2627
2725
  *
2628
2726
  * @example
@@ -2650,6 +2748,7 @@ declare function createAsyncSubAgentMiddleware(options: AsyncSubAgentMiddlewareO
2650
2748
  agentName: string;
2651
2749
  threadId: string;
2652
2750
  runId: string;
2751
+ supersededRunIds?: string[] | undefined;
2653
2752
  status: string;
2654
2753
  createdAt: string;
2655
2754
  description?: string | undefined;
@@ -2660,6 +2759,7 @@ declare function createAsyncSubAgentMiddleware(options: AsyncSubAgentMiddlewareO
2660
2759
  agentName: string;
2661
2760
  threadId: string;
2662
2761
  runId: string;
2762
+ supersededRunIds?: string[] | undefined;
2663
2763
  status: string;
2664
2764
  createdAt: string;
2665
2765
  description?: string | undefined;
@@ -4710,5 +4810,5 @@ declare function createDeepAgent<TResponse extends SupportedResponseFormat = Sup
4710
4810
  }, import("zod/v4/core").$strip>>;
4711
4811
  }, import("zod/v4/core").$strip>, undefined, unknown, readonly (ServerTool | ClientTool)[], readonly []>, AgentMiddleware<undefined, undefined, unknown, readonly (ServerTool | ClientTool)[], readonly []>, ...TMiddleware, ...FlattenSubAgentMiddleware<TSubagents>], TTools, TSubagents, TStreamTransformers>>;
4712
4812
  //#endregion
4713
- export { scrubUnsupportedMultimodalContent as $, TASK_SYSTEM_PROMPT as $t, createSettings as A, SandboxInfo as An, SubAgent as At, FlattenSubAgentMiddleware as B, SandboxBackendProtocolV2 as Bn, serializeProfile as Bt, listSkills as C, ReadRawResult as Cn, createPatchToolCallsMiddleware as Ct, filesValue as D, SandboxError as Dn, ForkedSubAgent as Dt, createAgentMemoryMiddleware as E, SandboxDeleteOptions as En, DEFAULT_SUBAGENT_PROMPT as Et, CreateDeepAgentParams as F, applyGrepMaxCount as Fn, registerHarnessProfile as Ft, InferSubagentByName as G, HarnessProfileOptions as Gt, InferDeepAgentType as H, SandboxBackendProtocolV1 as Hn, createHarnessProfile as Ht, DeepAgent as I, isSandboxBackend as In, HarnessProfileConfigData as It, ResolveDeepAgentTypeConfig as J, ConfigurationErrorCode as Jt, InferSubagentReactAgentType as K, REQUIRED_MIDDLEWARE_NAMES as Kt, DeepAgentTypeConfig as L, isSandboxProtocol as Ln, generalPurposeSubagentConfigSchema as Lt, DeepAgentRunStream as M, SandboxListResponse as Mn, createSubAgent as Mt, SubagentRunStream$1 as N, StateAndStore as Nn, createSubAgentMiddleware as Nt, Settings as O, SandboxErrorCode as On, GENERAL_PURPOSE_SUBAGENT as Ot, AnySubAgent as P, WriteResult as Pn, getHarnessProfile as Pt, multimodalBlockSupported as Q, SystemPromptConfig as Qt, DefaultDeepAgentTypeConfig as R, resolveBackend as Rn, harnessProfileConfigSchema as Rt, SkillMetadata as S, MaybePromise as Sn, StateBackend as St, AgentMemoryMiddlewareOptions as T, SandboxBackendProtocol as Tn, DEFAULT_GENERAL_PURPOSE_DESCRIPTION as Tt, InferStructuredResponse as U, GeneralPurposeSubagentConfig as Ut, InferDeepAgentSubagents as V, BackendProtocolV1 as Vn, EMPTY_HARNESS_PROFILE as Vt, InferSubAgentMiddlewareStates as W, HarnessProfile as Wt, MULTIMODAL_BLOCK_TYPES as X, BASE_AGENT_PROMPT as Xt, SupportedResponseFormat as Y, ASYNC_TASK_SYSTEM_PROMPT as Yt, createUnsupportedContentMiddleware as Z, EXECUTION_SYSTEM_PROMPT as Zt, StoreBackend as _, FileUploadResponse as _n, createSkillsMiddleware as _t, adaptBackendProtocol as a, PermissionMode as an, isAsyncSubAgent as at, StoreBackendOptions as b, GrepResult as bn, MemoryMiddlewareOptions as bt, LangSmithSandbox as c, BackendProtocol as cn, CompletionCallbackOptions as ct, BaseSandbox as d, EditResult as dn, MAX_SKILL_FILE_SIZE as dt, FilesystemMiddlewareOptions as en, AsyncSubAgent as et, LocalShellBackend as f, ExecuteResponse as fn, MAX_SKILL_NAME_LENGTH as ft, FilesystemBackend as g, FileOperationError as gn, SkillsMiddlewareOptions as gt, CompositeBackend as h, FileInfo as hn, SkillToolResolver as ht, LangSmithStartSandboxOptions as i, FilesystemPermission as in, createAsyncSubAgentMiddleware as it, findProjectRoot as j, SandboxListOptions as jn, SubAgentMiddlewareOptions as jt, SettingsOptions as k, SandboxGetOrCreateOptions as kn, SUBAGENT_RESPONSE_FORMAT_CONFIG_KEY as kt, LangSmithSandboxCreateOptions as l, BackendRuntime as ln, createCompletionCallbackMiddleware as lt, ContextHubBackend as m, FileDownloadResponse as mn, SkillMetadataEntry as mt, LangSmithCaptureSnapshotOptions as n, createFilesystemMiddleware as nn, AsyncTask as nt, adaptSandboxProtocol as o, AnyBackendProtocol as on, computeSummarizationDefaults as ot, LocalShellBackendOptions as p, FileData as pn, SkillMetadata$1 as pt, MergedDeepAgentState as q, ConfigurationError as qt, LangSmithSnapshot as r, FilesystemOperation as rn, AsyncTaskStatus as rt, normalizeReadPagination as s, BackendFactory as sn, createSummarizationMiddleware as st, createDeepAgent as t, FsToolName as tn, AsyncSubAgentMiddlewareOptions as tt, LangSmithSandboxOptions as u, DeleteResult as un, MAX_SKILL_DESCRIPTION_LENGTH as ut, StoreBackendContext as v, GlobResult as vn, pinnedSkillsValue as vt, parseSkillMetadata as w, ReadResult as wn, CompiledSubAgent as wt, ListSkillsOptions as x, LsResult as xn, createMemoryMiddleware as xt, StoreBackendNamespaceFactory as y, GrepMatch as yn, skillsMetadataValue as yt, ExtractSubAgentMiddleware as z, BackendProtocolV2 as zn, parseHarnessProfileConfig as zt };
4714
- //# sourceMappingURL=agent-uMkCMHJp.d.ts.map
4813
+ export { scrubUnsupportedMultimodalContent as $, SystemPromptConfig as $t, createSettings as A, SandboxGetOrCreateOptions as An, SUBAGENT_RESPONSE_FORMAT_CONFIG_KEY as At, FlattenSubAgentMiddleware as B, BackendProtocolV2 as Bn, parseHarnessProfileConfig as Bt, listSkills as C, MaybePromise as Cn, StateBackend as Ct, filesValue as D, SandboxDeleteOptions as Dn, DEFAULT_SUBAGENT_PROMPT as Dt, createAgentMemoryMiddleware as E, SandboxBackendProtocol as En, DEFAULT_GENERAL_PURPOSE_DESCRIPTION as Et, CreateDeepAgentParams as F, WriteResult as Fn, getHarnessProfile as Ft, InferSubagentByName as G, HarnessProfile as Gt, InferDeepAgentType as H, BackendProtocolV1 as Hn, EMPTY_HARNESS_PROFILE as Ht, DeepAgent as I, applyGrepMaxCount as In, registerHarnessProfile as It, ResolveDeepAgentTypeConfig as J, ConfigurationError as Jt, InferSubagentReactAgentType as K, HarnessProfileOptions as Kt, DeepAgentTypeConfig as L, isSandboxBackend as Ln, HarnessProfileConfigData as Lt, DeepAgentRunStream as M, SandboxListOptions as Mn, SubAgentMiddlewareOptions as Mt, SubagentRunStream$1 as N, SandboxListResponse as Nn, createSubAgent as Nt, Settings as O, SandboxError as On, ForkedSubAgent as Ot, AnySubAgent as P, StateAndStore as Pn, createSubAgentMiddleware as Pt, multimodalBlockSupported as Q, EXECUTION_SYSTEM_PROMPT as Qt, DefaultDeepAgentTypeConfig as R, isSandboxProtocol as Rn, generalPurposeSubagentConfigSchema as Rt, SkillMetadata as S, LsResult as Sn, createMemoryMiddleware as St, AgentMemoryMiddlewareOptions as T, ReadResult as Tn, CompiledSubAgent as Tt, InferStructuredResponse as U, SandboxBackendProtocolV1 as Un, createHarnessProfile as Ut, InferDeepAgentSubagents as V, SandboxBackendProtocolV2 as Vn, serializeProfile as Vt, InferSubAgentMiddlewareStates as W, GeneralPurposeSubagentConfig as Wt, MULTIMODAL_BLOCK_TYPES as X, ASYNC_TASK_SYSTEM_PROMPT as Xt, SupportedResponseFormat as Y, ConfigurationErrorCode as Yt, createUnsupportedContentMiddleware as Z, BASE_AGENT_PROMPT as Zt, StoreBackend as _, FileOperationError as _n, SkillsMiddlewareOptions as _t, adaptBackendProtocol as a, FilesystemPermission as an, createAsyncSubAgentMiddleware as at, StoreBackendOptions as b, GrepMatch as bn, skillsMetadataValue as bt, LangSmithSandbox as c, BackendFactory as cn, createSummarizationMiddleware as ct, BaseSandbox as d, DeleteResult as dn, MAX_SKILL_DESCRIPTION_LENGTH as dt, TASK_SYSTEM_PROMPT as en, AsyncSubAgent as et, LocalShellBackend as f, EditResult as fn, MAX_SKILL_FILE_SIZE as ft, FilesystemBackend as g, FileInfo as gn, SkillToolResolver as gt, CompositeBackend as h, FileDownloadResponse as hn, SkillMetadataEntry as ht, LangSmithStartSandboxOptions as i, FilesystemOperation as in, TaskEvent as it, findProjectRoot as j, SandboxInfo as jn, SubAgent as jt, SettingsOptions as k, SandboxErrorCode as kn, GENERAL_PURPOSE_SUBAGENT as kt, LangSmithSandboxCreateOptions as l, BackendProtocol as ln, CompletionCallbackOptions as lt, ContextHubBackend as m, FileData as mn, SkillMetadata$1 as mt, LangSmithCaptureSnapshotOptions as n, FsToolName as nn, AsyncTask as nt, adaptSandboxProtocol as o, PermissionMode as on, isAsyncSubAgent as ot, LocalShellBackendOptions as p, ExecuteResponse as pn, MAX_SKILL_NAME_LENGTH as pt, MergedDeepAgentState as q, REQUIRED_MIDDLEWARE_NAMES as qt, LangSmithSnapshot as r, createFilesystemMiddleware as rn, AsyncTaskStatus as rt, normalizeReadPagination as s, AnyBackendProtocol as sn, computeSummarizationDefaults as st, createDeepAgent as t, FilesystemMiddlewareOptions as tn, AsyncSubAgentMiddlewareOptions as tt, LangSmithSandboxOptions as u, BackendRuntime as un, createCompletionCallbackMiddleware as ut, StoreBackendContext as v, FileUploadResponse as vn, createSkillsMiddleware as vt, parseSkillMetadata as w, ReadRawResult as wn, createPatchToolCallsMiddleware as wt, ListSkillsOptions as x, GrepResult as xn, MemoryMiddlewareOptions as xt, StoreBackendNamespaceFactory as y, GlobResult as yn, pinnedSkillsValue as yt, ExtractSubAgentMiddleware as z, resolveBackend as zn, harnessProfileConfigSchema as zt };
4814
+ //# sourceMappingURL=agent-DIft4yNY.d.ts.map
package/dist/browser.cjs CHANGED
@@ -1,5 +1,5 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
- const require_langsmith = require("./langsmith-IOLMJEwi.cjs");
2
+ const require_langsmith = require("./langsmith-aH3Gwzii.cjs");
3
3
  exports.ASYNC_TASK_SYSTEM_PROMPT = require_langsmith.ASYNC_TASK_SYSTEM_PROMPT;
4
4
  exports.BASE_AGENT_PROMPT = require_langsmith.BASE_AGENT_PROMPT;
5
5
  exports.BaseSandbox = require_langsmith.BaseSandbox;
@@ -1,3 +1,3 @@
1
- import { $t as TASK_SYSTEM_PROMPT, An as SandboxInfo, At as SubAgent, B as FlattenSubAgentMiddleware, Bn as SandboxBackendProtocolV2, Bt as serializeProfile, Cn as ReadRawResult, Ct as createPatchToolCallsMiddleware, D as filesValue, Dn as SandboxError, Dt as ForkedSubAgent, En as SandboxDeleteOptions, Et as DEFAULT_SUBAGENT_PROMPT, F as CreateDeepAgentParams, Ft as registerHarnessProfile, G as InferSubagentByName, Gt as HarnessProfileOptions, H as InferDeepAgentType, Hn as SandboxBackendProtocolV1, Ht as createHarnessProfile, I as DeepAgent, In as isSandboxBackend, It as HarnessProfileConfigData, J as ResolveDeepAgentTypeConfig, Jt as ConfigurationErrorCode, K as InferSubagentReactAgentType, Kt as REQUIRED_MIDDLEWARE_NAMES, L as DeepAgentTypeConfig, Ln as isSandboxProtocol, Lt as generalPurposeSubagentConfigSchema, M as DeepAgentRunStream, Mn as SandboxListResponse, N as SubagentRunStream, Nn as StateAndStore, Nt as createSubAgentMiddleware, On as SandboxErrorCode, Ot as GENERAL_PURPOSE_SUBAGENT, P as AnySubAgent, Pn as WriteResult, Pt as getHarnessProfile, Qt as SystemPromptConfig, R as DefaultDeepAgentTypeConfig, Rn as resolveBackend, Rt as harnessProfileConfigSchema, Sn as MaybePromise, St as StateBackend, Tn as SandboxBackendProtocol, Tt as DEFAULT_GENERAL_PURPOSE_DESCRIPTION, U as InferStructuredResponse, Ut as GeneralPurposeSubagentConfig, V as InferDeepAgentSubagents, Vn as BackendProtocolV1, Vt as EMPTY_HARNESS_PROFILE, W as InferSubAgentMiddlewareStates, Wt as HarnessProfile, Xt as BASE_AGENT_PROMPT, Y as SupportedResponseFormat, Yt as ASYNC_TASK_SYSTEM_PROMPT, Zt as EXECUTION_SYSTEM_PROMPT, _ as StoreBackend, _n as FileUploadResponse, _t as createSkillsMiddleware, a as adaptBackendProtocol, an as PermissionMode, at as isAsyncSubAgent, b as StoreBackendOptions, bn as GrepResult, bt as MemoryMiddlewareOptions, c as LangSmithSandbox, cn as BackendProtocol, ct as CompletionCallbackOptions, d as BaseSandbox, dn as EditResult, dt as MAX_SKILL_FILE_SIZE, en as FilesystemMiddlewareOptions, et as AsyncSubAgent, fn as ExecuteResponse, ft as MAX_SKILL_NAME_LENGTH, gn as FileOperationError, gt as SkillsMiddlewareOptions, h as CompositeBackend, hn as FileInfo, ht as SkillToolResolver, in as FilesystemPermission, it as createAsyncSubAgentMiddleware, jn as SandboxListOptions, jt as SubAgentMiddlewareOptions, kn as SandboxGetOrCreateOptions, l as LangSmithSandboxCreateOptions, ln as BackendRuntime, lt as createCompletionCallbackMiddleware, m as ContextHubBackend, mn as FileDownloadResponse, mt as SkillMetadataEntry, nn as createFilesystemMiddleware, nt as AsyncTask, o as adaptSandboxProtocol, on as AnyBackendProtocol, ot as computeSummarizationDefaults, pn as FileData, pt as SkillMetadata, q as MergedDeepAgentState, qt as ConfigurationError, rn as FilesystemOperation, rt as AsyncTaskStatus, sn as BackendFactory, st as createSummarizationMiddleware, t as createDeepAgent, tn as FsToolName, tt as AsyncSubAgentMiddlewareOptions, u as LangSmithSandboxOptions, un as DeleteResult, ut as MAX_SKILL_DESCRIPTION_LENGTH, v as StoreBackendContext, vn as GlobResult, vt as pinnedSkillsValue, wn as ReadResult, wt as CompiledSubAgent, xn as LsResult, xt as createMemoryMiddleware, y as StoreBackendNamespaceFactory, yn as GrepMatch, yt as skillsMetadataValue, z as ExtractSubAgentMiddleware, zn as BackendProtocolV2, zt as parseHarnessProfileConfig } from "./agent-CYPLa3Vi.cjs";
1
+ import { $t as SystemPromptConfig, An as SandboxGetOrCreateOptions, B as FlattenSubAgentMiddleware, Bn as BackendProtocolV2, Bt as parseHarnessProfileConfig, Cn as MaybePromise, Ct as StateBackend, D as filesValue, Dn as SandboxDeleteOptions, Dt as DEFAULT_SUBAGENT_PROMPT, En as SandboxBackendProtocol, Et as DEFAULT_GENERAL_PURPOSE_DESCRIPTION, F as CreateDeepAgentParams, Fn as WriteResult, Ft as getHarnessProfile, G as InferSubagentByName, Gt as HarnessProfile, H as InferDeepAgentType, Hn as BackendProtocolV1, Ht as EMPTY_HARNESS_PROFILE, I as DeepAgent, It as registerHarnessProfile, J as ResolveDeepAgentTypeConfig, Jt as ConfigurationError, K as InferSubagentReactAgentType, Kt as HarnessProfileOptions, L as DeepAgentTypeConfig, Ln as isSandboxBackend, Lt as HarnessProfileConfigData, M as DeepAgentRunStream, Mn as SandboxListOptions, Mt as SubAgentMiddlewareOptions, N as SubagentRunStream, Nn as SandboxListResponse, On as SandboxError, Ot as ForkedSubAgent, P as AnySubAgent, Pn as StateAndStore, Pt as createSubAgentMiddleware, Qt as EXECUTION_SYSTEM_PROMPT, R as DefaultDeepAgentTypeConfig, Rn as isSandboxProtocol, Rt as generalPurposeSubagentConfigSchema, Sn as LsResult, St as createMemoryMiddleware, Tn as ReadResult, Tt as CompiledSubAgent, U as InferStructuredResponse, Un as SandboxBackendProtocolV1, Ut as createHarnessProfile, V as InferDeepAgentSubagents, Vn as SandboxBackendProtocolV2, Vt as serializeProfile, W as InferSubAgentMiddlewareStates, Wt as GeneralPurposeSubagentConfig, Xt as ASYNC_TASK_SYSTEM_PROMPT, Y as SupportedResponseFormat, Yt as ConfigurationErrorCode, Zt as BASE_AGENT_PROMPT, _ as StoreBackend, _n as FileOperationError, _t as SkillsMiddlewareOptions, a as adaptBackendProtocol, an as FilesystemPermission, at as createAsyncSubAgentMiddleware, b as StoreBackendOptions, bn as GrepMatch, bt as skillsMetadataValue, c as LangSmithSandbox, cn as BackendFactory, ct as createSummarizationMiddleware, d as BaseSandbox, dn as DeleteResult, dt as MAX_SKILL_DESCRIPTION_LENGTH, en as TASK_SYSTEM_PROMPT, et as AsyncSubAgent, fn as EditResult, ft as MAX_SKILL_FILE_SIZE, gn as FileInfo, gt as SkillToolResolver, h as CompositeBackend, hn as FileDownloadResponse, ht as SkillMetadataEntry, in as FilesystemOperation, it as TaskEvent, jn as SandboxInfo, jt as SubAgent, kn as SandboxErrorCode, kt as GENERAL_PURPOSE_SUBAGENT, l as LangSmithSandboxCreateOptions, ln as BackendProtocol, lt as CompletionCallbackOptions, m as ContextHubBackend, mn as FileData, mt as SkillMetadata, nn as FsToolName, nt as AsyncTask, o as adaptSandboxProtocol, on as PermissionMode, ot as isAsyncSubAgent, pn as ExecuteResponse, pt as MAX_SKILL_NAME_LENGTH, q as MergedDeepAgentState, qt as REQUIRED_MIDDLEWARE_NAMES, rn as createFilesystemMiddleware, rt as AsyncTaskStatus, sn as AnyBackendProtocol, st as computeSummarizationDefaults, t as createDeepAgent, tn as FilesystemMiddlewareOptions, tt as AsyncSubAgentMiddlewareOptions, u as LangSmithSandboxOptions, un as BackendRuntime, ut as createCompletionCallbackMiddleware, v as StoreBackendContext, vn as FileUploadResponse, vt as createSkillsMiddleware, wn as ReadRawResult, wt as createPatchToolCallsMiddleware, xn as GrepResult, xt as MemoryMiddlewareOptions, y as StoreBackendNamespaceFactory, yn as GlobResult, yt as pinnedSkillsValue, z as ExtractSubAgentMiddleware, zn as resolveBackend, zt as harnessProfileConfigSchema } from "./agent-BErEClzV.cjs";
2
2
  import { CaptureSnapshotOptions as LangSmithCaptureSnapshotOptions, Snapshot as LangSmithSnapshot, StartSandboxOptions as LangSmithStartSandboxOptions } from "langsmith/experimental/sandbox";
3
- export { ASYNC_TASK_SYSTEM_PROMPT, type AnyBackendProtocol, type AnySubAgent, type AsyncSubAgent, type AsyncSubAgentMiddlewareOptions, type AsyncTask, type AsyncTaskStatus, BASE_AGENT_PROMPT, type BackendFactory, type BackendProtocol, type BackendProtocolV1, type BackendProtocolV2, type BackendRuntime, BaseSandbox, type CompiledSubAgent, type CompletionCallbackOptions, CompositeBackend, ConfigurationError, type ConfigurationErrorCode, ContextHubBackend, type CreateDeepAgentParams, DEFAULT_GENERAL_PURPOSE_DESCRIPTION, DEFAULT_SUBAGENT_PROMPT, type DeepAgent, type DeepAgentRunStream, type DeepAgentTypeConfig, type DefaultDeepAgentTypeConfig, type DeleteResult, EMPTY_HARNESS_PROFILE, EXECUTION_SYSTEM_PROMPT, type EditResult, type ExecuteResponse, type ExtractSubAgentMiddleware, type FileData, type FileDownloadResponse, type FileInfo, type FileOperationError, type FileUploadResponse, type FilesystemMiddlewareOptions, type FilesystemOperation, type FilesystemPermission, type FlattenSubAgentMiddleware, type ForkedSubAgent, type FsToolName, GENERAL_PURPOSE_SUBAGENT, type GeneralPurposeSubagentConfig, type GlobResult, type GrepMatch, type GrepResult, type HarnessProfile, type HarnessProfileConfigData, type HarnessProfileOptions, type InferDeepAgentSubagents, type InferDeepAgentType, type InferStructuredResponse, type InferSubAgentMiddlewareStates, type InferSubagentByName, type InferSubagentReactAgentType, type LangSmithCaptureSnapshotOptions, LangSmithSandbox, type LangSmithSandboxCreateOptions, type LangSmithSandboxOptions, type LangSmithSnapshot, type LangSmithStartSandboxOptions, type LsResult, MAX_SKILL_DESCRIPTION_LENGTH, MAX_SKILL_FILE_SIZE, MAX_SKILL_NAME_LENGTH, type MaybePromise, type MemoryMiddlewareOptions, type MergedDeepAgentState, type PermissionMode, REQUIRED_MIDDLEWARE_NAMES, 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 SkillMetadata, type SkillMetadataEntry, type SkillToolResolver, type SkillsMiddlewareOptions, type StateAndStore, StateBackend, StoreBackend, type StoreBackendContext, type StoreBackendNamespaceFactory, type StoreBackendOptions, type SubAgent, type SubAgentMiddlewareOptions, type SubagentRunStream, type SupportedResponseFormat, type SystemPromptConfig, TASK_SYSTEM_PROMPT, type WriteResult, adaptBackendProtocol, adaptSandboxProtocol, computeSummarizationDefaults, createAsyncSubAgentMiddleware, createCompletionCallbackMiddleware, createDeepAgent, createFilesystemMiddleware, createHarnessProfile, createMemoryMiddleware, createPatchToolCallsMiddleware, createSkillsMiddleware, createSubAgentMiddleware, createSummarizationMiddleware, filesValue, generalPurposeSubagentConfigSchema, getHarnessProfile, harnessProfileConfigSchema, isAsyncSubAgent, isSandboxBackend, isSandboxProtocol, parseHarnessProfileConfig, pinnedSkillsValue, registerHarnessProfile, resolveBackend, serializeProfile, skillsMetadataValue };
3
+ export { ASYNC_TASK_SYSTEM_PROMPT, type AnyBackendProtocol, type AnySubAgent, type AsyncSubAgent, type AsyncSubAgentMiddlewareOptions, type AsyncTask, type AsyncTaskStatus, BASE_AGENT_PROMPT, type BackendFactory, type BackendProtocol, type BackendProtocolV1, type BackendProtocolV2, type BackendRuntime, BaseSandbox, type CompiledSubAgent, type CompletionCallbackOptions, CompositeBackend, ConfigurationError, type ConfigurationErrorCode, ContextHubBackend, type CreateDeepAgentParams, DEFAULT_GENERAL_PURPOSE_DESCRIPTION, DEFAULT_SUBAGENT_PROMPT, type DeepAgent, type DeepAgentRunStream, type DeepAgentTypeConfig, type DefaultDeepAgentTypeConfig, type DeleteResult, EMPTY_HARNESS_PROFILE, EXECUTION_SYSTEM_PROMPT, type EditResult, type ExecuteResponse, type ExtractSubAgentMiddleware, type FileData, type FileDownloadResponse, type FileInfo, type FileOperationError, type FileUploadResponse, type FilesystemMiddlewareOptions, type FilesystemOperation, type FilesystemPermission, type FlattenSubAgentMiddleware, type ForkedSubAgent, type FsToolName, GENERAL_PURPOSE_SUBAGENT, type GeneralPurposeSubagentConfig, type GlobResult, type GrepMatch, type GrepResult, type HarnessProfile, type HarnessProfileConfigData, type HarnessProfileOptions, type InferDeepAgentSubagents, type InferDeepAgentType, type InferStructuredResponse, type InferSubAgentMiddlewareStates, type InferSubagentByName, type InferSubagentReactAgentType, type LangSmithCaptureSnapshotOptions, LangSmithSandbox, type LangSmithSandboxCreateOptions, type LangSmithSandboxOptions, type LangSmithSnapshot, type LangSmithStartSandboxOptions, type LsResult, MAX_SKILL_DESCRIPTION_LENGTH, MAX_SKILL_FILE_SIZE, MAX_SKILL_NAME_LENGTH, type MaybePromise, type MemoryMiddlewareOptions, type MergedDeepAgentState, type PermissionMode, REQUIRED_MIDDLEWARE_NAMES, 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 SkillMetadata, type SkillMetadataEntry, type SkillToolResolver, type SkillsMiddlewareOptions, type StateAndStore, StateBackend, StoreBackend, type StoreBackendContext, type StoreBackendNamespaceFactory, type StoreBackendOptions, type SubAgent, type SubAgentMiddlewareOptions, type SubagentRunStream, type SupportedResponseFormat, type SystemPromptConfig, TASK_SYSTEM_PROMPT, type TaskEvent, type WriteResult, adaptBackendProtocol, adaptSandboxProtocol, computeSummarizationDefaults, createAsyncSubAgentMiddleware, createCompletionCallbackMiddleware, createDeepAgent, createFilesystemMiddleware, createHarnessProfile, createMemoryMiddleware, createPatchToolCallsMiddleware, createSkillsMiddleware, createSubAgentMiddleware, createSummarizationMiddleware, filesValue, generalPurposeSubagentConfigSchema, getHarnessProfile, harnessProfileConfigSchema, isAsyncSubAgent, isSandboxBackend, isSandboxProtocol, parseHarnessProfileConfig, pinnedSkillsValue, registerHarnessProfile, resolveBackend, serializeProfile, skillsMetadataValue };
package/dist/browser.d.ts CHANGED
@@ -1,3 +1,3 @@
1
- import { $t as TASK_SYSTEM_PROMPT, An as SandboxInfo, At as SubAgent, B as FlattenSubAgentMiddleware, Bn as SandboxBackendProtocolV2, Bt as serializeProfile, Cn as ReadRawResult, Ct as createPatchToolCallsMiddleware, D as filesValue, Dn as SandboxError, Dt as ForkedSubAgent, En as SandboxDeleteOptions, Et as DEFAULT_SUBAGENT_PROMPT, F as CreateDeepAgentParams, Ft as registerHarnessProfile, G as InferSubagentByName, Gt as HarnessProfileOptions, H as InferDeepAgentType, Hn as SandboxBackendProtocolV1, Ht as createHarnessProfile, I as DeepAgent, In as isSandboxBackend, It as HarnessProfileConfigData, J as ResolveDeepAgentTypeConfig, Jt as ConfigurationErrorCode, K as InferSubagentReactAgentType, Kt as REQUIRED_MIDDLEWARE_NAMES, L as DeepAgentTypeConfig, Ln as isSandboxProtocol, Lt as generalPurposeSubagentConfigSchema, M as DeepAgentRunStream, Mn as SandboxListResponse, N as SubagentRunStream, Nn as StateAndStore, Nt as createSubAgentMiddleware, On as SandboxErrorCode, Ot as GENERAL_PURPOSE_SUBAGENT, P as AnySubAgent, Pn as WriteResult, Pt as getHarnessProfile, Qt as SystemPromptConfig, R as DefaultDeepAgentTypeConfig, Rn as resolveBackend, Rt as harnessProfileConfigSchema, Sn as MaybePromise, St as StateBackend, Tn as SandboxBackendProtocol, Tt as DEFAULT_GENERAL_PURPOSE_DESCRIPTION, U as InferStructuredResponse, Ut as GeneralPurposeSubagentConfig, V as InferDeepAgentSubagents, Vn as BackendProtocolV1, Vt as EMPTY_HARNESS_PROFILE, W as InferSubAgentMiddlewareStates, Wt as HarnessProfile, Xt as BASE_AGENT_PROMPT, Y as SupportedResponseFormat, Yt as ASYNC_TASK_SYSTEM_PROMPT, Zt as EXECUTION_SYSTEM_PROMPT, _ as StoreBackend, _n as FileUploadResponse, _t as createSkillsMiddleware, a as adaptBackendProtocol, an as PermissionMode, at as isAsyncSubAgent, b as StoreBackendOptions, bn as GrepResult, bt as MemoryMiddlewareOptions, c as LangSmithSandbox, cn as BackendProtocol, ct as CompletionCallbackOptions, d as BaseSandbox, dn as EditResult, dt as MAX_SKILL_FILE_SIZE, en as FilesystemMiddlewareOptions, et as AsyncSubAgent, fn as ExecuteResponse, ft as MAX_SKILL_NAME_LENGTH, gn as FileOperationError, gt as SkillsMiddlewareOptions, h as CompositeBackend, hn as FileInfo, ht as SkillToolResolver, in as FilesystemPermission, it as createAsyncSubAgentMiddleware, jn as SandboxListOptions, jt as SubAgentMiddlewareOptions, kn as SandboxGetOrCreateOptions, l as LangSmithSandboxCreateOptions, ln as BackendRuntime, lt as createCompletionCallbackMiddleware, m as ContextHubBackend, mn as FileDownloadResponse, mt as SkillMetadataEntry, nn as createFilesystemMiddleware, nt as AsyncTask, o as adaptSandboxProtocol, on as AnyBackendProtocol, ot as computeSummarizationDefaults, pn as FileData, pt as SkillMetadata, q as MergedDeepAgentState, qt as ConfigurationError, rn as FilesystemOperation, rt as AsyncTaskStatus, sn as BackendFactory, st as createSummarizationMiddleware, t as createDeepAgent, tn as FsToolName, tt as AsyncSubAgentMiddlewareOptions, u as LangSmithSandboxOptions, un as DeleteResult, ut as MAX_SKILL_DESCRIPTION_LENGTH, v as StoreBackendContext, vn as GlobResult, vt as pinnedSkillsValue, wn as ReadResult, wt as CompiledSubAgent, xn as LsResult, xt as createMemoryMiddleware, y as StoreBackendNamespaceFactory, yn as GrepMatch, yt as skillsMetadataValue, z as ExtractSubAgentMiddleware, zn as BackendProtocolV2, zt as parseHarnessProfileConfig } from "./agent-uMkCMHJp.js";
1
+ import { $t as SystemPromptConfig, An as SandboxGetOrCreateOptions, B as FlattenSubAgentMiddleware, Bn as BackendProtocolV2, Bt as parseHarnessProfileConfig, Cn as MaybePromise, Ct as StateBackend, D as filesValue, Dn as SandboxDeleteOptions, Dt as DEFAULT_SUBAGENT_PROMPT, En as SandboxBackendProtocol, Et as DEFAULT_GENERAL_PURPOSE_DESCRIPTION, F as CreateDeepAgentParams, Fn as WriteResult, Ft as getHarnessProfile, G as InferSubagentByName, Gt as HarnessProfile, H as InferDeepAgentType, Hn as BackendProtocolV1, Ht as EMPTY_HARNESS_PROFILE, I as DeepAgent, It as registerHarnessProfile, J as ResolveDeepAgentTypeConfig, Jt as ConfigurationError, K as InferSubagentReactAgentType, Kt as HarnessProfileOptions, L as DeepAgentTypeConfig, Ln as isSandboxBackend, Lt as HarnessProfileConfigData, M as DeepAgentRunStream, Mn as SandboxListOptions, Mt as SubAgentMiddlewareOptions, N as SubagentRunStream, Nn as SandboxListResponse, On as SandboxError, Ot as ForkedSubAgent, P as AnySubAgent, Pn as StateAndStore, Pt as createSubAgentMiddleware, Qt as EXECUTION_SYSTEM_PROMPT, R as DefaultDeepAgentTypeConfig, Rn as isSandboxProtocol, Rt as generalPurposeSubagentConfigSchema, Sn as LsResult, St as createMemoryMiddleware, Tn as ReadResult, Tt as CompiledSubAgent, U as InferStructuredResponse, Un as SandboxBackendProtocolV1, Ut as createHarnessProfile, V as InferDeepAgentSubagents, Vn as SandboxBackendProtocolV2, Vt as serializeProfile, W as InferSubAgentMiddlewareStates, Wt as GeneralPurposeSubagentConfig, Xt as ASYNC_TASK_SYSTEM_PROMPT, Y as SupportedResponseFormat, Yt as ConfigurationErrorCode, Zt as BASE_AGENT_PROMPT, _ as StoreBackend, _n as FileOperationError, _t as SkillsMiddlewareOptions, a as adaptBackendProtocol, an as FilesystemPermission, at as createAsyncSubAgentMiddleware, b as StoreBackendOptions, bn as GrepMatch, bt as skillsMetadataValue, c as LangSmithSandbox, cn as BackendFactory, ct as createSummarizationMiddleware, d as BaseSandbox, dn as DeleteResult, dt as MAX_SKILL_DESCRIPTION_LENGTH, en as TASK_SYSTEM_PROMPT, et as AsyncSubAgent, fn as EditResult, ft as MAX_SKILL_FILE_SIZE, gn as FileInfo, gt as SkillToolResolver, h as CompositeBackend, hn as FileDownloadResponse, ht as SkillMetadataEntry, in as FilesystemOperation, it as TaskEvent, jn as SandboxInfo, jt as SubAgent, kn as SandboxErrorCode, kt as GENERAL_PURPOSE_SUBAGENT, l as LangSmithSandboxCreateOptions, ln as BackendProtocol, lt as CompletionCallbackOptions, m as ContextHubBackend, mn as FileData, mt as SkillMetadata, nn as FsToolName, nt as AsyncTask, o as adaptSandboxProtocol, on as PermissionMode, ot as isAsyncSubAgent, pn as ExecuteResponse, pt as MAX_SKILL_NAME_LENGTH, q as MergedDeepAgentState, qt as REQUIRED_MIDDLEWARE_NAMES, rn as createFilesystemMiddleware, rt as AsyncTaskStatus, sn as AnyBackendProtocol, st as computeSummarizationDefaults, t as createDeepAgent, tn as FilesystemMiddlewareOptions, tt as AsyncSubAgentMiddlewareOptions, u as LangSmithSandboxOptions, un as BackendRuntime, ut as createCompletionCallbackMiddleware, v as StoreBackendContext, vn as FileUploadResponse, vt as createSkillsMiddleware, wn as ReadRawResult, wt as createPatchToolCallsMiddleware, xn as GrepResult, xt as MemoryMiddlewareOptions, y as StoreBackendNamespaceFactory, yn as GlobResult, yt as pinnedSkillsValue, z as ExtractSubAgentMiddleware, zn as resolveBackend, zt as harnessProfileConfigSchema } from "./agent-DIft4yNY.js";
2
2
  import { CaptureSnapshotOptions as LangSmithCaptureSnapshotOptions, Snapshot as LangSmithSnapshot, StartSandboxOptions as LangSmithStartSandboxOptions } from "langsmith/experimental/sandbox";
3
- export { ASYNC_TASK_SYSTEM_PROMPT, type AnyBackendProtocol, type AnySubAgent, type AsyncSubAgent, type AsyncSubAgentMiddlewareOptions, type AsyncTask, type AsyncTaskStatus, BASE_AGENT_PROMPT, type BackendFactory, type BackendProtocol, type BackendProtocolV1, type BackendProtocolV2, type BackendRuntime, BaseSandbox, type CompiledSubAgent, type CompletionCallbackOptions, CompositeBackend, ConfigurationError, type ConfigurationErrorCode, ContextHubBackend, type CreateDeepAgentParams, DEFAULT_GENERAL_PURPOSE_DESCRIPTION, DEFAULT_SUBAGENT_PROMPT, type DeepAgent, type DeepAgentRunStream, type DeepAgentTypeConfig, type DefaultDeepAgentTypeConfig, type DeleteResult, EMPTY_HARNESS_PROFILE, EXECUTION_SYSTEM_PROMPT, type EditResult, type ExecuteResponse, type ExtractSubAgentMiddleware, type FileData, type FileDownloadResponse, type FileInfo, type FileOperationError, type FileUploadResponse, type FilesystemMiddlewareOptions, type FilesystemOperation, type FilesystemPermission, type FlattenSubAgentMiddleware, type ForkedSubAgent, type FsToolName, GENERAL_PURPOSE_SUBAGENT, type GeneralPurposeSubagentConfig, type GlobResult, type GrepMatch, type GrepResult, type HarnessProfile, type HarnessProfileConfigData, type HarnessProfileOptions, type InferDeepAgentSubagents, type InferDeepAgentType, type InferStructuredResponse, type InferSubAgentMiddlewareStates, type InferSubagentByName, type InferSubagentReactAgentType, type LangSmithCaptureSnapshotOptions, LangSmithSandbox, type LangSmithSandboxCreateOptions, type LangSmithSandboxOptions, type LangSmithSnapshot, type LangSmithStartSandboxOptions, type LsResult, MAX_SKILL_DESCRIPTION_LENGTH, MAX_SKILL_FILE_SIZE, MAX_SKILL_NAME_LENGTH, type MaybePromise, type MemoryMiddlewareOptions, type MergedDeepAgentState, type PermissionMode, REQUIRED_MIDDLEWARE_NAMES, 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 SkillMetadata, type SkillMetadataEntry, type SkillToolResolver, type SkillsMiddlewareOptions, type StateAndStore, StateBackend, StoreBackend, type StoreBackendContext, type StoreBackendNamespaceFactory, type StoreBackendOptions, type SubAgent, type SubAgentMiddlewareOptions, type SubagentRunStream, type SupportedResponseFormat, type SystemPromptConfig, TASK_SYSTEM_PROMPT, type WriteResult, adaptBackendProtocol, adaptSandboxProtocol, computeSummarizationDefaults, createAsyncSubAgentMiddleware, createCompletionCallbackMiddleware, createDeepAgent, createFilesystemMiddleware, createHarnessProfile, createMemoryMiddleware, createPatchToolCallsMiddleware, createSkillsMiddleware, createSubAgentMiddleware, createSummarizationMiddleware, filesValue, generalPurposeSubagentConfigSchema, getHarnessProfile, harnessProfileConfigSchema, isAsyncSubAgent, isSandboxBackend, isSandboxProtocol, parseHarnessProfileConfig, pinnedSkillsValue, registerHarnessProfile, resolveBackend, serializeProfile, skillsMetadataValue };
3
+ export { ASYNC_TASK_SYSTEM_PROMPT, type AnyBackendProtocol, type AnySubAgent, type AsyncSubAgent, type AsyncSubAgentMiddlewareOptions, type AsyncTask, type AsyncTaskStatus, BASE_AGENT_PROMPT, type BackendFactory, type BackendProtocol, type BackendProtocolV1, type BackendProtocolV2, type BackendRuntime, BaseSandbox, type CompiledSubAgent, type CompletionCallbackOptions, CompositeBackend, ConfigurationError, type ConfigurationErrorCode, ContextHubBackend, type CreateDeepAgentParams, DEFAULT_GENERAL_PURPOSE_DESCRIPTION, DEFAULT_SUBAGENT_PROMPT, type DeepAgent, type DeepAgentRunStream, type DeepAgentTypeConfig, type DefaultDeepAgentTypeConfig, type DeleteResult, EMPTY_HARNESS_PROFILE, EXECUTION_SYSTEM_PROMPT, type EditResult, type ExecuteResponse, type ExtractSubAgentMiddleware, type FileData, type FileDownloadResponse, type FileInfo, type FileOperationError, type FileUploadResponse, type FilesystemMiddlewareOptions, type FilesystemOperation, type FilesystemPermission, type FlattenSubAgentMiddleware, type ForkedSubAgent, type FsToolName, GENERAL_PURPOSE_SUBAGENT, type GeneralPurposeSubagentConfig, type GlobResult, type GrepMatch, type GrepResult, type HarnessProfile, type HarnessProfileConfigData, type HarnessProfileOptions, type InferDeepAgentSubagents, type InferDeepAgentType, type InferStructuredResponse, type InferSubAgentMiddlewareStates, type InferSubagentByName, type InferSubagentReactAgentType, type LangSmithCaptureSnapshotOptions, LangSmithSandbox, type LangSmithSandboxCreateOptions, type LangSmithSandboxOptions, type LangSmithSnapshot, type LangSmithStartSandboxOptions, type LsResult, MAX_SKILL_DESCRIPTION_LENGTH, MAX_SKILL_FILE_SIZE, MAX_SKILL_NAME_LENGTH, type MaybePromise, type MemoryMiddlewareOptions, type MergedDeepAgentState, type PermissionMode, REQUIRED_MIDDLEWARE_NAMES, 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 SkillMetadata, type SkillMetadataEntry, type SkillToolResolver, type SkillsMiddlewareOptions, type StateAndStore, StateBackend, StoreBackend, type StoreBackendContext, type StoreBackendNamespaceFactory, type StoreBackendOptions, type SubAgent, type SubAgentMiddlewareOptions, type SubagentRunStream, type SupportedResponseFormat, type SystemPromptConfig, TASK_SYSTEM_PROMPT, type TaskEvent, type WriteResult, adaptBackendProtocol, adaptSandboxProtocol, computeSummarizationDefaults, createAsyncSubAgentMiddleware, createCompletionCallbackMiddleware, createDeepAgent, createFilesystemMiddleware, createHarnessProfile, createMemoryMiddleware, createPatchToolCallsMiddleware, createSkillsMiddleware, createSubAgentMiddleware, createSummarizationMiddleware, filesValue, generalPurposeSubagentConfigSchema, getHarnessProfile, harnessProfileConfigSchema, isAsyncSubAgent, isSandboxBackend, isSandboxProtocol, parseHarnessProfileConfig, pinnedSkillsValue, registerHarnessProfile, resolveBackend, serializeProfile, skillsMetadataValue };
package/dist/browser.js CHANGED
@@ -1,2 +1,2 @@
1
- import { $ as adaptSandboxProtocol, A as filesValue, B as createFilesystemMiddleware, C as MAX_SKILL_FILE_SIZE, D as skillsMetadataValue, E as pinnedSkillsValue, K as StateBackend, L as createSubAgentMiddleware, M as DEFAULT_GENERAL_PURPOSE_DESCRIPTION, N as DEFAULT_SUBAGENT_PROMPT, O as ConfigurationError, P as GENERAL_PURPOSE_SUBAGENT, Q as adaptBackendProtocol, R as computeSummarizationDefaults, S as MAX_SKILL_DESCRIPTION_LENGTH, T as createSkillsMiddleware, V as CompositeBackend, X as isSandboxProtocol, Y as isSandboxBackend, Z as resolveBackend, _ as createHarnessProfile, a as ASYNC_TASK_SYSTEM_PROMPT, b as isAsyncSubAgent, c as TASK_SYSTEM_PROMPT, d as registerHarnessProfile, f as generalPurposeSubagentConfigSchema, g as EMPTY_HARNESS_PROFILE, h as serializeProfile, i as StoreBackend, j as createPatchToolCallsMiddleware, k as createMemoryMiddleware, l as createDeepAgent, m as parseHarnessProfileConfig, n as BaseSandbox, o as BASE_AGENT_PROMPT, p as harnessProfileConfigSchema, q as SandboxError, r as ContextHubBackend, s as EXECUTION_SYSTEM_PROMPT, t as LangSmithSandbox, u as getHarnessProfile, v as REQUIRED_MIDDLEWARE_NAMES, w as MAX_SKILL_NAME_LENGTH, x as createCompletionCallbackMiddleware, y as createAsyncSubAgentMiddleware, z as createSummarizationMiddleware } from "./langsmith-C-EMyQJ_.js";
1
+ import { $ as adaptSandboxProtocol, A as filesValue, B as createFilesystemMiddleware, C as MAX_SKILL_FILE_SIZE, D as skillsMetadataValue, E as pinnedSkillsValue, K as StateBackend, L as createSubAgentMiddleware, M as DEFAULT_GENERAL_PURPOSE_DESCRIPTION, N as DEFAULT_SUBAGENT_PROMPT, O as ConfigurationError, P as GENERAL_PURPOSE_SUBAGENT, Q as adaptBackendProtocol, R as computeSummarizationDefaults, S as MAX_SKILL_DESCRIPTION_LENGTH, T as createSkillsMiddleware, V as CompositeBackend, X as isSandboxProtocol, Y as isSandboxBackend, Z as resolveBackend, _ as createHarnessProfile, a as ASYNC_TASK_SYSTEM_PROMPT, b as isAsyncSubAgent, c as TASK_SYSTEM_PROMPT, d as registerHarnessProfile, f as generalPurposeSubagentConfigSchema, g as EMPTY_HARNESS_PROFILE, h as serializeProfile, i as StoreBackend, j as createPatchToolCallsMiddleware, k as createMemoryMiddleware, l as createDeepAgent, m as parseHarnessProfileConfig, n as BaseSandbox, o as BASE_AGENT_PROMPT, p as harnessProfileConfigSchema, q as SandboxError, r as ContextHubBackend, s as EXECUTION_SYSTEM_PROMPT, t as LangSmithSandbox, u as getHarnessProfile, v as REQUIRED_MIDDLEWARE_NAMES, w as MAX_SKILL_NAME_LENGTH, x as createCompletionCallbackMiddleware, y as createAsyncSubAgentMiddleware, z as createSummarizationMiddleware } from "./langsmith-B1pbrx3y.js";
2
2
  export { ASYNC_TASK_SYSTEM_PROMPT, BASE_AGENT_PROMPT, BaseSandbox, CompositeBackend, ConfigurationError, ContextHubBackend, DEFAULT_GENERAL_PURPOSE_DESCRIPTION, DEFAULT_SUBAGENT_PROMPT, EMPTY_HARNESS_PROFILE, EXECUTION_SYSTEM_PROMPT, GENERAL_PURPOSE_SUBAGENT, LangSmithSandbox, MAX_SKILL_DESCRIPTION_LENGTH, MAX_SKILL_FILE_SIZE, MAX_SKILL_NAME_LENGTH, REQUIRED_MIDDLEWARE_NAMES, SandboxError, StateBackend, StoreBackend, TASK_SYSTEM_PROMPT, adaptBackendProtocol, adaptSandboxProtocol, computeSummarizationDefaults, createAsyncSubAgentMiddleware, createCompletionCallbackMiddleware, createDeepAgent, createFilesystemMiddleware, createHarnessProfile, createMemoryMiddleware, createPatchToolCallsMiddleware, createSkillsMiddleware, createSubAgentMiddleware, createSummarizationMiddleware, filesValue, generalPurposeSubagentConfigSchema, getHarnessProfile, harnessProfileConfigSchema, isAsyncSubAgent, isSandboxBackend, isSandboxProtocol, parseHarnessProfileConfig, pinnedSkillsValue, registerHarnessProfile, resolveBackend, serializeProfile, skillsMetadataValue };
package/dist/index.cjs CHANGED
@@ -1,6 +1,6 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
- const require_langsmith = require("./langsmith-IOLMJEwi.cjs");
3
- const require_src = require("./src-a_7jVcCL.cjs");
2
+ const require_langsmith = require("./langsmith-aH3Gwzii.cjs");
3
+ const require_src = require("./src-B2jjteSM.cjs");
4
4
  exports.ASYNC_TASK_SYSTEM_PROMPT = require_langsmith.ASYNC_TASK_SYSTEM_PROMPT;
5
5
  exports.BASE_AGENT_PROMPT = require_langsmith.BASE_AGENT_PROMPT;
6
6
  exports.BaseSandbox = require_langsmith.BaseSandbox;
package/dist/index.d.cts CHANGED
@@ -1,2 +1,2 @@
1
- import { $ as scrubUnsupportedMultimodalContent, $t as TASK_SYSTEM_PROMPT, A as createSettings, An as SandboxInfo, At as SubAgent, B as FlattenSubAgentMiddleware, Bn as SandboxBackendProtocolV2, Bt as serializeProfile, C as listSkills, Cn as ReadRawResult, Ct as createPatchToolCallsMiddleware, D as filesValue, Dn as SandboxError, Dt as ForkedSubAgent, E as createAgentMemoryMiddleware, En as SandboxDeleteOptions, Et as DEFAULT_SUBAGENT_PROMPT, F as CreateDeepAgentParams, Fn as applyGrepMaxCount, Ft as registerHarnessProfile, G as InferSubagentByName, Gt as HarnessProfileOptions, H as InferDeepAgentType, Hn as SandboxBackendProtocolV1, Ht as createHarnessProfile, I as DeepAgent, In as isSandboxBackend, It as HarnessProfileConfigData, J as ResolveDeepAgentTypeConfig, Jt as ConfigurationErrorCode, K as InferSubagentReactAgentType, Kt as REQUIRED_MIDDLEWARE_NAMES, L as DeepAgentTypeConfig, Ln as isSandboxProtocol, Lt as generalPurposeSubagentConfigSchema, M as DeepAgentRunStream, Mn as SandboxListResponse, Mt as createSubAgent, N as SubagentRunStream, Nn as StateAndStore, Nt as createSubAgentMiddleware, O as Settings, On as SandboxErrorCode, Ot as GENERAL_PURPOSE_SUBAGENT, P as AnySubAgent, Pn as WriteResult, Pt as getHarnessProfile, Q as multimodalBlockSupported, Qt as SystemPromptConfig, R as DefaultDeepAgentTypeConfig, Rn as resolveBackend, Rt as harnessProfileConfigSchema, S as SkillMetadata, Sn as MaybePromise, St as StateBackend, T as AgentMemoryMiddlewareOptions, Tn as SandboxBackendProtocol, Tt as DEFAULT_GENERAL_PURPOSE_DESCRIPTION, U as InferStructuredResponse, Ut as GeneralPurposeSubagentConfig, V as InferDeepAgentSubagents, Vn as BackendProtocolV1, Vt as EMPTY_HARNESS_PROFILE, W as InferSubAgentMiddlewareStates, Wt as HarnessProfile, X as MULTIMODAL_BLOCK_TYPES, Xt as BASE_AGENT_PROMPT, Y as SupportedResponseFormat, Yt as ASYNC_TASK_SYSTEM_PROMPT, Z as createUnsupportedContentMiddleware, Zt as EXECUTION_SYSTEM_PROMPT, _ as StoreBackend, _n as FileUploadResponse, _t as createSkillsMiddleware, a as adaptBackendProtocol, an as PermissionMode, at as isAsyncSubAgent, b as StoreBackendOptions, bn as GrepResult, bt as MemoryMiddlewareOptions, c as LangSmithSandbox, cn as BackendProtocol, ct as CompletionCallbackOptions, d as BaseSandbox, dn as EditResult, dt as MAX_SKILL_FILE_SIZE, en as FilesystemMiddlewareOptions, et as AsyncSubAgent, f as LocalShellBackend, fn as ExecuteResponse, ft as MAX_SKILL_NAME_LENGTH, g as FilesystemBackend, gn as FileOperationError, gt as SkillsMiddlewareOptions, h as CompositeBackend, hn as FileInfo, ht as SkillToolResolver, i as LangSmithStartSandboxOptions, in as FilesystemPermission, it as createAsyncSubAgentMiddleware, j as findProjectRoot, jn as SandboxListOptions, jt as SubAgentMiddlewareOptions, k as SettingsOptions, kn as SandboxGetOrCreateOptions, kt as SUBAGENT_RESPONSE_FORMAT_CONFIG_KEY, l as LangSmithSandboxCreateOptions, ln as BackendRuntime, lt as createCompletionCallbackMiddleware, m as ContextHubBackend, mn as FileDownloadResponse, mt as SkillMetadataEntry, n as LangSmithCaptureSnapshotOptions, nn as createFilesystemMiddleware, nt as AsyncTask, o as adaptSandboxProtocol, on as AnyBackendProtocol, ot as computeSummarizationDefaults, p as LocalShellBackendOptions, pn as FileData, pt as SkillMetadata$1, q as MergedDeepAgentState, qt as ConfigurationError, r as LangSmithSnapshot, rn as FilesystemOperation, rt as AsyncTaskStatus, s as normalizeReadPagination, sn as BackendFactory, st as createSummarizationMiddleware, t as createDeepAgent, tn as FsToolName, tt as AsyncSubAgentMiddlewareOptions, u as LangSmithSandboxOptions, un as DeleteResult, ut as MAX_SKILL_DESCRIPTION_LENGTH, v as StoreBackendContext, vn as GlobResult, vt as pinnedSkillsValue, w as parseSkillMetadata, wn as ReadResult, wt as CompiledSubAgent, x as ListSkillsOptions, xn as LsResult, xt as createMemoryMiddleware, y as StoreBackendNamespaceFactory, yn as GrepMatch, yt as skillsMetadataValue, z as ExtractSubAgentMiddleware, zn as BackendProtocolV2, zt as parseHarnessProfileConfig } from "./agent-CYPLa3Vi.cjs";
2
- export { ASYNC_TASK_SYSTEM_PROMPT, type AgentMemoryMiddlewareOptions, type AnyBackendProtocol, type AnySubAgent, type AsyncSubAgent, type AsyncSubAgentMiddlewareOptions, type AsyncTask, type AsyncTaskStatus, BASE_AGENT_PROMPT, type BackendFactory, type BackendProtocol, type BackendProtocolV1, type BackendProtocolV2, type BackendRuntime, BaseSandbox, type CompiledSubAgent, type CompletionCallbackOptions, CompositeBackend, ConfigurationError, type ConfigurationErrorCode, ContextHubBackend, type CreateDeepAgentParams, DEFAULT_GENERAL_PURPOSE_DESCRIPTION, DEFAULT_SUBAGENT_PROMPT, type DeepAgent, type DeepAgentRunStream, type DeepAgentTypeConfig, type DefaultDeepAgentTypeConfig, type DeleteResult, EMPTY_HARNESS_PROFILE, EXECUTION_SYSTEM_PROMPT, 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, type ForkedSubAgent, type FsToolName, GENERAL_PURPOSE_SUBAGENT, type GeneralPurposeSubagentConfig, type GlobResult, type GrepMatch, type GrepResult, type HarnessProfile, type HarnessProfileConfigData, type HarnessProfileOptions, type InferDeepAgentSubagents, type InferDeepAgentType, type InferStructuredResponse, type InferSubAgentMiddlewareStates, type InferSubagentByName, type InferSubagentReactAgentType, type LangSmithCaptureSnapshotOptions, LangSmithSandbox, type LangSmithSandboxCreateOptions, type LangSmithSandboxOptions, type LangSmithSnapshot, type LangSmithStartSandboxOptions, type ListSkillsOptions, type SkillMetadata as LoaderSkillMetadata, LocalShellBackend, type LocalShellBackendOptions, type LsResult, MAX_SKILL_DESCRIPTION_LENGTH, MAX_SKILL_FILE_SIZE, MAX_SKILL_NAME_LENGTH, MULTIMODAL_BLOCK_TYPES, type MaybePromise, type MemoryMiddlewareOptions, type MergedDeepAgentState, type PermissionMode, REQUIRED_MIDDLEWARE_NAMES, type ReadRawResult, type ReadResult, type ResolveDeepAgentTypeConfig, SUBAGENT_RESPONSE_FORMAT_CONFIG_KEY, 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 SkillMetadataEntry, type SkillToolResolver, type SkillsMiddlewareOptions, type StateAndStore, StateBackend, StoreBackend, type StoreBackendContext, type StoreBackendNamespaceFactory, type StoreBackendOptions, type SubAgent, type SubAgentMiddlewareOptions, type SubagentRunStream, type SupportedResponseFormat, type SystemPromptConfig, TASK_SYSTEM_PROMPT, type WriteResult, adaptBackendProtocol, adaptSandboxProtocol, applyGrepMaxCount, computeSummarizationDefaults, createAgentMemoryMiddleware, createAsyncSubAgentMiddleware, createCompletionCallbackMiddleware, createDeepAgent, createFilesystemMiddleware, createHarnessProfile, createMemoryMiddleware, createPatchToolCallsMiddleware, createSettings, createSkillsMiddleware, createSubAgent, createSubAgentMiddleware, createSummarizationMiddleware, createUnsupportedContentMiddleware, filesValue, findProjectRoot, generalPurposeSubagentConfigSchema, getHarnessProfile, harnessProfileConfigSchema, isAsyncSubAgent, isSandboxBackend, isSandboxProtocol, listSkills, multimodalBlockSupported, normalizeReadPagination, parseHarnessProfileConfig, parseSkillMetadata, pinnedSkillsValue, registerHarnessProfile, resolveBackend, scrubUnsupportedMultimodalContent, serializeProfile, skillsMetadataValue };
1
+ import { $ as scrubUnsupportedMultimodalContent, $t as SystemPromptConfig, A as createSettings, An as SandboxGetOrCreateOptions, At as SUBAGENT_RESPONSE_FORMAT_CONFIG_KEY, B as FlattenSubAgentMiddleware, Bn as BackendProtocolV2, Bt as parseHarnessProfileConfig, C as listSkills, Cn as MaybePromise, Ct as StateBackend, D as filesValue, Dn as SandboxDeleteOptions, Dt as DEFAULT_SUBAGENT_PROMPT, E as createAgentMemoryMiddleware, En as SandboxBackendProtocol, Et as DEFAULT_GENERAL_PURPOSE_DESCRIPTION, F as CreateDeepAgentParams, Fn as WriteResult, Ft as getHarnessProfile, G as InferSubagentByName, Gt as HarnessProfile, H as InferDeepAgentType, Hn as BackendProtocolV1, Ht as EMPTY_HARNESS_PROFILE, I as DeepAgent, In as applyGrepMaxCount, It as registerHarnessProfile, J as ResolveDeepAgentTypeConfig, Jt as ConfigurationError, K as InferSubagentReactAgentType, Kt as HarnessProfileOptions, L as DeepAgentTypeConfig, Ln as isSandboxBackend, Lt as HarnessProfileConfigData, M as DeepAgentRunStream, Mn as SandboxListOptions, Mt as SubAgentMiddlewareOptions, N as SubagentRunStream, Nn as SandboxListResponse, Nt as createSubAgent, O as Settings, On as SandboxError, Ot as ForkedSubAgent, P as AnySubAgent, Pn as StateAndStore, Pt as createSubAgentMiddleware, Q as multimodalBlockSupported, Qt as EXECUTION_SYSTEM_PROMPT, R as DefaultDeepAgentTypeConfig, Rn as isSandboxProtocol, Rt as generalPurposeSubagentConfigSchema, S as SkillMetadata, Sn as LsResult, St as createMemoryMiddleware, T as AgentMemoryMiddlewareOptions, Tn as ReadResult, Tt as CompiledSubAgent, U as InferStructuredResponse, Un as SandboxBackendProtocolV1, Ut as createHarnessProfile, V as InferDeepAgentSubagents, Vn as SandboxBackendProtocolV2, Vt as serializeProfile, W as InferSubAgentMiddlewareStates, Wt as GeneralPurposeSubagentConfig, X as MULTIMODAL_BLOCK_TYPES, Xt as ASYNC_TASK_SYSTEM_PROMPT, Y as SupportedResponseFormat, Yt as ConfigurationErrorCode, Z as createUnsupportedContentMiddleware, Zt as BASE_AGENT_PROMPT, _ as StoreBackend, _n as FileOperationError, _t as SkillsMiddlewareOptions, a as adaptBackendProtocol, an as FilesystemPermission, at as createAsyncSubAgentMiddleware, b as StoreBackendOptions, bn as GrepMatch, bt as skillsMetadataValue, c as LangSmithSandbox, cn as BackendFactory, ct as createSummarizationMiddleware, d as BaseSandbox, dn as DeleteResult, dt as MAX_SKILL_DESCRIPTION_LENGTH, en as TASK_SYSTEM_PROMPT, et as AsyncSubAgent, f as LocalShellBackend, fn as EditResult, ft as MAX_SKILL_FILE_SIZE, g as FilesystemBackend, gn as FileInfo, gt as SkillToolResolver, h as CompositeBackend, hn as FileDownloadResponse, ht as SkillMetadataEntry, i as LangSmithStartSandboxOptions, in as FilesystemOperation, it as TaskEvent, j as findProjectRoot, jn as SandboxInfo, jt as SubAgent, k as SettingsOptions, kn as SandboxErrorCode, kt as GENERAL_PURPOSE_SUBAGENT, l as LangSmithSandboxCreateOptions, ln as BackendProtocol, lt as CompletionCallbackOptions, m as ContextHubBackend, mn as FileData, mt as SkillMetadata$1, n as LangSmithCaptureSnapshotOptions, nn as FsToolName, nt as AsyncTask, o as adaptSandboxProtocol, on as PermissionMode, ot as isAsyncSubAgent, p as LocalShellBackendOptions, pn as ExecuteResponse, pt as MAX_SKILL_NAME_LENGTH, q as MergedDeepAgentState, qt as REQUIRED_MIDDLEWARE_NAMES, r as LangSmithSnapshot, rn as createFilesystemMiddleware, rt as AsyncTaskStatus, s as normalizeReadPagination, sn as AnyBackendProtocol, st as computeSummarizationDefaults, t as createDeepAgent, tn as FilesystemMiddlewareOptions, tt as AsyncSubAgentMiddlewareOptions, u as LangSmithSandboxOptions, un as BackendRuntime, ut as createCompletionCallbackMiddleware, v as StoreBackendContext, vn as FileUploadResponse, vt as createSkillsMiddleware, w as parseSkillMetadata, wn as ReadRawResult, wt as createPatchToolCallsMiddleware, x as ListSkillsOptions, xn as GrepResult, xt as MemoryMiddlewareOptions, y as StoreBackendNamespaceFactory, yn as GlobResult, yt as pinnedSkillsValue, z as ExtractSubAgentMiddleware, zn as resolveBackend, zt as harnessProfileConfigSchema } from "./agent-BErEClzV.cjs";
2
+ export { ASYNC_TASK_SYSTEM_PROMPT, type AgentMemoryMiddlewareOptions, type AnyBackendProtocol, type AnySubAgent, type AsyncSubAgent, type AsyncSubAgentMiddlewareOptions, type AsyncTask, type AsyncTaskStatus, BASE_AGENT_PROMPT, type BackendFactory, type BackendProtocol, type BackendProtocolV1, type BackendProtocolV2, type BackendRuntime, BaseSandbox, type CompiledSubAgent, type CompletionCallbackOptions, CompositeBackend, ConfigurationError, type ConfigurationErrorCode, ContextHubBackend, type CreateDeepAgentParams, DEFAULT_GENERAL_PURPOSE_DESCRIPTION, DEFAULT_SUBAGENT_PROMPT, type DeepAgent, type DeepAgentRunStream, type DeepAgentTypeConfig, type DefaultDeepAgentTypeConfig, type DeleteResult, EMPTY_HARNESS_PROFILE, EXECUTION_SYSTEM_PROMPT, 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, type ForkedSubAgent, type FsToolName, GENERAL_PURPOSE_SUBAGENT, type GeneralPurposeSubagentConfig, type GlobResult, type GrepMatch, type GrepResult, type HarnessProfile, type HarnessProfileConfigData, type HarnessProfileOptions, type InferDeepAgentSubagents, type InferDeepAgentType, type InferStructuredResponse, type InferSubAgentMiddlewareStates, type InferSubagentByName, type InferSubagentReactAgentType, type LangSmithCaptureSnapshotOptions, LangSmithSandbox, type LangSmithSandboxCreateOptions, type LangSmithSandboxOptions, type LangSmithSnapshot, type LangSmithStartSandboxOptions, type ListSkillsOptions, type SkillMetadata as LoaderSkillMetadata, LocalShellBackend, type LocalShellBackendOptions, type LsResult, MAX_SKILL_DESCRIPTION_LENGTH, MAX_SKILL_FILE_SIZE, MAX_SKILL_NAME_LENGTH, MULTIMODAL_BLOCK_TYPES, type MaybePromise, type MemoryMiddlewareOptions, type MergedDeepAgentState, type PermissionMode, REQUIRED_MIDDLEWARE_NAMES, type ReadRawResult, type ReadResult, type ResolveDeepAgentTypeConfig, SUBAGENT_RESPONSE_FORMAT_CONFIG_KEY, 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 SkillMetadataEntry, type SkillToolResolver, type SkillsMiddlewareOptions, type StateAndStore, StateBackend, StoreBackend, type StoreBackendContext, type StoreBackendNamespaceFactory, type StoreBackendOptions, type SubAgent, type SubAgentMiddlewareOptions, type SubagentRunStream, type SupportedResponseFormat, type SystemPromptConfig, TASK_SYSTEM_PROMPT, type TaskEvent, type WriteResult, adaptBackendProtocol, adaptSandboxProtocol, applyGrepMaxCount, computeSummarizationDefaults, createAgentMemoryMiddleware, createAsyncSubAgentMiddleware, createCompletionCallbackMiddleware, createDeepAgent, createFilesystemMiddleware, createHarnessProfile, createMemoryMiddleware, createPatchToolCallsMiddleware, createSettings, createSkillsMiddleware, createSubAgent, createSubAgentMiddleware, createSummarizationMiddleware, createUnsupportedContentMiddleware, filesValue, findProjectRoot, generalPurposeSubagentConfigSchema, getHarnessProfile, harnessProfileConfigSchema, isAsyncSubAgent, isSandboxBackend, isSandboxProtocol, listSkills, multimodalBlockSupported, normalizeReadPagination, parseHarnessProfileConfig, parseSkillMetadata, pinnedSkillsValue, registerHarnessProfile, resolveBackend, scrubUnsupportedMultimodalContent, serializeProfile, skillsMetadataValue };