deepagents 1.11.0 → 1.12.0-rc.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/README.md +0 -17
- package/dist/{agent-D0AY-3B9.d.ts → agent-BHm2eFEE.d.ts} +90 -83
- package/dist/{agent-CBuaNmw7.d.cts → agent-a2Rs6dm8.d.cts} +91 -83
- package/dist/browser.cjs +4 -1
- package/dist/browser.d.cts +2 -2
- package/dist/browser.d.ts +2 -2
- package/dist/browser.js +2 -2
- package/dist/index.cjs +5 -2
- package/dist/index.d.cts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +3 -3
- package/dist/{langsmith-C7Ok9lF-.js → langsmith-COC2ZzbQ.js} +310 -427
- package/dist/langsmith-COC2ZzbQ.js.map +1 -0
- package/dist/{langsmith-DDhVumyX.cjs → langsmith-CyORon4P.cjs} +327 -426
- package/dist/langsmith-CyORon4P.cjs.map +1 -0
- package/dist/node.cjs +5 -2
- package/dist/node.d.cts +2 -2
- package/dist/node.d.ts +2 -2
- package/dist/node.js +3 -3
- package/dist/{src-CmBhLWZw.cjs → src-2FgDsCyk.cjs} +3 -4
- package/dist/src-2FgDsCyk.cjs.map +1 -0
- package/dist/{src-CokGewqt.js → src-sRjmLlgg.js} +3 -4
- package/dist/src-sRjmLlgg.js.map +1 -0
- package/package.json +2 -2
- package/dist/langsmith-C7Ok9lF-.js.map +0 -1
- package/dist/langsmith-DDhVumyX.cjs.map +0 -1
- package/dist/src-CmBhLWZw.cjs.map +0 -1
- package/dist/src-CokGewqt.js.map +0 -1
|
@@ -11,10 +11,10 @@ import { Runnable } from "@langchain/core/runnables";
|
|
|
11
11
|
import * as z$2 from "zod";
|
|
12
12
|
import { z as z$1 } from "zod";
|
|
13
13
|
import { BaseChatModel } from "@langchain/core/language_models/chat_models";
|
|
14
|
+
import "@langchain/langgraph-sdk";
|
|
14
15
|
import { InteropZodObject } from "@langchain/core/utils/types";
|
|
15
16
|
import { Client } from "langsmith";
|
|
16
17
|
import { CaptureSnapshotOptions, CaptureSnapshotOptions as LangSmithCaptureSnapshotOptions, CreateSandboxOptions, Sandbox, Snapshot, Snapshot as LangSmithSnapshot, StartSandboxOptions, StartSandboxOptions as LangSmithStartSandboxOptions } from "langsmith/experimental/sandbox";
|
|
17
|
-
|
|
18
18
|
//#region src/backends/v1/protocol.d.ts
|
|
19
19
|
/**
|
|
20
20
|
* Protocol for pluggable memory backends (single, unified).
|
|
@@ -76,7 +76,7 @@ interface BackendProtocolV1 {
|
|
|
76
76
|
*/
|
|
77
77
|
globInfo(pattern: string, path?: string): MaybePromise<FileInfo[]>;
|
|
78
78
|
/**
|
|
79
|
-
*
|
|
79
|
+
* Write content to a file, creating it or overwriting it if it already exists.
|
|
80
80
|
*
|
|
81
81
|
* @param filePath - Absolute file path
|
|
82
82
|
* @param content - File content as string
|
|
@@ -180,6 +180,14 @@ interface BackendProtocolV2 extends Omit<BackendProtocolV1, "read" | "readRaw" |
|
|
|
180
180
|
* @returns ReadRawResult with raw file data on success or error on failure
|
|
181
181
|
*/
|
|
182
182
|
readRaw(filePath: string): MaybePromise<ReadRawResult>;
|
|
183
|
+
/**
|
|
184
|
+
* Write content to a file, creating it or overwriting it if it already exists.
|
|
185
|
+
*
|
|
186
|
+
* @param filePath - Absolute file path
|
|
187
|
+
* @param content - File content as string
|
|
188
|
+
* @returns WriteResult with error populated on failure
|
|
189
|
+
*/
|
|
190
|
+
write(filePath: string, content: string): MaybePromise<WriteResult>;
|
|
183
191
|
/**
|
|
184
192
|
* Search file contents for a literal text pattern.
|
|
185
193
|
*
|
|
@@ -581,7 +589,17 @@ interface SandboxDeleteOptions {
|
|
|
581
589
|
* type MySandboxErrorCode = SandboxErrorCode | "CUSTOM_ERROR";
|
|
582
590
|
* ```
|
|
583
591
|
*/
|
|
584
|
-
type SandboxErrorCode =
|
|
592
|
+
type SandboxErrorCode =
|
|
593
|
+
/** Sandbox has not been initialized - call initialize() first */
|
|
594
|
+
"NOT_INITIALIZED" |
|
|
595
|
+
/** Sandbox is already initialized - cannot initialize twice */
|
|
596
|
+
"ALREADY_INITIALIZED" |
|
|
597
|
+
/** Command execution timed out */
|
|
598
|
+
"COMMAND_TIMEOUT" |
|
|
599
|
+
/** Command execution failed */
|
|
600
|
+
"COMMAND_FAILED" |
|
|
601
|
+
/** File operation (read/write) failed */
|
|
602
|
+
"FILE_OPERATION_FAILED";
|
|
585
603
|
declare const SANDBOX_ERROR_SYMBOL: unique symbol;
|
|
586
604
|
/**
|
|
587
605
|
* Custom error class for sandbox operations.
|
|
@@ -780,13 +798,7 @@ type FilesRecordUpdate = Record<string, FileData | null>;
|
|
|
780
798
|
interface FilesystemMiddlewareOptions {
|
|
781
799
|
/** Backend instance or factory (default: StateBackend) */
|
|
782
800
|
backend?: AnyBackendProtocol | BackendFactory;
|
|
783
|
-
/**
|
|
784
|
-
* Optional filesystem-specific system prompt override.
|
|
785
|
-
*
|
|
786
|
-
* When omitted, the middleware generates a prompt that reflects the tools
|
|
787
|
-
* visible for the current model request. Supplying a custom prompt replaces
|
|
788
|
-
* that generated filesystem prompt entirely.
|
|
789
|
-
*/
|
|
801
|
+
/** Optional filesystem-specific usage guidance. Omitted by default because tool schemas provide it. */
|
|
790
802
|
systemPrompt?: string | null;
|
|
791
803
|
/**
|
|
792
804
|
* Optional descriptions for built-in filesystem tools.
|
|
@@ -809,8 +821,6 @@ interface FilesystemMiddlewareOptions {
|
|
|
809
821
|
* command execution, even if it appears in this allowlist.
|
|
810
822
|
* - User-provided non-filesystem tools are not affected by this allowlist.
|
|
811
823
|
*
|
|
812
|
-
* The generated filesystem system prompt is based on the tools that remain
|
|
813
|
-
* visible after this allowlist and backend capability filtering are applied.
|
|
814
824
|
*
|
|
815
825
|
* @example Read/search-only filesystem access
|
|
816
826
|
* ```ts
|
|
@@ -845,7 +855,7 @@ interface FilesystemMiddlewareOptions {
|
|
|
845
855
|
permissions?: FilesystemPermission[];
|
|
846
856
|
}
|
|
847
857
|
/**
|
|
848
|
-
* Create middleware that provides built-in filesystem tools and
|
|
858
|
+
* Create middleware that provides built-in filesystem tools and optional custom
|
|
849
859
|
* prompt guidance.
|
|
850
860
|
*
|
|
851
861
|
* By default, the middleware registers every built-in filesystem tool listed in
|
|
@@ -856,9 +866,7 @@ interface FilesystemMiddlewareOptions {
|
|
|
856
866
|
*
|
|
857
867
|
* The middleware also filters tools whose backend capabilities are unavailable
|
|
858
868
|
* at request time. In particular, `execute` is only visible when the resolved
|
|
859
|
-
* backend supports command execution.
|
|
860
|
-
* the final visible filesystem tools so the model is not instructed to call
|
|
861
|
-
* tools it cannot see.
|
|
869
|
+
* backend supports command execution.
|
|
862
870
|
*
|
|
863
871
|
* @param options Filesystem middleware configuration.
|
|
864
872
|
* @returns Agent middleware that contributes filesystem state, tools, prompt
|
|
@@ -879,7 +887,7 @@ declare function createFilesystemMiddleware(options?: FilesystemMiddlewareOption
|
|
|
879
887
|
path: string;
|
|
880
888
|
}, {
|
|
881
889
|
path?: string | undefined;
|
|
882
|
-
}, string
|
|
890
|
+
}, string | ToolMessage<_messages.MessageStructure<_messages.MessageToolSet>>, unknown, "ls"> | _langchain.DynamicStructuredTool<z.ZodPreprocess<z.ZodObject<{
|
|
883
891
|
file_path: z.ZodString;
|
|
884
892
|
offset: z.ZodDefault<z.ZodOptional<z.ZodCoercedNumber<unknown>>>;
|
|
885
893
|
limit: z.ZodDefault<z.ZodOptional<z.ZodCoercedNumber<unknown>>>;
|
|
@@ -887,7 +895,7 @@ declare function createFilesystemMiddleware(options?: FilesystemMiddlewareOption
|
|
|
887
895
|
file_path: string;
|
|
888
896
|
offset: number;
|
|
889
897
|
limit: number;
|
|
890
|
-
}, unknown, {
|
|
898
|
+
}, unknown, ToolMessage<_messages.MessageStructure<_messages.MessageToolSet>> | {
|
|
891
899
|
type: string;
|
|
892
900
|
text: string;
|
|
893
901
|
}[] | {
|
|
@@ -918,14 +926,14 @@ declare function createFilesystemMiddleware(options?: FilesystemMiddlewareOption
|
|
|
918
926
|
messages: ToolMessage<_messages.MessageStructure<_messages.MessageToolSet>>[];
|
|
919
927
|
}, string>, unknown, "edit_file"> | _langchain.DynamicStructuredTool<z.ZodObject<{
|
|
920
928
|
pattern: z.ZodString;
|
|
921
|
-
path: z.
|
|
929
|
+
path: z.ZodOptional<z.ZodString>;
|
|
922
930
|
}, z.core.$strip>, {
|
|
923
931
|
pattern: string;
|
|
924
|
-
path
|
|
932
|
+
path?: string | undefined;
|
|
925
933
|
}, {
|
|
926
934
|
pattern: string;
|
|
927
935
|
path?: string | undefined;
|
|
928
|
-
}, string
|
|
936
|
+
}, string | ToolMessage<_messages.MessageStructure<_messages.MessageToolSet>>, unknown, "glob"> | _langchain.DynamicStructuredTool<z.ZodObject<{
|
|
929
937
|
pattern: z.ZodString;
|
|
930
938
|
path: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
931
939
|
glob: z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodString>>>;
|
|
@@ -937,7 +945,7 @@ declare function createFilesystemMiddleware(options?: FilesystemMiddlewareOption
|
|
|
937
945
|
pattern: string;
|
|
938
946
|
path?: string | undefined;
|
|
939
947
|
glob?: string | null | undefined;
|
|
940
|
-
}, string
|
|
948
|
+
}, string | ToolMessage<_messages.MessageStructure<_messages.MessageToolSet>>, unknown, "grep"> | _langchain.DynamicStructuredTool<z.ZodObject<{
|
|
941
949
|
command: z.ZodString;
|
|
942
950
|
}, z.core.$strip>, {
|
|
943
951
|
command: string;
|
|
@@ -945,6 +953,42 @@ declare function createFilesystemMiddleware(options?: FilesystemMiddlewareOption
|
|
|
945
953
|
command: string;
|
|
946
954
|
}, string, unknown, "execute">)[], readonly []>;
|
|
947
955
|
//#endregion
|
|
956
|
+
//#region src/compat.d.ts
|
|
957
|
+
/**
|
|
958
|
+
* @deprecated Compatibility type for the former structured `systemPrompt` API.
|
|
959
|
+
* Existing callers may continue using it, but new code should pass a string or
|
|
960
|
+
* `SystemMessage` directly. This type and its compatibility behavior will be
|
|
961
|
+
* removed in the next major release.
|
|
962
|
+
*/
|
|
963
|
+
interface SystemPromptConfig {
|
|
964
|
+
/** Content placed before the profile base prompt. */
|
|
965
|
+
prefix?: string | SystemMessage | null;
|
|
966
|
+
/** Replacement for the profile base prompt; `null` omits that base. */
|
|
967
|
+
base?: string | SystemMessage | null;
|
|
968
|
+
/** Content placed after the base prompt and before the profile suffix. */
|
|
969
|
+
suffix?: string | SystemMessage | null;
|
|
970
|
+
}
|
|
971
|
+
/**
|
|
972
|
+
* @deprecated Retained for compatibility only. This prompt is not injected by
|
|
973
|
+
* default and will be removed in the next major release.
|
|
974
|
+
*/
|
|
975
|
+
declare const BASE_AGENT_PROMPT: string;
|
|
976
|
+
/**
|
|
977
|
+
* @deprecated Retained for compatibility only. Task-tool guidance now lives in
|
|
978
|
+
* the task tool schema and this export will be removed in the next major release.
|
|
979
|
+
*/
|
|
980
|
+
declare const TASK_SYSTEM_PROMPT: string;
|
|
981
|
+
/**
|
|
982
|
+
* @deprecated Retained for compatibility only. Async-subagent guidance now
|
|
983
|
+
* lives in tool schemas and this export will be removed in the next major release.
|
|
984
|
+
*/
|
|
985
|
+
declare const ASYNC_TASK_SYSTEM_PROMPT = "## Async subagents (remote servers)\n\nYou have access to async subagent tools that launch background tasks on remote servers.\n\n### Tools:\n- `start_async_task`: Start a new background task. Returns a task ID immediately.\n- `check_async_task`: Check the status of a running task. Returns status and result if complete.\n- `update_async_task`: Send an update or new instructions to a running task.\n- `cancel_async_task`: Cancel a running task that is no longer needed.\n- `list_async_tasks`: List all tracked tasks with live statuses. Use this to check all tasks at once.\n\n### Workflow:\n1. **Launch** — Use `start_async_task` to start a task. Report the task ID to the user and stop.\n Do NOT immediately check the status — the task runs in the background while you and the user continue other work.\n2. **Check (on request)** — Only use `check_async_task` when the user explicitly asks for a status update or\n result. If the status is \"running\", report that and stop — do not poll in a loop.\n3. **Update** (optional) — Use `update_async_task` to send new instructions to a running task. This interrupts\n the current run and starts a fresh one on the same thread. The task_id stays the same.\n4. **Cancel** (optional) — Use `cancel_async_task` to stop a task that is no longer needed.\n5. **Collect** — When `check_async_task` returns status \"success\", the result is included in the response.\n6. **List** — Use `list_async_tasks` to see live statuses for all tasks at once, or to recall task IDs after context compaction.\n\n### Critical rules:\n- After launching, ALWAYS return control to the user immediately. Never auto-check after launching.\n- Never poll `check_async_task` in a loop. Check once per user request, then stop.\n- If a check returns \"running\", tell the user and wait for them to ask again.\n- Task statuses in conversation history are ALWAYS stale — a task that was \"running\" may now be done.\n NEVER report a status from a previous tool result. ALWAYS call a tool to get the current status:\n use `list_async_tasks` when the user asks about multiple tasks or \"all tasks\",\n use `check_async_task` when the user asks about a specific task.\n- Always show the full task_id — never truncate or abbreviate it.\n\n### When to use async subagents:\n- Long-running tasks that would block the main agent\n- Tasks that benefit from running on specialized remote deployments\n- When you want to run multiple tasks concurrently and collect results later";
|
|
986
|
+
/**
|
|
987
|
+
* @deprecated Retained for compatibility only. Execute guidance now lives in
|
|
988
|
+
* the execute tool schema and this export will be removed in the next major release.
|
|
989
|
+
*/
|
|
990
|
+
declare const EXECUTION_SYSTEM_PROMPT: string;
|
|
991
|
+
//#endregion
|
|
948
992
|
//#region src/errors.d.ts
|
|
949
993
|
/**
|
|
950
994
|
* Error codes for {@link ConfigurationError}.
|
|
@@ -1039,13 +1083,13 @@ interface GeneralPurposeSubagentConfig {
|
|
|
1039
1083
|
*/
|
|
1040
1084
|
interface HarnessProfileOptions {
|
|
1041
1085
|
/**
|
|
1042
|
-
* Replaces the default
|
|
1086
|
+
* Replaces the default empty base prompt when set.
|
|
1043
1087
|
*
|
|
1044
1088
|
* Use this when a model requires a fundamentally different base
|
|
1045
1089
|
* prompt rather than an additive suffix. Most profiles should prefer
|
|
1046
1090
|
* `systemPromptSuffix` instead.
|
|
1047
1091
|
*
|
|
1048
|
-
* @default undefined (keeps the default base prompt)
|
|
1092
|
+
* @default undefined (keeps the default empty base prompt)
|
|
1049
1093
|
*/
|
|
1050
1094
|
baseSystemPrompt?: string;
|
|
1051
1095
|
/**
|
|
@@ -1123,7 +1167,7 @@ interface HarnessProfileOptions {
|
|
|
1123
1167
|
*/
|
|
1124
1168
|
interface HarnessProfile {
|
|
1125
1169
|
/**
|
|
1126
|
-
* Replaces the default
|
|
1170
|
+
* Replaces the default empty base prompt when set.
|
|
1127
1171
|
*
|
|
1128
1172
|
* Use this when a model requires a fundamentally different base
|
|
1129
1173
|
* prompt rather than an additive suffix. Most profiles should prefer
|
|
@@ -1358,20 +1402,6 @@ declare const DEFAULT_SUBAGENT_PROMPT = "In order to complete the objective that
|
|
|
1358
1402
|
* This description is shown to the model when selecting which subagent to use.
|
|
1359
1403
|
*/
|
|
1360
1404
|
declare const DEFAULT_GENERAL_PURPOSE_DESCRIPTION = "General-purpose agent for researching complex questions, searching for files and content, and executing multi-step tasks. When you are searching for a keyword or file and are not confident that you will find the right match in the first few tries use this agent to perform the search for you. This agent has access to all tools as the main agent.";
|
|
1361
|
-
/**
|
|
1362
|
-
* System prompt section that explains how to use the task tool for spawning subagents.
|
|
1363
|
-
*
|
|
1364
|
-
* This prompt is automatically appended to the main agent's system prompt when
|
|
1365
|
-
* using `createSubAgentMiddleware`. It provides guidance on:
|
|
1366
|
-
* - When to use the task tool
|
|
1367
|
-
* - Subagent lifecycle (spawn → run → return → reconcile)
|
|
1368
|
-
* - When NOT to use the task tool
|
|
1369
|
-
* - Best practices for parallel task execution
|
|
1370
|
-
*
|
|
1371
|
-
* You can provide a custom `systemPrompt` to `createSubAgentMiddleware` to override
|
|
1372
|
-
* or extend this default.
|
|
1373
|
-
*/
|
|
1374
|
-
declare const TASK_SYSTEM_PROMPT: string;
|
|
1375
1405
|
/**
|
|
1376
1406
|
* Type definitions for pre-compiled agents.
|
|
1377
1407
|
*
|
|
@@ -1708,7 +1738,7 @@ declare class StateBackend implements BackendProtocolV2 {
|
|
|
1708
1738
|
*/
|
|
1709
1739
|
readRaw(filePath: string): ReadRawResult;
|
|
1710
1740
|
/**
|
|
1711
|
-
*
|
|
1741
|
+
* Write content to a file, creating it or overwriting it if it already exists.
|
|
1712
1742
|
* Returns WriteResult with filesUpdate to update LangGraph state.
|
|
1713
1743
|
*/
|
|
1714
1744
|
write(filePath: string, content: string): WriteResult;
|
|
@@ -2207,8 +2237,8 @@ declare const ASYNC_TASK_TOOL_NAMES: readonly ["start_async_task", "check_async_
|
|
|
2207
2237
|
interface AsyncSubAgentMiddlewareOptions {
|
|
2208
2238
|
/** List of async subagent specifications. Must have at least one. */
|
|
2209
2239
|
asyncSubAgents: AsyncSubAgent[];
|
|
2210
|
-
/**
|
|
2211
|
-
systemPrompt?: string;
|
|
2240
|
+
/** Optional system prompt override. Tool schemas provide the built-in guidance. */
|
|
2241
|
+
systemPrompt?: string | null;
|
|
2212
2242
|
}
|
|
2213
2243
|
/**
|
|
2214
2244
|
* Create middleware that adds async subagent tools to an agent.
|
|
@@ -2322,7 +2352,7 @@ type BuiltinToolPlaceholder<N extends string> = {
|
|
|
2322
2352
|
* Tuple of placeholder tool types for all built-in deep agent tools.
|
|
2323
2353
|
* Combined with `TTypes["Tools"]` in the `DeepAgentRunStream` return type.
|
|
2324
2354
|
*/
|
|
2325
|
-
type DeepAgentBuiltinToolsTuple = { [K in DeepAgentBuiltinToolName]: BuiltinToolPlaceholder<K
|
|
2355
|
+
type DeepAgentBuiltinToolsTuple = { [K in DeepAgentBuiltinToolName]: BuiltinToolPlaceholder<K>; }[DeepAgentBuiltinToolName][];
|
|
2326
2356
|
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>;
|
|
2327
2357
|
/** Any subagent specification — sync, compiled, or async. */
|
|
2328
2358
|
type AnySubAgent = SubAgent | CompiledSubAgent | AsyncSubAgent;
|
|
@@ -2587,25 +2617,6 @@ type InferSubagentByName<T, TName extends string> = InferDeepAgentSubagents<T> e
|
|
|
2587
2617
|
* ```
|
|
2588
2618
|
*/
|
|
2589
2619
|
type InferSubagentReactAgentType<TSubagent extends SubAgent | CompiledSubAgent> = TSubagent extends CompiledSubAgent ? TSubagent["runnable"] : TSubagent extends SubAgent ? ReactAgent<AgentTypeConfig<ResponseFormatUndefined, undefined, AnyAnnotationRoot, ExtractSubAgentMiddleware<TSubagent>, readonly []>> : never;
|
|
2590
|
-
/**
|
|
2591
|
-
* Structured system prompt configuration for {@link createDeepAgent}.
|
|
2592
|
-
*
|
|
2593
|
-
* Prompt parts are assembled in the order `prefix` → `base` → `suffix`,
|
|
2594
|
-
* followed by any model-specific harness profile suffix.
|
|
2595
|
-
*/
|
|
2596
|
-
interface SystemPromptConfig {
|
|
2597
|
-
/** Content placed before the base prompt. */
|
|
2598
|
-
prefix?: string | SystemMessage | null;
|
|
2599
|
-
/**
|
|
2600
|
-
* Replacement for the active base prompt.
|
|
2601
|
-
*
|
|
2602
|
-
* Omit this field to retain the harness profile base or built-in base prompt.
|
|
2603
|
-
* Set it to `null` to omit the base prompt entirely.
|
|
2604
|
-
*/
|
|
2605
|
-
base?: string | SystemMessage | null;
|
|
2606
|
-
/** Content placed after the base prompt and before any harness profile suffix. */
|
|
2607
|
-
suffix?: string | SystemMessage | null;
|
|
2608
|
-
}
|
|
2609
2620
|
/**
|
|
2610
2621
|
* Configuration parameters for creating a Deep Agent
|
|
2611
2622
|
* Matches Python's create_deep_agent parameters
|
|
@@ -2624,11 +2635,8 @@ interface CreateDeepAgentParams<TResponse extends SupportedResponseFormat = Supp
|
|
|
2624
2635
|
/** Tools the agent should have access to */
|
|
2625
2636
|
tools?: TTools | StructuredTool$1[];
|
|
2626
2637
|
/**
|
|
2627
|
-
* Custom system instructions
|
|
2628
|
-
*
|
|
2629
|
-
* A string or {@link SystemMessage} is placed before the active base prompt.
|
|
2630
|
-
* For more control, provide a {@link SystemPromptConfig} to replace or remove
|
|
2631
|
-
* the base prompt and add content after it.
|
|
2638
|
+
* Custom system instructions. Structured configuration is deprecated and
|
|
2639
|
+
* retained only for source compatibility.
|
|
2632
2640
|
*/
|
|
2633
2641
|
systemPrompt?: string | SystemMessage | SystemPromptConfig;
|
|
2634
2642
|
/**
|
|
@@ -2792,7 +2800,7 @@ type NamedSubagentRunStream<T extends AnySubAgent> = T extends {
|
|
|
2792
2800
|
* subagent in `TSubagents`. Enables TypeScript to narrow `.output`
|
|
2793
2801
|
* when the consumer checks `sub.name === "someSubagentName"`.
|
|
2794
2802
|
*/
|
|
2795
|
-
type SubagentRunStreamUnion<TSubagents extends readonly AnySubAgent[]> = { [K in keyof TSubagents]: NamedSubagentRunStream<TSubagents[K]
|
|
2803
|
+
type SubagentRunStreamUnion<TSubagents extends readonly AnySubAgent[]> = { [K in keyof TSubagents]: NamedSubagentRunStream<TSubagents[K]>; }[number];
|
|
2796
2804
|
/**
|
|
2797
2805
|
* An {@link AgentRunStream} whose `subagents` projection is narrowed to the
|
|
2798
2806
|
* deep agent's declared subagents.
|
|
@@ -2803,7 +2811,8 @@ type SubagentRunStreamUnion<TSubagents extends readonly AnySubAgent[]> = { [K in
|
|
|
2803
2811
|
* the generic `SubagentRunStream` to the typed {@link SubagentRunStreamUnion}.
|
|
2804
2812
|
*/
|
|
2805
2813
|
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>> = Omit<AgentRunStream<TValues, TTools, TExtensions>, "subagents"> & {
|
|
2806
|
-
/** Declared-subagent invocation streams from `createAgent`'s transformer. */
|
|
2814
|
+
/** Declared-subagent invocation streams from `createAgent`'s transformer. */
|
|
2815
|
+
subagents: AsyncIterable<SubagentRunStreamUnion<TSubagents>>;
|
|
2807
2816
|
};
|
|
2808
2817
|
//#endregion
|
|
2809
2818
|
//#region src/config.d.ts
|
|
@@ -3190,7 +3199,7 @@ declare class StoreBackend implements BackendProtocolV2 {
|
|
|
3190
3199
|
*/
|
|
3191
3200
|
readRaw(filePath: string): Promise<ReadRawResult>;
|
|
3192
3201
|
/**
|
|
3193
|
-
*
|
|
3202
|
+
* Write content to a file, creating it or overwriting it if it already exists.
|
|
3194
3203
|
* Returns WriteResult. External storage sets filesUpdate=null.
|
|
3195
3204
|
*/
|
|
3196
3205
|
write(filePath: string, content: string): Promise<WriteResult>;
|
|
@@ -3295,7 +3304,7 @@ declare class FilesystemBackend implements BackendProtocolV2 {
|
|
|
3295
3304
|
*/
|
|
3296
3305
|
readRaw(filePath: string): Promise<ReadRawResult>;
|
|
3297
3306
|
/**
|
|
3298
|
-
*
|
|
3307
|
+
* Write content to a file, creating it or overwriting it if it already exists.
|
|
3299
3308
|
* Returns WriteResult. External storage sets filesUpdate=null.
|
|
3300
3309
|
*/
|
|
3301
3310
|
write(filePath: string, content: string): Promise<WriteResult>;
|
|
@@ -3440,7 +3449,7 @@ declare class CompositeBackend implements BackendProtocolV2 {
|
|
|
3440
3449
|
*/
|
|
3441
3450
|
glob(pattern: string, path?: string): Promise<GlobResult>;
|
|
3442
3451
|
/**
|
|
3443
|
-
*
|
|
3452
|
+
* Write content to a file, routing to appropriate backend.
|
|
3444
3453
|
*
|
|
3445
3454
|
* @param filePath - Absolute file path
|
|
3446
3455
|
* @param content - File content as string
|
|
@@ -3784,10 +3793,9 @@ declare abstract class BaseSandbox implements SandboxBackendProtocolV2 {
|
|
|
3784
3793
|
*/
|
|
3785
3794
|
glob(pattern: string, path?: string): Promise<GlobResult>;
|
|
3786
3795
|
/**
|
|
3787
|
-
*
|
|
3796
|
+
* Write content to a file, creating it or overwriting it if it already exists.
|
|
3788
3797
|
*
|
|
3789
|
-
* Uses
|
|
3790
|
-
* No runtime needed on the sandbox host.
|
|
3798
|
+
* Uses uploadFiles() to write. No runtime needed on the sandbox host.
|
|
3791
3799
|
*/
|
|
3792
3800
|
write(filePath: string, content: string): Promise<WriteResult>;
|
|
3793
3801
|
/**
|
|
@@ -4066,7 +4074,7 @@ declare function createDeepAgent<TResponse extends SupportedResponseFormat = Sup
|
|
|
4066
4074
|
path: string;
|
|
4067
4075
|
}, {
|
|
4068
4076
|
path?: string | undefined;
|
|
4069
|
-
}, string
|
|
4077
|
+
}, string | _messages.ToolMessage<_messages.MessageStructure<_messages.MessageToolSet>>, unknown, "ls"> | import("langchain").DynamicStructuredTool<import("zod").ZodPreprocess<import("zod").ZodObject<{
|
|
4070
4078
|
file_path: import("zod").ZodString;
|
|
4071
4079
|
offset: import("zod").ZodDefault<import("zod").ZodOptional<import("zod").ZodCoercedNumber<unknown>>>;
|
|
4072
4080
|
limit: import("zod").ZodDefault<import("zod").ZodOptional<import("zod").ZodCoercedNumber<unknown>>>;
|
|
@@ -4074,7 +4082,7 @@ declare function createDeepAgent<TResponse extends SupportedResponseFormat = Sup
|
|
|
4074
4082
|
file_path: string;
|
|
4075
4083
|
offset: number;
|
|
4076
4084
|
limit: number;
|
|
4077
|
-
}, unknown, {
|
|
4085
|
+
}, unknown, _messages.ToolMessage<_messages.MessageStructure<_messages.MessageToolSet>> | {
|
|
4078
4086
|
type: string;
|
|
4079
4087
|
text: string;
|
|
4080
4088
|
}[] | {
|
|
@@ -4105,14 +4113,14 @@ declare function createDeepAgent<TResponse extends SupportedResponseFormat = Sup
|
|
|
4105
4113
|
messages: _messages.ToolMessage<_messages.MessageStructure<_messages.MessageToolSet>>[];
|
|
4106
4114
|
}, string>, unknown, "edit_file"> | import("langchain").DynamicStructuredTool<import("zod").ZodObject<{
|
|
4107
4115
|
pattern: import("zod").ZodString;
|
|
4108
|
-
path: import("zod").
|
|
4116
|
+
path: import("zod").ZodOptional<import("zod").ZodString>;
|
|
4109
4117
|
}, import("zod/v4/core").$strip>, {
|
|
4110
4118
|
pattern: string;
|
|
4111
|
-
path
|
|
4119
|
+
path?: string | undefined;
|
|
4112
4120
|
}, {
|
|
4113
4121
|
pattern: string;
|
|
4114
4122
|
path?: string | undefined;
|
|
4115
|
-
}, string
|
|
4123
|
+
}, string | _messages.ToolMessage<_messages.MessageStructure<_messages.MessageToolSet>>, unknown, "glob"> | import("langchain").DynamicStructuredTool<import("zod").ZodObject<{
|
|
4116
4124
|
pattern: import("zod").ZodString;
|
|
4117
4125
|
path: import("zod").ZodDefault<import("zod").ZodOptional<import("zod").ZodString>>;
|
|
4118
4126
|
glob: import("zod").ZodDefault<import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodString>>>;
|
|
@@ -4124,7 +4132,7 @@ declare function createDeepAgent<TResponse extends SupportedResponseFormat = Sup
|
|
|
4124
4132
|
pattern: string;
|
|
4125
4133
|
path?: string | undefined;
|
|
4126
4134
|
glob?: string | null | undefined;
|
|
4127
|
-
}, string
|
|
4135
|
+
}, string | _messages.ToolMessage<_messages.MessageStructure<_messages.MessageToolSet>>, unknown, "grep"> | import("langchain").DynamicStructuredTool<import("zod").ZodObject<{
|
|
4128
4136
|
command: import("zod").ZodString;
|
|
4129
4137
|
}, import("zod/v4/core").$strip>, {
|
|
4130
4138
|
command: string;
|
|
@@ -4148,5 +4156,5 @@ declare function createDeepAgent<TResponse extends SupportedResponseFormat = Sup
|
|
|
4148
4156
|
}, import("zod/v4/core").$strip>>;
|
|
4149
4157
|
}, import("zod/v4/core").$strip>, undefined, unknown, readonly (ClientTool | ServerTool)[], readonly []>, AgentMiddleware<undefined, undefined, unknown, readonly (ClientTool | ServerTool)[], readonly []>, ...TMiddleware, ...FlattenSubAgentMiddleware<TSubagents>], TTools, TSubagents, TStreamTransformers>>;
|
|
4150
4158
|
//#endregion
|
|
4151
|
-
export {
|
|
4152
|
-
//# sourceMappingURL=agent-
|
|
4159
|
+
export { createAsyncSubAgentMiddleware as $, BackendRuntime as $t, findProjectRoot as A, BackendProtocolV1 as An, serializeProfile as At, InferDeepAgentSubagents as B, BASE_AGENT_PROMPT as Bt, parseSkillMetadata as C, StateAndStore as Cn, createSubAgentMiddleware as Ct, Settings as D, resolveBackend as Dn, generalPurposeSubagentConfigSchema as Dt, filesValue as E, isSandboxProtocol as En, HarnessProfileConfigData as Et, DeepAgent as F, HarnessProfileOptions as Ft, InferSubagentReactAgentType as G, FsToolName as Gt, InferStructuredResponse as H, SystemPromptConfig as Ht, DeepAgentTypeConfig as I, REQUIRED_MIDDLEWARE_NAMES as It, SupportedResponseFormat as J, FilesystemPermission as Jt, MergedDeepAgentState as K, createFilesystemMiddleware as Kt, DefaultDeepAgentTypeConfig as L, ConfigurationError as Lt, SubagentRunStream$1 as M, createHarnessProfile as Mt, AnySubAgent as N, GeneralPurposeSubagentConfig as Nt, SettingsOptions as O, BackendProtocolV2 as On, harnessProfileConfigSchema as Ot, CreateDeepAgentParams as P, HarnessProfile as Pt, AsyncTaskStatus as Q, BackendProtocol as Qt, ExtractSubAgentMiddleware as R, ConfigurationErrorCode as Rt, listSkills as S, SandboxListResponse as Sn, createSubAgent as St, createAgentMemoryMiddleware as T, isSandboxBackend as Tn, registerHarnessProfile as Tt, InferSubAgentMiddlewareStates as U, TASK_SYSTEM_PROMPT as Ut, InferDeepAgentType as V, EXECUTION_SYSTEM_PROMPT as Vt, InferSubagentByName as W, FilesystemMiddlewareOptions as Wt, AsyncSubAgentMiddlewareOptions as X, AnyBackendProtocol as Xt, AsyncSubAgent as Y, PermissionMode as Yt, AsyncTask as Z, BackendFactory as Zt, StoreBackendContext as _, SandboxError as _n, DEFAULT_SUBAGENT_PROMPT as _t, adaptBackendProtocol as a, FileInfo as an, MAX_SKILL_DESCRIPTION_LENGTH as at, ListSkillsOptions as b, SandboxInfo as bn, SubAgent as bt, LangSmithSandboxCreateOptions as c, GlobResult as cn, SkillMetadata$1 as ct, LocalShellBackend as d, LsResult as dn, MemoryMiddlewareOptions as dt, DeleteResult as en, isAsyncSubAgent as et, LocalShellBackendOptions as f, MaybePromise as fn, createMemoryMiddleware as ft, StoreBackend as g, SandboxDeleteOptions as gn, DEFAULT_GENERAL_PURPOSE_DESCRIPTION as gt, FilesystemBackend as h, SandboxBackendProtocol as hn, CompiledSubAgent as ht, LangSmithStartSandboxOptions as i, FileDownloadResponse as in, createCompletionCallbackMiddleware as it, DeepAgentRunStream as j, SandboxBackendProtocolV1 as jn, EMPTY_HARNESS_PROFILE as jt, createSettings as k, SandboxBackendProtocolV2 as kn, parseHarnessProfileConfig as kt, LangSmithSandboxOptions as l, GrepMatch as ln, SkillsMiddlewareOptions as lt, CompositeBackend as m, ReadResult as mn, createPatchToolCallsMiddleware as mt, LangSmithCaptureSnapshotOptions as n, ExecuteResponse as nn, createSummarizationMiddleware as nt, adaptSandboxProtocol as o, FileOperationError as on, MAX_SKILL_FILE_SIZE as ot, ContextHubBackend as p, ReadRawResult as pn, StateBackend as pt, ResolveDeepAgentTypeConfig as q, FilesystemOperation as qt, LangSmithSnapshot as r, FileData as rn, CompletionCallbackOptions as rt, LangSmithSandbox as s, FileUploadResponse as sn, MAX_SKILL_NAME_LENGTH as st, createDeepAgent as t, EditResult as tn, computeSummarizationDefaults as tt, BaseSandbox as u, GrepResult as un, createSkillsMiddleware as ut, StoreBackendNamespaceFactory as v, SandboxErrorCode as vn, GENERAL_PURPOSE_SUBAGENT as vt, AgentMemoryMiddlewareOptions as w, WriteResult as wn, getHarnessProfile as wt, SkillMetadata as x, SandboxListOptions as xn, SubAgentMiddlewareOptions as xt, StoreBackendOptions as y, SandboxGetOrCreateOptions as yn, SUBAGENT_RESPONSE_FORMAT_CONFIG_KEY as yt, FlattenSubAgentMiddleware as z, ASYNC_TASK_SYSTEM_PROMPT as zt };
|
|
4160
|
+
//# sourceMappingURL=agent-a2Rs6dm8.d.cts.map
|
package/dist/browser.cjs
CHANGED
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
-
const require_langsmith = require("./langsmith-
|
|
2
|
+
const require_langsmith = require("./langsmith-CyORon4P.cjs");
|
|
3
|
+
exports.ASYNC_TASK_SYSTEM_PROMPT = require_langsmith.ASYNC_TASK_SYSTEM_PROMPT;
|
|
4
|
+
exports.BASE_AGENT_PROMPT = require_langsmith.BASE_AGENT_PROMPT;
|
|
3
5
|
exports.BaseSandbox = require_langsmith.BaseSandbox;
|
|
4
6
|
exports.CompositeBackend = require_langsmith.CompositeBackend;
|
|
5
7
|
exports.ConfigurationError = require_langsmith.ConfigurationError;
|
|
@@ -7,6 +9,7 @@ exports.ContextHubBackend = require_langsmith.ContextHubBackend;
|
|
|
7
9
|
exports.DEFAULT_GENERAL_PURPOSE_DESCRIPTION = require_langsmith.DEFAULT_GENERAL_PURPOSE_DESCRIPTION;
|
|
8
10
|
exports.DEFAULT_SUBAGENT_PROMPT = require_langsmith.DEFAULT_SUBAGENT_PROMPT;
|
|
9
11
|
exports.EMPTY_HARNESS_PROFILE = require_langsmith.EMPTY_HARNESS_PROFILE;
|
|
12
|
+
exports.EXECUTION_SYSTEM_PROMPT = require_langsmith.EXECUTION_SYSTEM_PROMPT;
|
|
10
13
|
exports.GENERAL_PURPOSE_SUBAGENT = require_langsmith.GENERAL_PURPOSE_SUBAGENT;
|
|
11
14
|
exports.LangSmithSandbox = require_langsmith.LangSmithSandbox;
|
|
12
15
|
exports.MAX_SKILL_DESCRIPTION_LENGTH = require_langsmith.MAX_SKILL_DESCRIPTION_LENGTH;
|
package/dist/browser.d.cts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { $ as
|
|
1
|
+
import { $ as createAsyncSubAgentMiddleware, $t as BackendRuntime, An as BackendProtocolV1, At as serializeProfile, B as InferDeepAgentSubagents, Bt as BASE_AGENT_PROMPT, Cn as StateAndStore, Ct as createSubAgentMiddleware, Dn as resolveBackend, Dt as generalPurposeSubagentConfigSchema, E as filesValue, En as isSandboxProtocol, Et as HarnessProfileConfigData, F as DeepAgent, Ft as HarnessProfileOptions, G as InferSubagentReactAgentType, Gt as FsToolName, H as InferStructuredResponse, Ht as SystemPromptConfig, I as DeepAgentTypeConfig, It as REQUIRED_MIDDLEWARE_NAMES, J as SupportedResponseFormat, Jt as FilesystemPermission, K as MergedDeepAgentState, Kt as createFilesystemMiddleware, L as DefaultDeepAgentTypeConfig, Lt as ConfigurationError, M as SubagentRunStream, Mt as createHarnessProfile, N as AnySubAgent, Nt as GeneralPurposeSubagentConfig, On as BackendProtocolV2, Ot as harnessProfileConfigSchema, P as CreateDeepAgentParams, Pt as HarnessProfile, Q as AsyncTaskStatus, Qt as BackendProtocol, R as ExtractSubAgentMiddleware, Rt as ConfigurationErrorCode, Sn as SandboxListResponse, Tn as isSandboxBackend, Tt as registerHarnessProfile, U as InferSubAgentMiddlewareStates, Ut as TASK_SYSTEM_PROMPT, V as InferDeepAgentType, Vt as EXECUTION_SYSTEM_PROMPT, W as InferSubagentByName, Wt as FilesystemMiddlewareOptions, X as AsyncSubAgentMiddlewareOptions, Xt as AnyBackendProtocol, Y as AsyncSubAgent, Yt as PermissionMode, Z as AsyncTask, Zt as BackendFactory, _ as StoreBackendContext, _n as SandboxError, _t as DEFAULT_SUBAGENT_PROMPT, a as adaptBackendProtocol, an as FileInfo, at as MAX_SKILL_DESCRIPTION_LENGTH, bn as SandboxInfo, bt as SubAgent, c as LangSmithSandboxCreateOptions, cn as GlobResult, ct as SkillMetadata, dn as LsResult, dt as MemoryMiddlewareOptions, en as DeleteResult, et as isAsyncSubAgent, fn as MaybePromise, ft as createMemoryMiddleware, g as StoreBackend, gn as SandboxDeleteOptions, gt as DEFAULT_GENERAL_PURPOSE_DESCRIPTION, hn as SandboxBackendProtocol, ht as CompiledSubAgent, in as FileDownloadResponse, it as createCompletionCallbackMiddleware, j as DeepAgentRunStream, jn as SandboxBackendProtocolV1, jt as EMPTY_HARNESS_PROFILE, kn as SandboxBackendProtocolV2, kt as parseHarnessProfileConfig, l as LangSmithSandboxOptions, ln as GrepMatch, lt as SkillsMiddlewareOptions, m as CompositeBackend, mn as ReadResult, mt as createPatchToolCallsMiddleware, nn as ExecuteResponse, nt as createSummarizationMiddleware, o as adaptSandboxProtocol, on as FileOperationError, ot as MAX_SKILL_FILE_SIZE, p as ContextHubBackend, pn as ReadRawResult, pt as StateBackend, q as ResolveDeepAgentTypeConfig, qt as FilesystemOperation, rn as FileData, rt as CompletionCallbackOptions, s as LangSmithSandbox, sn as FileUploadResponse, st as MAX_SKILL_NAME_LENGTH, t as createDeepAgent, tn as EditResult, tt as computeSummarizationDefaults, u as BaseSandbox, un as GrepResult, ut as createSkillsMiddleware, v as StoreBackendNamespaceFactory, vn as SandboxErrorCode, vt as GENERAL_PURPOSE_SUBAGENT, wn as WriteResult, wt as getHarnessProfile, xn as SandboxListOptions, xt as SubAgentMiddlewareOptions, y as StoreBackendOptions, yn as SandboxGetOrCreateOptions, z as FlattenSubAgentMiddleware, zt as ASYNC_TASK_SYSTEM_PROMPT } from "./agent-a2Rs6dm8.cjs";
|
|
2
2
|
import { CaptureSnapshotOptions as LangSmithCaptureSnapshotOptions, Snapshot as LangSmithSnapshot, StartSandboxOptions as LangSmithStartSandboxOptions } from "langsmith/experimental/sandbox";
|
|
3
|
-
export { 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, ContextHubBackend, type CreateDeepAgentParams, DEFAULT_GENERAL_PURPOSE_DESCRIPTION, DEFAULT_SUBAGENT_PROMPT, type DeepAgent, type DeepAgentRunStream, type DeepAgentTypeConfig, type DefaultDeepAgentTypeConfig, type DeleteResult, EMPTY_HARNESS_PROFILE, 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 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 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, registerHarnessProfile, resolveBackend, serializeProfile };
|
|
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 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 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, registerHarnessProfile, resolveBackend, serializeProfile };
|
package/dist/browser.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { $ as
|
|
1
|
+
import { $ as createAsyncSubAgentMiddleware, $t as BackendRuntime, An as BackendProtocolV1, At as serializeProfile, B as InferDeepAgentSubagents, Bt as BASE_AGENT_PROMPT, Cn as StateAndStore, Ct as createSubAgentMiddleware, Dn as resolveBackend, Dt as generalPurposeSubagentConfigSchema, E as filesValue, En as isSandboxProtocol, Et as HarnessProfileConfigData, F as DeepAgent, Ft as HarnessProfileOptions, G as InferSubagentReactAgentType, Gt as FsToolName, H as InferStructuredResponse, Ht as SystemPromptConfig, I as DeepAgentTypeConfig, It as REQUIRED_MIDDLEWARE_NAMES, J as SupportedResponseFormat, Jt as FilesystemPermission, K as MergedDeepAgentState, Kt as createFilesystemMiddleware, L as DefaultDeepAgentTypeConfig, Lt as ConfigurationError, M as SubagentRunStream, Mt as createHarnessProfile, N as AnySubAgent, Nt as GeneralPurposeSubagentConfig, On as BackendProtocolV2, Ot as harnessProfileConfigSchema, P as CreateDeepAgentParams, Pt as HarnessProfile, Q as AsyncTaskStatus, Qt as BackendProtocol, R as ExtractSubAgentMiddleware, Rt as ConfigurationErrorCode, Sn as SandboxListResponse, Tn as isSandboxBackend, Tt as registerHarnessProfile, U as InferSubAgentMiddlewareStates, Ut as TASK_SYSTEM_PROMPT, V as InferDeepAgentType, Vt as EXECUTION_SYSTEM_PROMPT, W as InferSubagentByName, Wt as FilesystemMiddlewareOptions, X as AsyncSubAgentMiddlewareOptions, Xt as AnyBackendProtocol, Y as AsyncSubAgent, Yt as PermissionMode, Z as AsyncTask, Zt as BackendFactory, _ as StoreBackendContext, _n as SandboxError, _t as DEFAULT_SUBAGENT_PROMPT, a as adaptBackendProtocol, an as FileInfo, at as MAX_SKILL_DESCRIPTION_LENGTH, bn as SandboxInfo, bt as SubAgent, c as LangSmithSandboxCreateOptions, cn as GlobResult, ct as SkillMetadata, dn as LsResult, dt as MemoryMiddlewareOptions, en as DeleteResult, et as isAsyncSubAgent, fn as MaybePromise, ft as createMemoryMiddleware, g as StoreBackend, gn as SandboxDeleteOptions, gt as DEFAULT_GENERAL_PURPOSE_DESCRIPTION, hn as SandboxBackendProtocol, ht as CompiledSubAgent, in as FileDownloadResponse, it as createCompletionCallbackMiddleware, j as DeepAgentRunStream, jn as SandboxBackendProtocolV1, jt as EMPTY_HARNESS_PROFILE, kn as SandboxBackendProtocolV2, kt as parseHarnessProfileConfig, l as LangSmithSandboxOptions, ln as GrepMatch, lt as SkillsMiddlewareOptions, m as CompositeBackend, mn as ReadResult, mt as createPatchToolCallsMiddleware, nn as ExecuteResponse, nt as createSummarizationMiddleware, o as adaptSandboxProtocol, on as FileOperationError, ot as MAX_SKILL_FILE_SIZE, p as ContextHubBackend, pn as ReadRawResult, pt as StateBackend, q as ResolveDeepAgentTypeConfig, qt as FilesystemOperation, rn as FileData, rt as CompletionCallbackOptions, s as LangSmithSandbox, sn as FileUploadResponse, st as MAX_SKILL_NAME_LENGTH, t as createDeepAgent, tn as EditResult, tt as computeSummarizationDefaults, u as BaseSandbox, un as GrepResult, ut as createSkillsMiddleware, v as StoreBackendNamespaceFactory, vn as SandboxErrorCode, vt as GENERAL_PURPOSE_SUBAGENT, wn as WriteResult, wt as getHarnessProfile, xn as SandboxListOptions, xt as SubAgentMiddlewareOptions, y as StoreBackendOptions, yn as SandboxGetOrCreateOptions, z as FlattenSubAgentMiddleware, zt as ASYNC_TASK_SYSTEM_PROMPT } from "./agent-BHm2eFEE.js";
|
|
2
2
|
import { CaptureSnapshotOptions as LangSmithCaptureSnapshotOptions, Snapshot as LangSmithSnapshot, StartSandboxOptions as LangSmithStartSandboxOptions } from "langsmith/experimental/sandbox";
|
|
3
|
-
export { 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, ContextHubBackend, type CreateDeepAgentParams, DEFAULT_GENERAL_PURPOSE_DESCRIPTION, DEFAULT_SUBAGENT_PROMPT, type DeepAgent, type DeepAgentRunStream, type DeepAgentTypeConfig, type DefaultDeepAgentTypeConfig, type DeleteResult, EMPTY_HARNESS_PROFILE, 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 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 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, registerHarnessProfile, resolveBackend, serializeProfile };
|
|
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 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 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, registerHarnessProfile, resolveBackend, serializeProfile };
|
package/dist/browser.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { A as
|
|
2
|
-
export { BaseSandbox, CompositeBackend, ConfigurationError, ContextHubBackend, DEFAULT_GENERAL_PURPOSE_DESCRIPTION, DEFAULT_SUBAGENT_PROMPT, EMPTY_HARNESS_PROFILE, 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, registerHarnessProfile, resolveBackend, serializeProfile };
|
|
1
|
+
import { A as filesValue, B as StateBackend, C as createSummarizationMiddleware, D as MAX_SKILL_NAME_LENGTH, E as MAX_SKILL_FILE_SIZE, G as adaptBackendProtocol, H as isSandboxBackend, K as adaptSandboxProtocol, L as createSubAgentMiddleware, M as DEFAULT_GENERAL_PURPOSE_DESCRIPTION, N as DEFAULT_SUBAGENT_PROMPT, O as createSkillsMiddleware, P as GENERAL_PURPOSE_SUBAGENT, R as createFilesystemMiddleware, S as computeSummarizationDefaults, T as MAX_SKILL_DESCRIPTION_LENGTH, U as isSandboxProtocol, V as SandboxError, W as resolveBackend, _ as createHarnessProfile, a as ASYNC_TASK_SYSTEM_PROMPT, b as createAsyncSubAgentMiddleware, 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, r as ContextHubBackend, s as EXECUTION_SYSTEM_PROMPT, t as LangSmithSandbox, u as getHarnessProfile, v as REQUIRED_MIDDLEWARE_NAMES, w as createCompletionCallbackMiddleware, x as isAsyncSubAgent, y as ConfigurationError, z as CompositeBackend } from "./langsmith-COC2ZzbQ.js";
|
|
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, registerHarnessProfile, resolveBackend, serializeProfile };
|
package/dist/index.cjs
CHANGED
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
-
const require_langsmith = require("./langsmith-
|
|
3
|
-
const require_src = require("./src-
|
|
2
|
+
const require_langsmith = require("./langsmith-CyORon4P.cjs");
|
|
3
|
+
const require_src = require("./src-2FgDsCyk.cjs");
|
|
4
|
+
exports.ASYNC_TASK_SYSTEM_PROMPT = require_langsmith.ASYNC_TASK_SYSTEM_PROMPT;
|
|
5
|
+
exports.BASE_AGENT_PROMPT = require_langsmith.BASE_AGENT_PROMPT;
|
|
4
6
|
exports.BaseSandbox = require_langsmith.BaseSandbox;
|
|
5
7
|
exports.CompositeBackend = require_langsmith.CompositeBackend;
|
|
6
8
|
exports.ConfigurationError = require_langsmith.ConfigurationError;
|
|
@@ -8,6 +10,7 @@ exports.ContextHubBackend = require_langsmith.ContextHubBackend;
|
|
|
8
10
|
exports.DEFAULT_GENERAL_PURPOSE_DESCRIPTION = require_langsmith.DEFAULT_GENERAL_PURPOSE_DESCRIPTION;
|
|
9
11
|
exports.DEFAULT_SUBAGENT_PROMPT = require_langsmith.DEFAULT_SUBAGENT_PROMPT;
|
|
10
12
|
exports.EMPTY_HARNESS_PROFILE = require_langsmith.EMPTY_HARNESS_PROFILE;
|
|
13
|
+
exports.EXECUTION_SYSTEM_PROMPT = require_langsmith.EXECUTION_SYSTEM_PROMPT;
|
|
11
14
|
exports.FilesystemBackend = require_src.FilesystemBackend;
|
|
12
15
|
exports.GENERAL_PURPOSE_SUBAGENT = require_langsmith.GENERAL_PURPOSE_SUBAGENT;
|
|
13
16
|
exports.LangSmithSandbox = require_langsmith.LangSmithSandbox;
|
package/dist/index.d.cts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { $ as
|
|
2
|
-
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, ContextHubBackend, type CreateDeepAgentParams, DEFAULT_GENERAL_PURPOSE_DESCRIPTION, DEFAULT_SUBAGENT_PROMPT, type DeepAgent, type DeepAgentRunStream, type DeepAgentTypeConfig, type DefaultDeepAgentTypeConfig, type DeleteResult, EMPTY_HARNESS_PROFILE, 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 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, 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 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, createAgentMemoryMiddleware, createAsyncSubAgentMiddleware, createCompletionCallbackMiddleware, createDeepAgent, createFilesystemMiddleware, createHarnessProfile, createMemoryMiddleware, createPatchToolCallsMiddleware, createSettings, createSkillsMiddleware, createSubAgent, createSubAgentMiddleware, createSummarizationMiddleware, filesValue, findProjectRoot, generalPurposeSubagentConfigSchema, getHarnessProfile, harnessProfileConfigSchema, isAsyncSubAgent, isSandboxBackend, isSandboxProtocol, listSkills, parseHarnessProfileConfig, parseSkillMetadata, registerHarnessProfile, resolveBackend, serializeProfile };
|
|
1
|
+
import { $ as createAsyncSubAgentMiddleware, $t as BackendRuntime, A as findProjectRoot, An as BackendProtocolV1, At as serializeProfile, B as InferDeepAgentSubagents, Bt as BASE_AGENT_PROMPT, C as parseSkillMetadata, Cn as StateAndStore, Ct as createSubAgentMiddleware, D as Settings, Dn as resolveBackend, Dt as generalPurposeSubagentConfigSchema, E as filesValue, En as isSandboxProtocol, Et as HarnessProfileConfigData, F as DeepAgent, Ft as HarnessProfileOptions, G as InferSubagentReactAgentType, Gt as FsToolName, H as InferStructuredResponse, Ht as SystemPromptConfig, I as DeepAgentTypeConfig, It as REQUIRED_MIDDLEWARE_NAMES, J as SupportedResponseFormat, Jt as FilesystemPermission, K as MergedDeepAgentState, Kt as createFilesystemMiddleware, L as DefaultDeepAgentTypeConfig, Lt as ConfigurationError, M as SubagentRunStream, Mt as createHarnessProfile, N as AnySubAgent, Nt as GeneralPurposeSubagentConfig, O as SettingsOptions, On as BackendProtocolV2, Ot as harnessProfileConfigSchema, P as CreateDeepAgentParams, Pt as HarnessProfile, Q as AsyncTaskStatus, Qt as BackendProtocol, R as ExtractSubAgentMiddleware, Rt as ConfigurationErrorCode, S as listSkills, Sn as SandboxListResponse, St as createSubAgent, T as createAgentMemoryMiddleware, Tn as isSandboxBackend, Tt as registerHarnessProfile, U as InferSubAgentMiddlewareStates, Ut as TASK_SYSTEM_PROMPT, V as InferDeepAgentType, Vt as EXECUTION_SYSTEM_PROMPT, W as InferSubagentByName, Wt as FilesystemMiddlewareOptions, X as AsyncSubAgentMiddlewareOptions, Xt as AnyBackendProtocol, Y as AsyncSubAgent, Yt as PermissionMode, Z as AsyncTask, Zt as BackendFactory, _ as StoreBackendContext, _n as SandboxError, _t as DEFAULT_SUBAGENT_PROMPT, a as adaptBackendProtocol, an as FileInfo, at as MAX_SKILL_DESCRIPTION_LENGTH, b as ListSkillsOptions, bn as SandboxInfo, bt as SubAgent, c as LangSmithSandboxCreateOptions, cn as GlobResult, ct as SkillMetadata$1, d as LocalShellBackend, dn as LsResult, dt as MemoryMiddlewareOptions, en as DeleteResult, et as isAsyncSubAgent, f as LocalShellBackendOptions, fn as MaybePromise, ft as createMemoryMiddleware, g as StoreBackend, gn as SandboxDeleteOptions, gt as DEFAULT_GENERAL_PURPOSE_DESCRIPTION, h as FilesystemBackend, hn as SandboxBackendProtocol, ht as CompiledSubAgent, i as LangSmithStartSandboxOptions, in as FileDownloadResponse, it as createCompletionCallbackMiddleware, j as DeepAgentRunStream, jn as SandboxBackendProtocolV1, jt as EMPTY_HARNESS_PROFILE, k as createSettings, kn as SandboxBackendProtocolV2, kt as parseHarnessProfileConfig, l as LangSmithSandboxOptions, ln as GrepMatch, lt as SkillsMiddlewareOptions, m as CompositeBackend, mn as ReadResult, mt as createPatchToolCallsMiddleware, n as LangSmithCaptureSnapshotOptions, nn as ExecuteResponse, nt as createSummarizationMiddleware, o as adaptSandboxProtocol, on as FileOperationError, ot as MAX_SKILL_FILE_SIZE, p as ContextHubBackend, pn as ReadRawResult, pt as StateBackend, q as ResolveDeepAgentTypeConfig, qt as FilesystemOperation, r as LangSmithSnapshot, rn as FileData, rt as CompletionCallbackOptions, s as LangSmithSandbox, sn as FileUploadResponse, st as MAX_SKILL_NAME_LENGTH, t as createDeepAgent, tn as EditResult, tt as computeSummarizationDefaults, u as BaseSandbox, un as GrepResult, ut as createSkillsMiddleware, v as StoreBackendNamespaceFactory, vn as SandboxErrorCode, vt as GENERAL_PURPOSE_SUBAGENT, w as AgentMemoryMiddlewareOptions, wn as WriteResult, wt as getHarnessProfile, x as SkillMetadata, xn as SandboxListOptions, xt as SubAgentMiddlewareOptions, y as StoreBackendOptions, yn as SandboxGetOrCreateOptions, yt as SUBAGENT_RESPONSE_FORMAT_CONFIG_KEY, z as FlattenSubAgentMiddleware, zt as ASYNC_TASK_SYSTEM_PROMPT } from "./agent-a2Rs6dm8.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 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, 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 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, createAgentMemoryMiddleware, createAsyncSubAgentMiddleware, createCompletionCallbackMiddleware, createDeepAgent, createFilesystemMiddleware, createHarnessProfile, createMemoryMiddleware, createPatchToolCallsMiddleware, createSettings, createSkillsMiddleware, createSubAgent, createSubAgentMiddleware, createSummarizationMiddleware, filesValue, findProjectRoot, generalPurposeSubagentConfigSchema, getHarnessProfile, harnessProfileConfigSchema, isAsyncSubAgent, isSandboxBackend, isSandboxProtocol, listSkills, parseHarnessProfileConfig, parseSkillMetadata, registerHarnessProfile, resolveBackend, serializeProfile };
|