deepagents 1.12.2 → 1.12.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{agent-DwU6Gs2-.d.cts → agent-CKQ2LDaJ.d.cts} +17 -3
- package/dist/{agent-pS9QvkWZ.d.ts → agent-JA9TGZlt.d.ts} +17 -3
- package/dist/browser.cjs +1 -1
- package/dist/browser.d.cts +1 -1
- package/dist/browser.d.ts +1 -1
- package/dist/browser.js +1 -1
- package/dist/index.cjs +2 -2
- package/dist/index.d.cts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +2 -2
- package/dist/{langsmith-D2d3Dwcc.cjs → langsmith-Bjhs2iT_.cjs} +82 -39
- package/dist/langsmith-Bjhs2iT_.cjs.map +1 -0
- package/dist/{langsmith-b3Dpu8rS.js → langsmith-CUTUAjHo.js} +81 -38
- package/dist/langsmith-CUTUAjHo.js.map +1 -0
- package/dist/node.cjs +2 -2
- package/dist/node.d.cts +1 -1
- package/dist/node.d.ts +1 -1
- package/dist/node.js +2 -2
- package/dist/{src-Dkrvbmp1.cjs → src-Dc8werER.cjs} +8 -5
- package/dist/src-Dc8werER.cjs.map +1 -0
- package/dist/{src-DMUJ51B3.js → src-Dr5XWqq_.js} +8 -5
- package/dist/{src-DMUJ51B3.js.map → src-Dr5XWqq_.js.map} +1 -1
- package/package.json +1 -1
- package/dist/langsmith-D2d3Dwcc.cjs.map +0 -1
- package/dist/langsmith-b3Dpu8rS.js.map +0 -1
- package/dist/src-Dkrvbmp1.cjs.map +0 -1
|
@@ -939,16 +939,23 @@ declare function createFilesystemMiddleware(options?: FilesystemMiddlewareOption
|
|
|
939
939
|
path: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
940
940
|
glob: z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodString>>>;
|
|
941
941
|
max_count: z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>;
|
|
942
|
+
output_mode: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
|
|
943
|
+
content: "content";
|
|
944
|
+
count: "count";
|
|
945
|
+
files_with_matches: "files_with_matches";
|
|
946
|
+
}>>>;
|
|
942
947
|
}, z.core.$strip>, {
|
|
943
948
|
pattern: string;
|
|
944
949
|
path: string;
|
|
945
950
|
glob: string | null;
|
|
946
951
|
max_count: number | null;
|
|
952
|
+
output_mode: "content" | "count" | "files_with_matches";
|
|
947
953
|
}, {
|
|
948
954
|
pattern: string;
|
|
949
955
|
path?: string | undefined;
|
|
950
956
|
glob?: string | null | undefined;
|
|
951
957
|
max_count?: number | null | undefined;
|
|
958
|
+
output_mode?: "content" | "count" | "files_with_matches" | undefined;
|
|
952
959
|
}, string | ToolMessage<_messages.MessageStructure<_messages.MessageToolSet>>, unknown, "grep"> | _langchain.DynamicStructuredTool<z.ZodObject<{
|
|
953
960
|
command: z.ZodString;
|
|
954
961
|
}, z.core.$strip>, {
|
|
@@ -2149,8 +2156,8 @@ interface SummarizationMiddlewareOptions {
|
|
|
2149
2156
|
*/
|
|
2150
2157
|
summaryPrompt?: string;
|
|
2151
2158
|
/**
|
|
2152
|
-
* Max tokens to include when generating summary.
|
|
2153
|
-
*
|
|
2159
|
+
* Max tokens to include when generating a summary.
|
|
2160
|
+
* If omitted, the complete selected conversation is provided to the summarizer.
|
|
2154
2161
|
*/
|
|
2155
2162
|
trimTokensToSummarize?: number;
|
|
2156
2163
|
/**
|
|
@@ -4077,16 +4084,23 @@ declare function createDeepAgent<TResponse extends SupportedResponseFormat = Sup
|
|
|
4077
4084
|
path: import("zod").ZodDefault<import("zod").ZodOptional<import("zod").ZodString>>;
|
|
4078
4085
|
glob: import("zod").ZodDefault<import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodString>>>;
|
|
4079
4086
|
max_count: import("zod").ZodDefault<import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodNumber>>>;
|
|
4087
|
+
output_mode: import("zod").ZodDefault<import("zod").ZodOptional<import("zod").ZodEnum<{
|
|
4088
|
+
content: "content";
|
|
4089
|
+
count: "count";
|
|
4090
|
+
files_with_matches: "files_with_matches";
|
|
4091
|
+
}>>>;
|
|
4080
4092
|
}, import("zod/v4/core").$strip>, {
|
|
4081
4093
|
pattern: string;
|
|
4082
4094
|
path: string;
|
|
4083
4095
|
glob: string | null;
|
|
4084
4096
|
max_count: number | null;
|
|
4097
|
+
output_mode: "content" | "count" | "files_with_matches";
|
|
4085
4098
|
}, {
|
|
4086
4099
|
pattern: string;
|
|
4087
4100
|
path?: string | undefined;
|
|
4088
4101
|
glob?: string | null | undefined;
|
|
4089
4102
|
max_count?: number | null | undefined;
|
|
4103
|
+
output_mode?: "content" | "count" | "files_with_matches" | undefined;
|
|
4090
4104
|
}, string | _messages.ToolMessage<_messages.MessageStructure<_messages.MessageToolSet>>, unknown, "grep"> | import("langchain").DynamicStructuredTool<import("zod").ZodObject<{
|
|
4091
4105
|
command: import("zod").ZodString;
|
|
4092
4106
|
}, import("zod/v4/core").$strip>, {
|
|
@@ -4149,4 +4163,4 @@ declare function createDeepAgent<TResponse extends SupportedResponseFormat = Sup
|
|
|
4149
4163
|
}, 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>>;
|
|
4150
4164
|
//#endregion
|
|
4151
4165
|
export { createAsyncSubAgentMiddleware as $, BackendRuntime as $t, findProjectRoot as A, SandboxBackendProtocolV2 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, isSandboxProtocol as Dn, generalPurposeSubagentConfigSchema as Dt, filesValue as E, isSandboxBackend 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, SandboxBackendProtocolV1 as Mn, createHarnessProfile as Mt, AnySubAgent as N, GeneralPurposeSubagentConfig as Nt, SettingsOptions as O, resolveBackend 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, applyGrepMaxCount 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, BackendProtocolV1 as jn, EMPTY_HARNESS_PROFILE as jt, createSettings as k, BackendProtocolV2 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 };
|
|
4152
|
-
//# sourceMappingURL=agent-
|
|
4166
|
+
//# sourceMappingURL=agent-CKQ2LDaJ.d.cts.map
|
|
@@ -939,16 +939,23 @@ declare function createFilesystemMiddleware(options?: FilesystemMiddlewareOption
|
|
|
939
939
|
path: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
940
940
|
glob: z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodString>>>;
|
|
941
941
|
max_count: z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>;
|
|
942
|
+
output_mode: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
|
|
943
|
+
content: "content";
|
|
944
|
+
count: "count";
|
|
945
|
+
files_with_matches: "files_with_matches";
|
|
946
|
+
}>>>;
|
|
942
947
|
}, z.core.$strip>, {
|
|
943
948
|
pattern: string;
|
|
944
949
|
path: string;
|
|
945
950
|
glob: string | null;
|
|
946
951
|
max_count: number | null;
|
|
952
|
+
output_mode: "content" | "count" | "files_with_matches";
|
|
947
953
|
}, {
|
|
948
954
|
pattern: string;
|
|
949
955
|
path?: string | undefined;
|
|
950
956
|
glob?: string | null | undefined;
|
|
951
957
|
max_count?: number | null | undefined;
|
|
958
|
+
output_mode?: "content" | "count" | "files_with_matches" | undefined;
|
|
952
959
|
}, string | ToolMessage<_messages.MessageStructure<_messages.MessageToolSet>>, unknown, "grep"> | _langchain.DynamicStructuredTool<z.ZodObject<{
|
|
953
960
|
command: z.ZodString;
|
|
954
961
|
}, z.core.$strip>, {
|
|
@@ -2149,8 +2156,8 @@ interface SummarizationMiddlewareOptions {
|
|
|
2149
2156
|
*/
|
|
2150
2157
|
summaryPrompt?: string;
|
|
2151
2158
|
/**
|
|
2152
|
-
* Max tokens to include when generating summary.
|
|
2153
|
-
*
|
|
2159
|
+
* Max tokens to include when generating a summary.
|
|
2160
|
+
* If omitted, the complete selected conversation is provided to the summarizer.
|
|
2154
2161
|
*/
|
|
2155
2162
|
trimTokensToSummarize?: number;
|
|
2156
2163
|
/**
|
|
@@ -4077,16 +4084,23 @@ declare function createDeepAgent<TResponse extends SupportedResponseFormat = Sup
|
|
|
4077
4084
|
path: import("zod").ZodDefault<import("zod").ZodOptional<import("zod").ZodString>>;
|
|
4078
4085
|
glob: import("zod").ZodDefault<import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodString>>>;
|
|
4079
4086
|
max_count: import("zod").ZodDefault<import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodNumber>>>;
|
|
4087
|
+
output_mode: import("zod").ZodDefault<import("zod").ZodOptional<import("zod").ZodEnum<{
|
|
4088
|
+
content: "content";
|
|
4089
|
+
count: "count";
|
|
4090
|
+
files_with_matches: "files_with_matches";
|
|
4091
|
+
}>>>;
|
|
4080
4092
|
}, import("zod/v4/core").$strip>, {
|
|
4081
4093
|
pattern: string;
|
|
4082
4094
|
path: string;
|
|
4083
4095
|
glob: string | null;
|
|
4084
4096
|
max_count: number | null;
|
|
4097
|
+
output_mode: "content" | "count" | "files_with_matches";
|
|
4085
4098
|
}, {
|
|
4086
4099
|
pattern: string;
|
|
4087
4100
|
path?: string | undefined;
|
|
4088
4101
|
glob?: string | null | undefined;
|
|
4089
4102
|
max_count?: number | null | undefined;
|
|
4103
|
+
output_mode?: "content" | "count" | "files_with_matches" | undefined;
|
|
4090
4104
|
}, string | _messages.ToolMessage<_messages.MessageStructure<_messages.MessageToolSet>>, unknown, "grep"> | import("langchain").DynamicStructuredTool<import("zod").ZodObject<{
|
|
4091
4105
|
command: import("zod").ZodString;
|
|
4092
4106
|
}, import("zod/v4/core").$strip>, {
|
|
@@ -4149,4 +4163,4 @@ declare function createDeepAgent<TResponse extends SupportedResponseFormat = Sup
|
|
|
4149
4163
|
}, 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>>;
|
|
4150
4164
|
//#endregion
|
|
4151
4165
|
export { createAsyncSubAgentMiddleware as $, BackendRuntime as $t, findProjectRoot as A, SandboxBackendProtocolV2 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, isSandboxProtocol as Dn, generalPurposeSubagentConfigSchema as Dt, filesValue as E, isSandboxBackend 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, SandboxBackendProtocolV1 as Mn, createHarnessProfile as Mt, AnySubAgent as N, GeneralPurposeSubagentConfig as Nt, SettingsOptions as O, resolveBackend 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, applyGrepMaxCount 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, BackendProtocolV1 as jn, EMPTY_HARNESS_PROFILE as jt, createSettings as k, BackendProtocolV2 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 };
|
|
4152
|
-
//# sourceMappingURL=agent-
|
|
4166
|
+
//# sourceMappingURL=agent-JA9TGZlt.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-
|
|
2
|
+
const require_langsmith = require("./langsmith-Bjhs2iT_.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;
|
package/dist/browser.d.cts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { $ as createAsyncSubAgentMiddleware, $t as BackendRuntime, An as SandboxBackendProtocolV2, At as serializeProfile, B as InferDeepAgentSubagents, Bt as BASE_AGENT_PROMPT, Cn as StateAndStore, Ct as createSubAgentMiddleware, Dn as isSandboxProtocol, Dt as generalPurposeSubagentConfigSchema, E as filesValue, En as isSandboxBackend, 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, Mn as SandboxBackendProtocolV1, Mt as createHarnessProfile, N as AnySubAgent, Nt as GeneralPurposeSubagentConfig, On as resolveBackend, Ot as harnessProfileConfigSchema, P as CreateDeepAgentParams, Pt as HarnessProfile, Q as AsyncTaskStatus, Qt as BackendProtocol, R as ExtractSubAgentMiddleware, Rt as ConfigurationErrorCode, Sn as SandboxListResponse, 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 BackendProtocolV1, jt as EMPTY_HARNESS_PROFILE, kn as BackendProtocolV2, 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-
|
|
1
|
+
import { $ as createAsyncSubAgentMiddleware, $t as BackendRuntime, An as SandboxBackendProtocolV2, At as serializeProfile, B as InferDeepAgentSubagents, Bt as BASE_AGENT_PROMPT, Cn as StateAndStore, Ct as createSubAgentMiddleware, Dn as isSandboxProtocol, Dt as generalPurposeSubagentConfigSchema, E as filesValue, En as isSandboxBackend, 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, Mn as SandboxBackendProtocolV1, Mt as createHarnessProfile, N as AnySubAgent, Nt as GeneralPurposeSubagentConfig, On as resolveBackend, Ot as harnessProfileConfigSchema, P as CreateDeepAgentParams, Pt as HarnessProfile, Q as AsyncTaskStatus, Qt as BackendProtocol, R as ExtractSubAgentMiddleware, Rt as ConfigurationErrorCode, Sn as SandboxListResponse, 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 BackendProtocolV1, jt as EMPTY_HARNESS_PROFILE, kn as BackendProtocolV2, 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-CKQ2LDaJ.cjs";
|
|
2
2
|
import { CaptureSnapshotOptions as LangSmithCaptureSnapshotOptions, Snapshot as LangSmithSnapshot, StartSandboxOptions as LangSmithStartSandboxOptions } from "langsmith/experimental/sandbox";
|
|
3
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 createAsyncSubAgentMiddleware, $t as BackendRuntime, An as SandboxBackendProtocolV2, At as serializeProfile, B as InferDeepAgentSubagents, Bt as BASE_AGENT_PROMPT, Cn as StateAndStore, Ct as createSubAgentMiddleware, Dn as isSandboxProtocol, Dt as generalPurposeSubagentConfigSchema, E as filesValue, En as isSandboxBackend, 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, Mn as SandboxBackendProtocolV1, Mt as createHarnessProfile, N as AnySubAgent, Nt as GeneralPurposeSubagentConfig, On as resolveBackend, Ot as harnessProfileConfigSchema, P as CreateDeepAgentParams, Pt as HarnessProfile, Q as AsyncTaskStatus, Qt as BackendProtocol, R as ExtractSubAgentMiddleware, Rt as ConfigurationErrorCode, Sn as SandboxListResponse, 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 BackendProtocolV1, jt as EMPTY_HARNESS_PROFILE, kn as BackendProtocolV2, 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-
|
|
1
|
+
import { $ as createAsyncSubAgentMiddleware, $t as BackendRuntime, An as SandboxBackendProtocolV2, At as serializeProfile, B as InferDeepAgentSubagents, Bt as BASE_AGENT_PROMPT, Cn as StateAndStore, Ct as createSubAgentMiddleware, Dn as isSandboxProtocol, Dt as generalPurposeSubagentConfigSchema, E as filesValue, En as isSandboxBackend, 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, Mn as SandboxBackendProtocolV1, Mt as createHarnessProfile, N as AnySubAgent, Nt as GeneralPurposeSubagentConfig, On as resolveBackend, Ot as harnessProfileConfigSchema, P as CreateDeepAgentParams, Pt as HarnessProfile, Q as AsyncTaskStatus, Qt as BackendProtocol, R as ExtractSubAgentMiddleware, Rt as ConfigurationErrorCode, Sn as SandboxListResponse, 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 BackendProtocolV1, jt as EMPTY_HARNESS_PROFILE, kn as BackendProtocolV2, 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-JA9TGZlt.js";
|
|
2
2
|
import { CaptureSnapshotOptions as LangSmithCaptureSnapshotOptions, Snapshot as LangSmithSnapshot, StartSandboxOptions as LangSmithStartSandboxOptions } from "langsmith/experimental/sandbox";
|
|
3
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 filesValue, B as StateBackend, C as createSummarizationMiddleware, D as MAX_SKILL_NAME_LENGTH, E as MAX_SKILL_FILE_SIZE, G as resolveBackend, K as adaptBackendProtocol, 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 isSandboxBackend, V as SandboxError, W as isSandboxProtocol, _ 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, q as adaptSandboxProtocol, 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-
|
|
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 resolveBackend, K as adaptBackendProtocol, 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 isSandboxBackend, V as SandboxError, W as isSandboxProtocol, _ 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, q as adaptSandboxProtocol, 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-CUTUAjHo.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, registerHarnessProfile, resolveBackend, serializeProfile };
|
package/dist/index.cjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
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-Bjhs2iT_.cjs");
|
|
3
|
+
const require_src = require("./src-Dc8werER.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 createAsyncSubAgentMiddleware, $t as BackendRuntime, A as findProjectRoot, An as SandboxBackendProtocolV2, 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 isSandboxProtocol, Dt as generalPurposeSubagentConfigSchema, E as filesValue, En as isSandboxBackend, 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, Mn as SandboxBackendProtocolV1, Mt as createHarnessProfile, N as AnySubAgent, Nt as GeneralPurposeSubagentConfig, O as SettingsOptions, On as resolveBackend, 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 applyGrepMaxCount, 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 BackendProtocolV1, jt as EMPTY_HARNESS_PROFILE, k as createSettings, kn as BackendProtocolV2, 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-
|
|
1
|
+
import { $ as createAsyncSubAgentMiddleware, $t as BackendRuntime, A as findProjectRoot, An as SandboxBackendProtocolV2, 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 isSandboxProtocol, Dt as generalPurposeSubagentConfigSchema, E as filesValue, En as isSandboxBackend, 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, Mn as SandboxBackendProtocolV1, Mt as createHarnessProfile, N as AnySubAgent, Nt as GeneralPurposeSubagentConfig, O as SettingsOptions, On as resolveBackend, 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 applyGrepMaxCount, 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 BackendProtocolV1, jt as EMPTY_HARNESS_PROFILE, k as createSettings, kn as BackendProtocolV2, 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-CKQ2LDaJ.cjs";
|
|
2
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, applyGrepMaxCount, 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 };
|
package/dist/index.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { $ as createAsyncSubAgentMiddleware, $t as BackendRuntime, A as findProjectRoot, An as SandboxBackendProtocolV2, 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 isSandboxProtocol, Dt as generalPurposeSubagentConfigSchema, E as filesValue, En as isSandboxBackend, 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, Mn as SandboxBackendProtocolV1, Mt as createHarnessProfile, N as AnySubAgent, Nt as GeneralPurposeSubagentConfig, O as SettingsOptions, On as resolveBackend, 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 applyGrepMaxCount, 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 BackendProtocolV1, jt as EMPTY_HARNESS_PROFILE, k as createSettings, kn as BackendProtocolV2, 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-
|
|
1
|
+
import { $ as createAsyncSubAgentMiddleware, $t as BackendRuntime, A as findProjectRoot, An as SandboxBackendProtocolV2, 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 isSandboxProtocol, Dt as generalPurposeSubagentConfigSchema, E as filesValue, En as isSandboxBackend, 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, Mn as SandboxBackendProtocolV1, Mt as createHarnessProfile, N as AnySubAgent, Nt as GeneralPurposeSubagentConfig, O as SettingsOptions, On as resolveBackend, 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 applyGrepMaxCount, 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 BackendProtocolV1, jt as EMPTY_HARNESS_PROFILE, k as createSettings, kn as BackendProtocolV2, 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-JA9TGZlt.js";
|
|
2
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, applyGrepMaxCount, 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 };
|
package/dist/index.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { A as filesValue, B as StateBackend, C as createSummarizationMiddleware, D as MAX_SKILL_NAME_LENGTH, E as MAX_SKILL_FILE_SIZE, F as SUBAGENT_RESPONSE_FORMAT_CONFIG_KEY, G as resolveBackend, H as applyGrepMaxCount, I as createSubAgent, K as adaptBackendProtocol, 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 isSandboxBackend, V as SandboxError, W as isSandboxProtocol, _ 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, q as adaptSandboxProtocol, 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-
|
|
2
|
-
import { a as createAgentMemoryMiddleware, i as parseSkillMetadata, n as FilesystemBackend, o as createSettings, r as listSkills, s as findProjectRoot, t as LocalShellBackend } from "./src-
|
|
1
|
+
import { A as filesValue, B as StateBackend, C as createSummarizationMiddleware, D as MAX_SKILL_NAME_LENGTH, E as MAX_SKILL_FILE_SIZE, F as SUBAGENT_RESPONSE_FORMAT_CONFIG_KEY, G as resolveBackend, H as applyGrepMaxCount, I as createSubAgent, K as adaptBackendProtocol, 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 isSandboxBackend, V as SandboxError, W as isSandboxProtocol, _ 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, q as adaptSandboxProtocol, 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-CUTUAjHo.js";
|
|
2
|
+
import { a as createAgentMemoryMiddleware, i as parseSkillMetadata, n as FilesystemBackend, o as createSettings, r as listSkills, s as findProjectRoot, t as LocalShellBackend } from "./src-Dr5XWqq_.js";
|
|
3
3
|
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, FilesystemBackend, GENERAL_PURPOSE_SUBAGENT, LangSmithSandbox, LocalShellBackend, MAX_SKILL_DESCRIPTION_LENGTH, MAX_SKILL_FILE_SIZE, MAX_SKILL_NAME_LENGTH, REQUIRED_MIDDLEWARE_NAMES, SUBAGENT_RESPONSE_FORMAT_CONFIG_KEY, SandboxError, StateBackend, StoreBackend, TASK_SYSTEM_PROMPT, adaptBackendProtocol, adaptSandboxProtocol, applyGrepMaxCount, 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 };
|
|
@@ -15,7 +15,7 @@ var __copyProps = (to, from, except, desc) => {
|
|
|
15
15
|
}
|
|
16
16
|
return to;
|
|
17
17
|
};
|
|
18
|
-
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", {
|
|
18
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(isNodeMode || !mod || !mod.__esModule || !__hasOwnProp.call(mod, "default") ? __defProp(target, "default", {
|
|
19
19
|
value: mod,
|
|
20
20
|
enumerable: true
|
|
21
21
|
}) : target, mod));
|
|
@@ -326,13 +326,13 @@ function performStringReplacement(content, oldString, newString, replaceAll) {
|
|
|
326
326
|
function truncateIfTooLong(result) {
|
|
327
327
|
if (Array.isArray(result)) {
|
|
328
328
|
const totalChars = result.reduce((sum, item) => sum + item.length, 0);
|
|
329
|
-
if (totalChars >
|
|
329
|
+
if (totalChars > 8e4) {
|
|
330
330
|
const truncateAt = Math.floor(result.length * TOOL_RESULT_TOKEN_LIMIT * 4 / totalChars);
|
|
331
331
|
return [...result.slice(0, truncateAt), TRUNCATION_GUIDANCE];
|
|
332
332
|
}
|
|
333
333
|
return result;
|
|
334
334
|
}
|
|
335
|
-
if (result.length >
|
|
335
|
+
if (result.length > 8e4) return result.substring(0, TOOL_RESULT_TOKEN_LIMIT * 4) + "\n... [results truncated, try being more specific with your parameters]";
|
|
336
336
|
return result;
|
|
337
337
|
}
|
|
338
338
|
/**
|
|
@@ -425,6 +425,30 @@ function globSearchFiles(files, pattern, path = "/") {
|
|
|
425
425
|
return matches.map(([fp]) => fp).join("\n");
|
|
426
426
|
}
|
|
427
427
|
/**
|
|
428
|
+
* Format grep search results based on output mode.
|
|
429
|
+
*
|
|
430
|
+
* @param results - Dictionary mapping file paths to list of [line_num, line_content] tuples
|
|
431
|
+
* @param outputMode - Output format - "files_with_matches", "content", or "count"
|
|
432
|
+
* @returns Formatted string output
|
|
433
|
+
*/
|
|
434
|
+
function formatGrepResults(results, outputMode) {
|
|
435
|
+
if (outputMode === "files_with_matches") return Object.keys(results).sort().join("\n");
|
|
436
|
+
if (outputMode === "count") {
|
|
437
|
+
const lines = [];
|
|
438
|
+
for (const filePath of Object.keys(results).sort()) {
|
|
439
|
+
const count = results[filePath].length;
|
|
440
|
+
lines.push(`${filePath}: ${count}`);
|
|
441
|
+
}
|
|
442
|
+
return lines.join("\n");
|
|
443
|
+
}
|
|
444
|
+
const lines = [];
|
|
445
|
+
for (const filePath of Object.keys(results).sort()) {
|
|
446
|
+
lines.push(`${filePath}:`);
|
|
447
|
+
for (const [lineNum, line] of results[filePath]) lines.push(` ${lineNum}: ${line}`);
|
|
448
|
+
}
|
|
449
|
+
return lines.join("\n");
|
|
450
|
+
}
|
|
451
|
+
/**
|
|
428
452
|
* Return structured grep matches from an in-memory files mapping.
|
|
429
453
|
*
|
|
430
454
|
* Performs literal text search (not regex). Binary files are skipped.
|
|
@@ -455,6 +479,24 @@ function grepMatchesFromFiles(files, pattern, path = null, glob = null) {
|
|
|
455
479
|
return matches;
|
|
456
480
|
}
|
|
457
481
|
/**
|
|
482
|
+
* Group structured matches into the legacy dict form used by formatters.
|
|
483
|
+
*/
|
|
484
|
+
function buildGrepResultsDict(matches) {
|
|
485
|
+
const grouped = {};
|
|
486
|
+
for (const m of matches) {
|
|
487
|
+
if (!grouped[m.path]) grouped[m.path] = [];
|
|
488
|
+
grouped[m.path].push([m.line, m.text]);
|
|
489
|
+
}
|
|
490
|
+
return grouped;
|
|
491
|
+
}
|
|
492
|
+
/**
|
|
493
|
+
* Format structured grep matches using existing formatting logic.
|
|
494
|
+
*/
|
|
495
|
+
function formatGrepMatches(matches, outputMode) {
|
|
496
|
+
if (matches.length === 0) return "No matches found";
|
|
497
|
+
return formatGrepResults(buildGrepResultsDict(matches), outputMode);
|
|
498
|
+
}
|
|
499
|
+
/**
|
|
458
500
|
* Determine MIME type from a file path's extension.
|
|
459
501
|
*
|
|
460
502
|
* Defaults to "text/plain" for unknown extensions. Only the known non-text
|
|
@@ -1445,7 +1487,7 @@ const TOOLS_EXCLUDED_FROM_EVICTION = FILESYSTEM_TOOL_NAMES.filter((name) => name
|
|
|
1445
1487
|
* Base64-encoded content is ~33% larger, so 10MB raw ≈ 13.3MB in context.
|
|
1446
1488
|
* This keeps inline multimodal payloads within all major provider limits.
|
|
1447
1489
|
*/
|
|
1448
|
-
const MAX_BINARY_READ_SIZE_BYTES =
|
|
1490
|
+
const MAX_BINARY_READ_SIZE_BYTES = 10485760;
|
|
1449
1491
|
/**
|
|
1450
1492
|
* Template for truncation message in read_file.
|
|
1451
1493
|
* {file_path} will be filled in at runtime.
|
|
@@ -1534,8 +1576,9 @@ function buildEvictedHumanContent(message, replacementText) {
|
|
|
1534
1576
|
*/
|
|
1535
1577
|
function buildTruncatedHumanMessage(message, filePath) {
|
|
1536
1578
|
const contentSample = createContentPreview(extractTextFromMessage(message));
|
|
1579
|
+
const evictedContent = buildEvictedHumanContent(message, TOO_LARGE_HUMAN_MSG.replace("{file_path}", filePath).replace("{content_sample}", contentSample));
|
|
1537
1580
|
return new langchain.HumanMessage({
|
|
1538
|
-
content:
|
|
1581
|
+
content: evictedContent,
|
|
1539
1582
|
id: message.id,
|
|
1540
1583
|
additional_kwargs: { ...message.additional_kwargs },
|
|
1541
1584
|
response_metadata: { ...message.response_metadata }
|
|
@@ -1809,7 +1852,7 @@ function createReadFileTool(backend, options) {
|
|
|
1809
1852
|
const sizeBytes = Math.ceil(base64Data.length * 3 / 4);
|
|
1810
1853
|
if (sizeBytes > 10485760) return [{
|
|
1811
1854
|
type: "text",
|
|
1812
|
-
text: `Error: file too large to read (${Math.round(sizeBytes /
|
|
1855
|
+
text: `Error: file too large to read (${Math.round(sizeBytes / 1048576)}MB exceeds ${MAX_BINARY_READ_SIZE_BYTES / 1048576}MB limit for binary files)`
|
|
1813
1856
|
}];
|
|
1814
1857
|
if (mimeType.startsWith("image/")) return [{
|
|
1815
1858
|
type: "image",
|
|
@@ -1956,23 +1999,14 @@ function createGrepTool(backend, options) {
|
|
|
1956
1999
|
const permissionError = checkPermission(permissions, "read", input.path ?? "/");
|
|
1957
2000
|
if (permissionError !== void 0) return toolError(runtime, "grep", permissionError);
|
|
1958
2001
|
const resolvedBackend = await resolveBackend(backend, runtime);
|
|
1959
|
-
const { pattern, path = "/", glob = null } = input;
|
|
2002
|
+
const { pattern, path = "/", glob = null, output_mode = "content" } = input;
|
|
1960
2003
|
const maxCount = input.max_count ?? grepMaxCount;
|
|
1961
2004
|
const result = await resolvedBackend.grep(pattern, path, glob, maxCount);
|
|
1962
2005
|
if (result.error) return result.error;
|
|
1963
2006
|
const matches = filterByPermissions(result.matches ?? [], permissions, "read", (m) => m.path);
|
|
1964
2007
|
if (matches.length === 0) return `No matches found for pattern '${pattern}'`;
|
|
1965
|
-
const
|
|
1966
|
-
let
|
|
1967
|
-
for (const match of matches) {
|
|
1968
|
-
if (match.path !== currentFile) {
|
|
1969
|
-
currentFile = match.path;
|
|
1970
|
-
lines.push(`\n${currentFile}:`);
|
|
1971
|
-
}
|
|
1972
|
-
lines.push(` ${match.line}: ${match.text}`);
|
|
1973
|
-
}
|
|
1974
|
-
const truncated = truncateIfTooLong(lines);
|
|
1975
|
-
let content = Array.isArray(truncated) ? truncated.join("\n") : truncated;
|
|
2008
|
+
const truncated = truncateIfTooLong(formatGrepMatches(matches, output_mode));
|
|
2009
|
+
let content = typeof truncated === "string" ? truncated : truncated.join("\n");
|
|
1976
2010
|
if (result.truncated) content += `\n\n${GREP_TRUNCATION_NOTE}`;
|
|
1977
2011
|
return content;
|
|
1978
2012
|
}, {
|
|
@@ -1982,7 +2016,12 @@ function createGrepTool(backend, options) {
|
|
|
1982
2016
|
pattern: zod_v4.z.string().describe("Literal text pattern to search for (not regex)"),
|
|
1983
2017
|
path: zod_v4.z.string().optional().default("/").describe("Base path to search from (default: /)"),
|
|
1984
2018
|
glob: zod_v4.z.string().optional().nullable().default(null).describe("Optional glob pattern to filter files (e.g., '*.py')"),
|
|
1985
|
-
max_count: zod_v4.z.number().int().positive().optional().nullable().default(null).describe("Optional cap on the total number of matches returned across all files. Leave unset to use the configured default. When the cap is hit, results are truncated and a note says so; narrow the pattern or path to see the rest.")
|
|
2019
|
+
max_count: zod_v4.z.number().int().positive().optional().nullable().default(null).describe("Optional cap on the total number of matches returned across all files. Leave unset to use the configured default. When the cap is hit, results are truncated and a note says so; narrow the pattern or path to see the rest."),
|
|
2020
|
+
output_mode: zod_v4.z.enum([
|
|
2021
|
+
"files_with_matches",
|
|
2022
|
+
"content",
|
|
2023
|
+
"count"
|
|
2024
|
+
]).optional().default("content").describe("Output format: 'files_with_matches' lists matching file paths, 'content' shows matching lines (default), 'count' shows match counts per file")
|
|
1986
2025
|
})
|
|
1987
2026
|
});
|
|
1988
2027
|
}
|
|
@@ -2119,9 +2158,10 @@ function createFilesystemMiddleware(options = {}) {
|
|
|
2119
2158
|
const evictPath = `/large_tool_results/${sanitizeToolCallId(fallbackToolCallId || msg.tool_call_id)}.txt`;
|
|
2120
2159
|
const writeResult = await resolvedBackend.write(evictPath, textContent);
|
|
2121
2160
|
const contentSample = createContentPreview(textContent);
|
|
2161
|
+
const replacementText = writeResult.error ? `Tool result too large, but the result could not be saved to the filesystem: ${writeResult.error}` : TOO_LARGE_TOOL_MSG.replace("{tool_call_id}", msg.tool_call_id).replace("{file_path}", evictPath).replace("{content_sample}", contentSample);
|
|
2122
2162
|
return {
|
|
2123
2163
|
message: new langchain.ToolMessage({
|
|
2124
|
-
content:
|
|
2164
|
+
content: replacementText,
|
|
2125
2165
|
tool_call_id: msg.tool_call_id,
|
|
2126
2166
|
name: msg.name,
|
|
2127
2167
|
id: msg.id,
|
|
@@ -2466,6 +2506,7 @@ function createTaskTool(options) {
|
|
|
2466
2506
|
}
|
|
2467
2507
|
return subagentGraphs[subagentType];
|
|
2468
2508
|
}
|
|
2509
|
+
const finalTaskDescription = taskDescription ? taskDescription : getTaskToolDescription(subagentDescriptions);
|
|
2469
2510
|
return (0, langchain.tool)(async (input, config) => {
|
|
2470
2511
|
const { description, subagent_type } = input;
|
|
2471
2512
|
if (!(subagent_type in subagentGraphs)) {
|
|
@@ -2501,7 +2542,7 @@ function createTaskTool(options) {
|
|
|
2501
2542
|
return returnCommandWithStateUpdate(result, config.toolCall.id);
|
|
2502
2543
|
}, {
|
|
2503
2544
|
name: "task",
|
|
2504
|
-
description:
|
|
2545
|
+
description: finalTaskDescription,
|
|
2505
2546
|
schema: zod_v4.z.object({
|
|
2506
2547
|
description: zod_v4.z.string().describe("The task to execute with the selected agent"),
|
|
2507
2548
|
subagent_type: zod_v4.z.string().describe(`Name of the agent to use. Available: ${Object.keys(subagentGraphs).join(", ")}`)
|
|
@@ -2513,18 +2554,19 @@ function createTaskTool(options) {
|
|
|
2513
2554
|
*/
|
|
2514
2555
|
function createSubAgentMiddleware(options) {
|
|
2515
2556
|
const { defaultModel, defaultTools = [], defaultMiddleware = null, generalPurposeMiddleware = null, defaultInterruptOn = null, subagents = [], systemPrompt = null, generalPurposeAgent = true, taskDescription = null } = options;
|
|
2557
|
+
const taskTool = createTaskTool({
|
|
2558
|
+
defaultModel,
|
|
2559
|
+
defaultTools,
|
|
2560
|
+
defaultMiddleware,
|
|
2561
|
+
generalPurposeMiddleware,
|
|
2562
|
+
defaultInterruptOn,
|
|
2563
|
+
subagents,
|
|
2564
|
+
generalPurposeAgent,
|
|
2565
|
+
taskDescription
|
|
2566
|
+
});
|
|
2516
2567
|
return (0, langchain.createMiddleware)({
|
|
2517
2568
|
name: "subAgentMiddleware",
|
|
2518
|
-
tools: [
|
|
2519
|
-
defaultModel,
|
|
2520
|
-
defaultTools,
|
|
2521
|
-
defaultMiddleware,
|
|
2522
|
-
generalPurposeMiddleware,
|
|
2523
|
-
defaultInterruptOn,
|
|
2524
|
-
subagents,
|
|
2525
|
-
generalPurposeAgent,
|
|
2526
|
-
taskDescription
|
|
2527
|
-
})],
|
|
2569
|
+
tools: [taskTool],
|
|
2528
2570
|
wrapModelCall: async (request, handler) => {
|
|
2529
2571
|
if (systemPrompt !== null) return handler({
|
|
2530
2572
|
...request,
|
|
@@ -3029,7 +3071,7 @@ function createMemoryMiddleware(options) {
|
|
|
3029
3071
|
* });
|
|
3030
3072
|
* ```
|
|
3031
3073
|
*/
|
|
3032
|
-
const MAX_SKILL_FILE_SIZE =
|
|
3074
|
+
const MAX_SKILL_FILE_SIZE = 10485760;
|
|
3033
3075
|
const DEFAULT_SKILL_READ_LINE_LIMIT = 1e3;
|
|
3034
3076
|
const MAX_SKILL_NAME_LENGTH = 64;
|
|
3035
3077
|
const MAX_SKILL_DESCRIPTION_LENGTH = 1024;
|
|
@@ -3797,7 +3839,6 @@ function createCompletionCallbackMiddleware(options) {
|
|
|
3797
3839
|
* from `langchain` directly.
|
|
3798
3840
|
*/
|
|
3799
3841
|
const DEFAULT_MESSAGES_TO_KEEP = 20;
|
|
3800
|
-
const DEFAULT_TRIM_TOKEN_LIMIT = 4e3;
|
|
3801
3842
|
const FALLBACK_TRIGGER = {
|
|
3802
3843
|
type: "tokens",
|
|
3803
3844
|
value: 17e4
|
|
@@ -3914,7 +3955,7 @@ function isSummaryMessage(msg) {
|
|
|
3914
3955
|
* @returns AgentMiddleware for summarization and history offloading
|
|
3915
3956
|
*/
|
|
3916
3957
|
function createSummarizationMiddleware(options) {
|
|
3917
|
-
const { model, backend, summaryPrompt = DEFAULT_SUMMARY_PROMPT, trimTokensToSummarize
|
|
3958
|
+
const { model, backend, summaryPrompt = DEFAULT_SUMMARY_PROMPT, trimTokensToSummarize, historyPathPrefix = "/conversation_history" } = options;
|
|
3918
3959
|
let trigger = options.trigger;
|
|
3919
3960
|
let keep = options.keep ?? {
|
|
3920
3961
|
type: "messages",
|
|
@@ -4118,7 +4159,9 @@ function createSummarizationMiddleware(options) {
|
|
|
4118
4159
|
* This gives a more accurate picture of what actually gets sent to the model.
|
|
4119
4160
|
*/
|
|
4120
4161
|
function countTotalTokens(messages, systemMessage, tools) {
|
|
4121
|
-
|
|
4162
|
+
const countedMessages = systemMessage && langchain.SystemMessage.isInstance(systemMessage) ? [systemMessage, ...messages] : [...messages];
|
|
4163
|
+
const toolsArray = tools && Array.isArray(tools) && tools.length > 0 ? tools : null;
|
|
4164
|
+
return (0, langchain.countTokensApproximately)(countedMessages, toolsArray);
|
|
4122
4165
|
}
|
|
4123
4166
|
/**
|
|
4124
4167
|
* Truncate ToolMessage content so that the total payload fits within the
|
|
@@ -4265,7 +4308,8 @@ function createSummarizationMiddleware(options) {
|
|
|
4265
4308
|
*/
|
|
4266
4309
|
async function createSummary(messages, chatModel) {
|
|
4267
4310
|
let messagesToSummarize = messages;
|
|
4268
|
-
|
|
4311
|
+
const tokens = (0, langchain.countTokensApproximately)(messages);
|
|
4312
|
+
if (trimTokensToSummarize !== void 0 && tokens > trimTokensToSummarize) {
|
|
4269
4313
|
let kept = 0;
|
|
4270
4314
|
const trimmedMessages = [];
|
|
4271
4315
|
for (let i = messages.length - 1; i >= 0; i--) {
|
|
@@ -4278,8 +4322,7 @@ function createSummarizationMiddleware(options) {
|
|
|
4278
4322
|
}
|
|
4279
4323
|
const conversation = (0, _langchain_core_messages.getBufferString)(messagesToSummarize);
|
|
4280
4324
|
const prompt = summaryPrompt.replace("{conversation}", conversation);
|
|
4281
|
-
|
|
4282
|
-
return typeof response.content === "string" ? response.content : JSON.stringify(response.content);
|
|
4325
|
+
return (await chatModel.invoke([new langchain.HumanMessage({ content: prompt })])).text;
|
|
4283
4326
|
}
|
|
4284
4327
|
/**
|
|
4285
4328
|
* Build the summary message with file path reference.
|
|
@@ -7873,4 +7916,4 @@ Object.defineProperty(exports, "serializeProfile", {
|
|
|
7873
7916
|
}
|
|
7874
7917
|
});
|
|
7875
7918
|
|
|
7876
|
-
//# sourceMappingURL=langsmith-
|
|
7919
|
+
//# sourceMappingURL=langsmith-Bjhs2iT_.cjs.map
|