deepagents 1.16.0 → 1.16.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{agent-ICdNmGjy.d.cts → agent-BErEClzV.d.cts} +15 -1
- package/dist/{agent-ByjpS5OX.d.ts → agent-DIft4yNY.d.ts} +15 -1
- 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-WS8VrZxE.js → langsmith-B1pbrx3y.js} +87 -24
- package/dist/langsmith-B1pbrx3y.js.map +1 -0
- package/dist/{langsmith-Bf4pcnIO.cjs → langsmith-aH3Gwzii.cjs} +87 -24
- package/dist/langsmith-aH3Gwzii.cjs.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-Wn1LjkCI.js → src-B1Lvbh_S.js} +2 -2
- package/dist/{src-Wn1LjkCI.js.map → src-B1Lvbh_S.js.map} +1 -1
- package/dist/{src-OuZaf_eC.cjs → src-B2jjteSM.cjs} +2 -2
- package/dist/{src-OuZaf_eC.cjs.map → src-B2jjteSM.cjs.map} +1 -1
- package/package.json +1 -1
- package/dist/langsmith-Bf4pcnIO.cjs.map +0 -1
- package/dist/langsmith-WS8VrZxE.js.map +0 -1
|
@@ -332,6 +332,12 @@ interface FileDataV2 {
|
|
|
332
332
|
content: string | Uint8Array;
|
|
333
333
|
/** MIME type of the file (e.g. "image/png", "text/plain") */
|
|
334
334
|
mimeType: string;
|
|
335
|
+
/**
|
|
336
|
+
* How string `content` is encoded. `"base64"` marks binary bytes stored as
|
|
337
|
+
* base64 text so they survive JSON serialization (e.g. a checkpointer).
|
|
338
|
+
* Omitted means plain text.
|
|
339
|
+
*/
|
|
340
|
+
encoding?: "utf-8" | "base64";
|
|
335
341
|
/** ISO format timestamp of creation */
|
|
336
342
|
created_at: string;
|
|
337
343
|
/** ISO format timestamp of last modification */
|
|
@@ -1931,6 +1937,14 @@ declare class StateBackend implements BackendProtocolV2 {
|
|
|
1931
1937
|
uploadFiles(files: Array<[string, Uint8Array]>): FileUploadResponse[] & {
|
|
1932
1938
|
filesUpdate?: Record<string, FileData>;
|
|
1933
1939
|
};
|
|
1940
|
+
/**
|
|
1941
|
+
* Build FileData for an uploaded file.
|
|
1942
|
+
*
|
|
1943
|
+
* In v2, bytes at a binary MIME type stay binary, and bytes at a text MIME
|
|
1944
|
+
* type that are not valid UTF-8 are kept as application/octet-stream rather
|
|
1945
|
+
* than lossily decoded. v1 cannot hold binary, so it always decodes as text.
|
|
1946
|
+
*/
|
|
1947
|
+
private createUploadFileData;
|
|
1934
1948
|
/**
|
|
1935
1949
|
* Download multiple files.
|
|
1936
1950
|
*
|
|
@@ -4797,4 +4811,4 @@ declare function createDeepAgent<TResponse extends SupportedResponseFormat = Sup
|
|
|
4797
4811
|
}, import("zod/v4/core").$strip>, undefined, unknown, readonly (ServerTool | ClientTool)[], readonly []>, AgentMiddleware<undefined, undefined, unknown, readonly (ServerTool | ClientTool)[], readonly []>, ...TMiddleware, ...FlattenSubAgentMiddleware<TSubagents>], TTools, TSubagents, TStreamTransformers>>;
|
|
4798
4812
|
//#endregion
|
|
4799
4813
|
export { scrubUnsupportedMultimodalContent as $, SystemPromptConfig as $t, createSettings as A, SandboxGetOrCreateOptions as An, SUBAGENT_RESPONSE_FORMAT_CONFIG_KEY as At, FlattenSubAgentMiddleware as B, BackendProtocolV2 as Bn, parseHarnessProfileConfig as Bt, listSkills as C, MaybePromise as Cn, StateBackend as Ct, filesValue as D, SandboxDeleteOptions as Dn, DEFAULT_SUBAGENT_PROMPT as Dt, createAgentMemoryMiddleware as E, SandboxBackendProtocol as En, DEFAULT_GENERAL_PURPOSE_DESCRIPTION as Et, CreateDeepAgentParams as F, WriteResult as Fn, getHarnessProfile as Ft, InferSubagentByName as G, HarnessProfile as Gt, InferDeepAgentType as H, BackendProtocolV1 as Hn, EMPTY_HARNESS_PROFILE as Ht, DeepAgent as I, applyGrepMaxCount as In, registerHarnessProfile as It, ResolveDeepAgentTypeConfig as J, ConfigurationError as Jt, InferSubagentReactAgentType as K, HarnessProfileOptions as Kt, DeepAgentTypeConfig as L, isSandboxBackend as Ln, HarnessProfileConfigData as Lt, DeepAgentRunStream as M, SandboxListOptions as Mn, SubAgentMiddlewareOptions as Mt, SubagentRunStream$1 as N, SandboxListResponse as Nn, createSubAgent as Nt, Settings as O, SandboxError as On, ForkedSubAgent as Ot, AnySubAgent as P, StateAndStore as Pn, createSubAgentMiddleware as Pt, multimodalBlockSupported as Q, EXECUTION_SYSTEM_PROMPT as Qt, DefaultDeepAgentTypeConfig as R, isSandboxProtocol as Rn, generalPurposeSubagentConfigSchema as Rt, SkillMetadata as S, LsResult as Sn, createMemoryMiddleware as St, AgentMemoryMiddlewareOptions as T, ReadResult as Tn, CompiledSubAgent as Tt, InferStructuredResponse as U, SandboxBackendProtocolV1 as Un, createHarnessProfile as Ut, InferDeepAgentSubagents as V, SandboxBackendProtocolV2 as Vn, serializeProfile as Vt, InferSubAgentMiddlewareStates as W, GeneralPurposeSubagentConfig as Wt, MULTIMODAL_BLOCK_TYPES as X, ASYNC_TASK_SYSTEM_PROMPT as Xt, SupportedResponseFormat as Y, ConfigurationErrorCode as Yt, createUnsupportedContentMiddleware as Z, BASE_AGENT_PROMPT as Zt, StoreBackend as _, FileOperationError as _n, SkillsMiddlewareOptions as _t, adaptBackendProtocol as a, FilesystemPermission as an, createAsyncSubAgentMiddleware as at, StoreBackendOptions as b, GrepMatch as bn, skillsMetadataValue as bt, LangSmithSandbox as c, BackendFactory as cn, createSummarizationMiddleware as ct, BaseSandbox as d, DeleteResult as dn, MAX_SKILL_DESCRIPTION_LENGTH as dt, TASK_SYSTEM_PROMPT as en, AsyncSubAgent as et, LocalShellBackend as f, EditResult as fn, MAX_SKILL_FILE_SIZE as ft, FilesystemBackend as g, FileInfo as gn, SkillToolResolver as gt, CompositeBackend as h, FileDownloadResponse as hn, SkillMetadataEntry as ht, LangSmithStartSandboxOptions as i, FilesystemOperation as in, TaskEvent as it, findProjectRoot as j, SandboxInfo as jn, SubAgent as jt, SettingsOptions as k, SandboxErrorCode as kn, GENERAL_PURPOSE_SUBAGENT as kt, LangSmithSandboxCreateOptions as l, BackendProtocol as ln, CompletionCallbackOptions as lt, ContextHubBackend as m, FileData as mn, SkillMetadata$1 as mt, LangSmithCaptureSnapshotOptions as n, FsToolName as nn, AsyncTask as nt, adaptSandboxProtocol as o, PermissionMode as on, isAsyncSubAgent as ot, LocalShellBackendOptions as p, ExecuteResponse as pn, MAX_SKILL_NAME_LENGTH as pt, MergedDeepAgentState as q, REQUIRED_MIDDLEWARE_NAMES as qt, LangSmithSnapshot as r, createFilesystemMiddleware as rn, AsyncTaskStatus as rt, normalizeReadPagination as s, AnyBackendProtocol as sn, computeSummarizationDefaults as st, createDeepAgent as t, FilesystemMiddlewareOptions as tn, AsyncSubAgentMiddlewareOptions as tt, LangSmithSandboxOptions as u, BackendRuntime as un, createCompletionCallbackMiddleware as ut, StoreBackendContext as v, FileUploadResponse as vn, createSkillsMiddleware as vt, parseSkillMetadata as w, ReadRawResult as wn, createPatchToolCallsMiddleware as wt, ListSkillsOptions as x, GrepResult as xn, MemoryMiddlewareOptions as xt, StoreBackendNamespaceFactory as y, GlobResult as yn, pinnedSkillsValue as yt, ExtractSubAgentMiddleware as z, resolveBackend as zn, harnessProfileConfigSchema as zt };
|
|
4800
|
-
//# sourceMappingURL=agent-
|
|
4814
|
+
//# sourceMappingURL=agent-BErEClzV.d.cts.map
|
|
@@ -332,6 +332,12 @@ interface FileDataV2 {
|
|
|
332
332
|
content: string | Uint8Array;
|
|
333
333
|
/** MIME type of the file (e.g. "image/png", "text/plain") */
|
|
334
334
|
mimeType: string;
|
|
335
|
+
/**
|
|
336
|
+
* How string `content` is encoded. `"base64"` marks binary bytes stored as
|
|
337
|
+
* base64 text so they survive JSON serialization (e.g. a checkpointer).
|
|
338
|
+
* Omitted means plain text.
|
|
339
|
+
*/
|
|
340
|
+
encoding?: "utf-8" | "base64";
|
|
335
341
|
/** ISO format timestamp of creation */
|
|
336
342
|
created_at: string;
|
|
337
343
|
/** ISO format timestamp of last modification */
|
|
@@ -1931,6 +1937,14 @@ declare class StateBackend implements BackendProtocolV2 {
|
|
|
1931
1937
|
uploadFiles(files: Array<[string, Uint8Array]>): FileUploadResponse[] & {
|
|
1932
1938
|
filesUpdate?: Record<string, FileData>;
|
|
1933
1939
|
};
|
|
1940
|
+
/**
|
|
1941
|
+
* Build FileData for an uploaded file.
|
|
1942
|
+
*
|
|
1943
|
+
* In v2, bytes at a binary MIME type stay binary, and bytes at a text MIME
|
|
1944
|
+
* type that are not valid UTF-8 are kept as application/octet-stream rather
|
|
1945
|
+
* than lossily decoded. v1 cannot hold binary, so it always decodes as text.
|
|
1946
|
+
*/
|
|
1947
|
+
private createUploadFileData;
|
|
1934
1948
|
/**
|
|
1935
1949
|
* Download multiple files.
|
|
1936
1950
|
*
|
|
@@ -4797,4 +4811,4 @@ declare function createDeepAgent<TResponse extends SupportedResponseFormat = Sup
|
|
|
4797
4811
|
}, import("zod/v4/core").$strip>, undefined, unknown, readonly (ServerTool | ClientTool)[], readonly []>, AgentMiddleware<undefined, undefined, unknown, readonly (ServerTool | ClientTool)[], readonly []>, ...TMiddleware, ...FlattenSubAgentMiddleware<TSubagents>], TTools, TSubagents, TStreamTransformers>>;
|
|
4798
4812
|
//#endregion
|
|
4799
4813
|
export { scrubUnsupportedMultimodalContent as $, SystemPromptConfig as $t, createSettings as A, SandboxGetOrCreateOptions as An, SUBAGENT_RESPONSE_FORMAT_CONFIG_KEY as At, FlattenSubAgentMiddleware as B, BackendProtocolV2 as Bn, parseHarnessProfileConfig as Bt, listSkills as C, MaybePromise as Cn, StateBackend as Ct, filesValue as D, SandboxDeleteOptions as Dn, DEFAULT_SUBAGENT_PROMPT as Dt, createAgentMemoryMiddleware as E, SandboxBackendProtocol as En, DEFAULT_GENERAL_PURPOSE_DESCRIPTION as Et, CreateDeepAgentParams as F, WriteResult as Fn, getHarnessProfile as Ft, InferSubagentByName as G, HarnessProfile as Gt, InferDeepAgentType as H, BackendProtocolV1 as Hn, EMPTY_HARNESS_PROFILE as Ht, DeepAgent as I, applyGrepMaxCount as In, registerHarnessProfile as It, ResolveDeepAgentTypeConfig as J, ConfigurationError as Jt, InferSubagentReactAgentType as K, HarnessProfileOptions as Kt, DeepAgentTypeConfig as L, isSandboxBackend as Ln, HarnessProfileConfigData as Lt, DeepAgentRunStream as M, SandboxListOptions as Mn, SubAgentMiddlewareOptions as Mt, SubagentRunStream$1 as N, SandboxListResponse as Nn, createSubAgent as Nt, Settings as O, SandboxError as On, ForkedSubAgent as Ot, AnySubAgent as P, StateAndStore as Pn, createSubAgentMiddleware as Pt, multimodalBlockSupported as Q, EXECUTION_SYSTEM_PROMPT as Qt, DefaultDeepAgentTypeConfig as R, isSandboxProtocol as Rn, generalPurposeSubagentConfigSchema as Rt, SkillMetadata as S, LsResult as Sn, createMemoryMiddleware as St, AgentMemoryMiddlewareOptions as T, ReadResult as Tn, CompiledSubAgent as Tt, InferStructuredResponse as U, SandboxBackendProtocolV1 as Un, createHarnessProfile as Ut, InferDeepAgentSubagents as V, SandboxBackendProtocolV2 as Vn, serializeProfile as Vt, InferSubAgentMiddlewareStates as W, GeneralPurposeSubagentConfig as Wt, MULTIMODAL_BLOCK_TYPES as X, ASYNC_TASK_SYSTEM_PROMPT as Xt, SupportedResponseFormat as Y, ConfigurationErrorCode as Yt, createUnsupportedContentMiddleware as Z, BASE_AGENT_PROMPT as Zt, StoreBackend as _, FileOperationError as _n, SkillsMiddlewareOptions as _t, adaptBackendProtocol as a, FilesystemPermission as an, createAsyncSubAgentMiddleware as at, StoreBackendOptions as b, GrepMatch as bn, skillsMetadataValue as bt, LangSmithSandbox as c, BackendFactory as cn, createSummarizationMiddleware as ct, BaseSandbox as d, DeleteResult as dn, MAX_SKILL_DESCRIPTION_LENGTH as dt, TASK_SYSTEM_PROMPT as en, AsyncSubAgent as et, LocalShellBackend as f, EditResult as fn, MAX_SKILL_FILE_SIZE as ft, FilesystemBackend as g, FileInfo as gn, SkillToolResolver as gt, CompositeBackend as h, FileDownloadResponse as hn, SkillMetadataEntry as ht, LangSmithStartSandboxOptions as i, FilesystemOperation as in, TaskEvent as it, findProjectRoot as j, SandboxInfo as jn, SubAgent as jt, SettingsOptions as k, SandboxErrorCode as kn, GENERAL_PURPOSE_SUBAGENT as kt, LangSmithSandboxCreateOptions as l, BackendProtocol as ln, CompletionCallbackOptions as lt, ContextHubBackend as m, FileData as mn, SkillMetadata$1 as mt, LangSmithCaptureSnapshotOptions as n, FsToolName as nn, AsyncTask as nt, adaptSandboxProtocol as o, PermissionMode as on, isAsyncSubAgent as ot, LocalShellBackendOptions as p, ExecuteResponse as pn, MAX_SKILL_NAME_LENGTH as pt, MergedDeepAgentState as q, REQUIRED_MIDDLEWARE_NAMES as qt, LangSmithSnapshot as r, createFilesystemMiddleware as rn, AsyncTaskStatus as rt, normalizeReadPagination as s, AnyBackendProtocol as sn, computeSummarizationDefaults as st, createDeepAgent as t, FilesystemMiddlewareOptions as tn, AsyncSubAgentMiddlewareOptions as tt, LangSmithSandboxOptions as u, BackendRuntime as un, createCompletionCallbackMiddleware as ut, StoreBackendContext as v, FileUploadResponse as vn, createSkillsMiddleware as vt, parseSkillMetadata as w, ReadRawResult as wn, createPatchToolCallsMiddleware as wt, ListSkillsOptions as x, GrepResult as xn, MemoryMiddlewareOptions as xt, StoreBackendNamespaceFactory as y, GlobResult as yn, pinnedSkillsValue as yt, ExtractSubAgentMiddleware as z, resolveBackend as zn, harnessProfileConfigSchema as zt };
|
|
4800
|
-
//# sourceMappingURL=agent-
|
|
4814
|
+
//# sourceMappingURL=agent-DIft4yNY.d.ts.map
|
package/dist/browser.cjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
-
const require_langsmith = require("./langsmith-
|
|
2
|
+
const require_langsmith = require("./langsmith-aH3Gwzii.cjs");
|
|
3
3
|
exports.ASYNC_TASK_SYSTEM_PROMPT = require_langsmith.ASYNC_TASK_SYSTEM_PROMPT;
|
|
4
4
|
exports.BASE_AGENT_PROMPT = require_langsmith.BASE_AGENT_PROMPT;
|
|
5
5
|
exports.BaseSandbox = require_langsmith.BaseSandbox;
|
package/dist/browser.d.cts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { $t as SystemPromptConfig, An as SandboxGetOrCreateOptions, B as FlattenSubAgentMiddleware, Bn as BackendProtocolV2, Bt as parseHarnessProfileConfig, Cn as MaybePromise, Ct as StateBackend, D as filesValue, Dn as SandboxDeleteOptions, Dt as DEFAULT_SUBAGENT_PROMPT, En as SandboxBackendProtocol, Et as DEFAULT_GENERAL_PURPOSE_DESCRIPTION, F as CreateDeepAgentParams, Fn as WriteResult, Ft as getHarnessProfile, G as InferSubagentByName, Gt as HarnessProfile, H as InferDeepAgentType, Hn as BackendProtocolV1, Ht as EMPTY_HARNESS_PROFILE, I as DeepAgent, It as registerHarnessProfile, J as ResolveDeepAgentTypeConfig, Jt as ConfigurationError, K as InferSubagentReactAgentType, Kt as HarnessProfileOptions, L as DeepAgentTypeConfig, Ln as isSandboxBackend, Lt as HarnessProfileConfigData, M as DeepAgentRunStream, Mn as SandboxListOptions, Mt as SubAgentMiddlewareOptions, N as SubagentRunStream, Nn as SandboxListResponse, On as SandboxError, Ot as ForkedSubAgent, P as AnySubAgent, Pn as StateAndStore, Pt as createSubAgentMiddleware, Qt as EXECUTION_SYSTEM_PROMPT, R as DefaultDeepAgentTypeConfig, Rn as isSandboxProtocol, Rt as generalPurposeSubagentConfigSchema, Sn as LsResult, St as createMemoryMiddleware, Tn as ReadResult, Tt as CompiledSubAgent, U as InferStructuredResponse, Un as SandboxBackendProtocolV1, Ut as createHarnessProfile, V as InferDeepAgentSubagents, Vn as SandboxBackendProtocolV2, Vt as serializeProfile, W as InferSubAgentMiddlewareStates, Wt as GeneralPurposeSubagentConfig, Xt as ASYNC_TASK_SYSTEM_PROMPT, Y as SupportedResponseFormat, Yt as ConfigurationErrorCode, Zt as BASE_AGENT_PROMPT, _ as StoreBackend, _n as FileOperationError, _t as SkillsMiddlewareOptions, a as adaptBackendProtocol, an as FilesystemPermission, at as createAsyncSubAgentMiddleware, b as StoreBackendOptions, bn as GrepMatch, bt as skillsMetadataValue, c as LangSmithSandbox, cn as BackendFactory, ct as createSummarizationMiddleware, d as BaseSandbox, dn as DeleteResult, dt as MAX_SKILL_DESCRIPTION_LENGTH, en as TASK_SYSTEM_PROMPT, et as AsyncSubAgent, fn as EditResult, ft as MAX_SKILL_FILE_SIZE, gn as FileInfo, gt as SkillToolResolver, h as CompositeBackend, hn as FileDownloadResponse, ht as SkillMetadataEntry, in as FilesystemOperation, it as TaskEvent, jn as SandboxInfo, jt as SubAgent, kn as SandboxErrorCode, kt as GENERAL_PURPOSE_SUBAGENT, l as LangSmithSandboxCreateOptions, ln as BackendProtocol, lt as CompletionCallbackOptions, m as ContextHubBackend, mn as FileData, mt as SkillMetadata, nn as FsToolName, nt as AsyncTask, o as adaptSandboxProtocol, on as PermissionMode, ot as isAsyncSubAgent, pn as ExecuteResponse, pt as MAX_SKILL_NAME_LENGTH, q as MergedDeepAgentState, qt as REQUIRED_MIDDLEWARE_NAMES, rn as createFilesystemMiddleware, rt as AsyncTaskStatus, sn as AnyBackendProtocol, st as computeSummarizationDefaults, t as createDeepAgent, tn as FilesystemMiddlewareOptions, tt as AsyncSubAgentMiddlewareOptions, u as LangSmithSandboxOptions, un as BackendRuntime, ut as createCompletionCallbackMiddleware, v as StoreBackendContext, vn as FileUploadResponse, vt as createSkillsMiddleware, wn as ReadRawResult, wt as createPatchToolCallsMiddleware, xn as GrepResult, xt as MemoryMiddlewareOptions, y as StoreBackendNamespaceFactory, yn as GlobResult, yt as pinnedSkillsValue, z as ExtractSubAgentMiddleware, zn as resolveBackend, zt as harnessProfileConfigSchema } from "./agent-
|
|
1
|
+
import { $t as SystemPromptConfig, An as SandboxGetOrCreateOptions, B as FlattenSubAgentMiddleware, Bn as BackendProtocolV2, Bt as parseHarnessProfileConfig, Cn as MaybePromise, Ct as StateBackend, D as filesValue, Dn as SandboxDeleteOptions, Dt as DEFAULT_SUBAGENT_PROMPT, En as SandboxBackendProtocol, Et as DEFAULT_GENERAL_PURPOSE_DESCRIPTION, F as CreateDeepAgentParams, Fn as WriteResult, Ft as getHarnessProfile, G as InferSubagentByName, Gt as HarnessProfile, H as InferDeepAgentType, Hn as BackendProtocolV1, Ht as EMPTY_HARNESS_PROFILE, I as DeepAgent, It as registerHarnessProfile, J as ResolveDeepAgentTypeConfig, Jt as ConfigurationError, K as InferSubagentReactAgentType, Kt as HarnessProfileOptions, L as DeepAgentTypeConfig, Ln as isSandboxBackend, Lt as HarnessProfileConfigData, M as DeepAgentRunStream, Mn as SandboxListOptions, Mt as SubAgentMiddlewareOptions, N as SubagentRunStream, Nn as SandboxListResponse, On as SandboxError, Ot as ForkedSubAgent, P as AnySubAgent, Pn as StateAndStore, Pt as createSubAgentMiddleware, Qt as EXECUTION_SYSTEM_PROMPT, R as DefaultDeepAgentTypeConfig, Rn as isSandboxProtocol, Rt as generalPurposeSubagentConfigSchema, Sn as LsResult, St as createMemoryMiddleware, Tn as ReadResult, Tt as CompiledSubAgent, U as InferStructuredResponse, Un as SandboxBackendProtocolV1, Ut as createHarnessProfile, V as InferDeepAgentSubagents, Vn as SandboxBackendProtocolV2, Vt as serializeProfile, W as InferSubAgentMiddlewareStates, Wt as GeneralPurposeSubagentConfig, Xt as ASYNC_TASK_SYSTEM_PROMPT, Y as SupportedResponseFormat, Yt as ConfigurationErrorCode, Zt as BASE_AGENT_PROMPT, _ as StoreBackend, _n as FileOperationError, _t as SkillsMiddlewareOptions, a as adaptBackendProtocol, an as FilesystemPermission, at as createAsyncSubAgentMiddleware, b as StoreBackendOptions, bn as GrepMatch, bt as skillsMetadataValue, c as LangSmithSandbox, cn as BackendFactory, ct as createSummarizationMiddleware, d as BaseSandbox, dn as DeleteResult, dt as MAX_SKILL_DESCRIPTION_LENGTH, en as TASK_SYSTEM_PROMPT, et as AsyncSubAgent, fn as EditResult, ft as MAX_SKILL_FILE_SIZE, gn as FileInfo, gt as SkillToolResolver, h as CompositeBackend, hn as FileDownloadResponse, ht as SkillMetadataEntry, in as FilesystemOperation, it as TaskEvent, jn as SandboxInfo, jt as SubAgent, kn as SandboxErrorCode, kt as GENERAL_PURPOSE_SUBAGENT, l as LangSmithSandboxCreateOptions, ln as BackendProtocol, lt as CompletionCallbackOptions, m as ContextHubBackend, mn as FileData, mt as SkillMetadata, nn as FsToolName, nt as AsyncTask, o as adaptSandboxProtocol, on as PermissionMode, ot as isAsyncSubAgent, pn as ExecuteResponse, pt as MAX_SKILL_NAME_LENGTH, q as MergedDeepAgentState, qt as REQUIRED_MIDDLEWARE_NAMES, rn as createFilesystemMiddleware, rt as AsyncTaskStatus, sn as AnyBackendProtocol, st as computeSummarizationDefaults, t as createDeepAgent, tn as FilesystemMiddlewareOptions, tt as AsyncSubAgentMiddlewareOptions, u as LangSmithSandboxOptions, un as BackendRuntime, ut as createCompletionCallbackMiddleware, v as StoreBackendContext, vn as FileUploadResponse, vt as createSkillsMiddleware, wn as ReadRawResult, wt as createPatchToolCallsMiddleware, xn as GrepResult, xt as MemoryMiddlewareOptions, y as StoreBackendNamespaceFactory, yn as GlobResult, yt as pinnedSkillsValue, z as ExtractSubAgentMiddleware, zn as resolveBackend, zt as harnessProfileConfigSchema } from "./agent-BErEClzV.cjs";
|
|
2
2
|
import { CaptureSnapshotOptions as LangSmithCaptureSnapshotOptions, Snapshot as LangSmithSnapshot, StartSandboxOptions as LangSmithStartSandboxOptions } from "langsmith/experimental/sandbox";
|
|
3
3
|
export { ASYNC_TASK_SYSTEM_PROMPT, type AnyBackendProtocol, type AnySubAgent, type AsyncSubAgent, type AsyncSubAgentMiddlewareOptions, type AsyncTask, type AsyncTaskStatus, BASE_AGENT_PROMPT, type BackendFactory, type BackendProtocol, type BackendProtocolV1, type BackendProtocolV2, type BackendRuntime, BaseSandbox, type CompiledSubAgent, type CompletionCallbackOptions, CompositeBackend, ConfigurationError, type ConfigurationErrorCode, ContextHubBackend, type CreateDeepAgentParams, DEFAULT_GENERAL_PURPOSE_DESCRIPTION, DEFAULT_SUBAGENT_PROMPT, type DeepAgent, type DeepAgentRunStream, type DeepAgentTypeConfig, type DefaultDeepAgentTypeConfig, type DeleteResult, EMPTY_HARNESS_PROFILE, EXECUTION_SYSTEM_PROMPT, type EditResult, type ExecuteResponse, type ExtractSubAgentMiddleware, type FileData, type FileDownloadResponse, type FileInfo, type FileOperationError, type FileUploadResponse, type FilesystemMiddlewareOptions, type FilesystemOperation, type FilesystemPermission, type FlattenSubAgentMiddleware, type ForkedSubAgent, type FsToolName, GENERAL_PURPOSE_SUBAGENT, type GeneralPurposeSubagentConfig, type GlobResult, type GrepMatch, type GrepResult, type HarnessProfile, type HarnessProfileConfigData, type HarnessProfileOptions, type InferDeepAgentSubagents, type InferDeepAgentType, type InferStructuredResponse, type InferSubAgentMiddlewareStates, type InferSubagentByName, type InferSubagentReactAgentType, type LangSmithCaptureSnapshotOptions, LangSmithSandbox, type LangSmithSandboxCreateOptions, type LangSmithSandboxOptions, type LangSmithSnapshot, type LangSmithStartSandboxOptions, type LsResult, MAX_SKILL_DESCRIPTION_LENGTH, MAX_SKILL_FILE_SIZE, MAX_SKILL_NAME_LENGTH, type MaybePromise, type MemoryMiddlewareOptions, type MergedDeepAgentState, type PermissionMode, REQUIRED_MIDDLEWARE_NAMES, type ReadRawResult, type ReadResult, type ResolveDeepAgentTypeConfig, type SandboxBackendProtocol, type SandboxBackendProtocolV1, type SandboxBackendProtocolV2, type SandboxDeleteOptions, SandboxError, type SandboxErrorCode, type SandboxGetOrCreateOptions, type SandboxInfo, type SandboxListOptions, type SandboxListResponse, type SkillMetadata, type SkillMetadataEntry, type SkillToolResolver, type SkillsMiddlewareOptions, type StateAndStore, StateBackend, StoreBackend, type StoreBackendContext, type StoreBackendNamespaceFactory, type StoreBackendOptions, type SubAgent, type SubAgentMiddlewareOptions, type SubagentRunStream, type SupportedResponseFormat, type SystemPromptConfig, TASK_SYSTEM_PROMPT, type TaskEvent, type WriteResult, adaptBackendProtocol, adaptSandboxProtocol, computeSummarizationDefaults, createAsyncSubAgentMiddleware, createCompletionCallbackMiddleware, createDeepAgent, createFilesystemMiddleware, createHarnessProfile, createMemoryMiddleware, createPatchToolCallsMiddleware, createSkillsMiddleware, createSubAgentMiddleware, createSummarizationMiddleware, filesValue, generalPurposeSubagentConfigSchema, getHarnessProfile, harnessProfileConfigSchema, isAsyncSubAgent, isSandboxBackend, isSandboxProtocol, parseHarnessProfileConfig, pinnedSkillsValue, registerHarnessProfile, resolveBackend, serializeProfile, skillsMetadataValue };
|
package/dist/browser.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { $t as SystemPromptConfig, An as SandboxGetOrCreateOptions, B as FlattenSubAgentMiddleware, Bn as BackendProtocolV2, Bt as parseHarnessProfileConfig, Cn as MaybePromise, Ct as StateBackend, D as filesValue, Dn as SandboxDeleteOptions, Dt as DEFAULT_SUBAGENT_PROMPT, En as SandboxBackendProtocol, Et as DEFAULT_GENERAL_PURPOSE_DESCRIPTION, F as CreateDeepAgentParams, Fn as WriteResult, Ft as getHarnessProfile, G as InferSubagentByName, Gt as HarnessProfile, H as InferDeepAgentType, Hn as BackendProtocolV1, Ht as EMPTY_HARNESS_PROFILE, I as DeepAgent, It as registerHarnessProfile, J as ResolveDeepAgentTypeConfig, Jt as ConfigurationError, K as InferSubagentReactAgentType, Kt as HarnessProfileOptions, L as DeepAgentTypeConfig, Ln as isSandboxBackend, Lt as HarnessProfileConfigData, M as DeepAgentRunStream, Mn as SandboxListOptions, Mt as SubAgentMiddlewareOptions, N as SubagentRunStream, Nn as SandboxListResponse, On as SandboxError, Ot as ForkedSubAgent, P as AnySubAgent, Pn as StateAndStore, Pt as createSubAgentMiddleware, Qt as EXECUTION_SYSTEM_PROMPT, R as DefaultDeepAgentTypeConfig, Rn as isSandboxProtocol, Rt as generalPurposeSubagentConfigSchema, Sn as LsResult, St as createMemoryMiddleware, Tn as ReadResult, Tt as CompiledSubAgent, U as InferStructuredResponse, Un as SandboxBackendProtocolV1, Ut as createHarnessProfile, V as InferDeepAgentSubagents, Vn as SandboxBackendProtocolV2, Vt as serializeProfile, W as InferSubAgentMiddlewareStates, Wt as GeneralPurposeSubagentConfig, Xt as ASYNC_TASK_SYSTEM_PROMPT, Y as SupportedResponseFormat, Yt as ConfigurationErrorCode, Zt as BASE_AGENT_PROMPT, _ as StoreBackend, _n as FileOperationError, _t as SkillsMiddlewareOptions, a as adaptBackendProtocol, an as FilesystemPermission, at as createAsyncSubAgentMiddleware, b as StoreBackendOptions, bn as GrepMatch, bt as skillsMetadataValue, c as LangSmithSandbox, cn as BackendFactory, ct as createSummarizationMiddleware, d as BaseSandbox, dn as DeleteResult, dt as MAX_SKILL_DESCRIPTION_LENGTH, en as TASK_SYSTEM_PROMPT, et as AsyncSubAgent, fn as EditResult, ft as MAX_SKILL_FILE_SIZE, gn as FileInfo, gt as SkillToolResolver, h as CompositeBackend, hn as FileDownloadResponse, ht as SkillMetadataEntry, in as FilesystemOperation, it as TaskEvent, jn as SandboxInfo, jt as SubAgent, kn as SandboxErrorCode, kt as GENERAL_PURPOSE_SUBAGENT, l as LangSmithSandboxCreateOptions, ln as BackendProtocol, lt as CompletionCallbackOptions, m as ContextHubBackend, mn as FileData, mt as SkillMetadata, nn as FsToolName, nt as AsyncTask, o as adaptSandboxProtocol, on as PermissionMode, ot as isAsyncSubAgent, pn as ExecuteResponse, pt as MAX_SKILL_NAME_LENGTH, q as MergedDeepAgentState, qt as REQUIRED_MIDDLEWARE_NAMES, rn as createFilesystemMiddleware, rt as AsyncTaskStatus, sn as AnyBackendProtocol, st as computeSummarizationDefaults, t as createDeepAgent, tn as FilesystemMiddlewareOptions, tt as AsyncSubAgentMiddlewareOptions, u as LangSmithSandboxOptions, un as BackendRuntime, ut as createCompletionCallbackMiddleware, v as StoreBackendContext, vn as FileUploadResponse, vt as createSkillsMiddleware, wn as ReadRawResult, wt as createPatchToolCallsMiddleware, xn as GrepResult, xt as MemoryMiddlewareOptions, y as StoreBackendNamespaceFactory, yn as GlobResult, yt as pinnedSkillsValue, z as ExtractSubAgentMiddleware, zn as resolveBackend, zt as harnessProfileConfigSchema } from "./agent-
|
|
1
|
+
import { $t as SystemPromptConfig, An as SandboxGetOrCreateOptions, B as FlattenSubAgentMiddleware, Bn as BackendProtocolV2, Bt as parseHarnessProfileConfig, Cn as MaybePromise, Ct as StateBackend, D as filesValue, Dn as SandboxDeleteOptions, Dt as DEFAULT_SUBAGENT_PROMPT, En as SandboxBackendProtocol, Et as DEFAULT_GENERAL_PURPOSE_DESCRIPTION, F as CreateDeepAgentParams, Fn as WriteResult, Ft as getHarnessProfile, G as InferSubagentByName, Gt as HarnessProfile, H as InferDeepAgentType, Hn as BackendProtocolV1, Ht as EMPTY_HARNESS_PROFILE, I as DeepAgent, It as registerHarnessProfile, J as ResolveDeepAgentTypeConfig, Jt as ConfigurationError, K as InferSubagentReactAgentType, Kt as HarnessProfileOptions, L as DeepAgentTypeConfig, Ln as isSandboxBackend, Lt as HarnessProfileConfigData, M as DeepAgentRunStream, Mn as SandboxListOptions, Mt as SubAgentMiddlewareOptions, N as SubagentRunStream, Nn as SandboxListResponse, On as SandboxError, Ot as ForkedSubAgent, P as AnySubAgent, Pn as StateAndStore, Pt as createSubAgentMiddleware, Qt as EXECUTION_SYSTEM_PROMPT, R as DefaultDeepAgentTypeConfig, Rn as isSandboxProtocol, Rt as generalPurposeSubagentConfigSchema, Sn as LsResult, St as createMemoryMiddleware, Tn as ReadResult, Tt as CompiledSubAgent, U as InferStructuredResponse, Un as SandboxBackendProtocolV1, Ut as createHarnessProfile, V as InferDeepAgentSubagents, Vn as SandboxBackendProtocolV2, Vt as serializeProfile, W as InferSubAgentMiddlewareStates, Wt as GeneralPurposeSubagentConfig, Xt as ASYNC_TASK_SYSTEM_PROMPT, Y as SupportedResponseFormat, Yt as ConfigurationErrorCode, Zt as BASE_AGENT_PROMPT, _ as StoreBackend, _n as FileOperationError, _t as SkillsMiddlewareOptions, a as adaptBackendProtocol, an as FilesystemPermission, at as createAsyncSubAgentMiddleware, b as StoreBackendOptions, bn as GrepMatch, bt as skillsMetadataValue, c as LangSmithSandbox, cn as BackendFactory, ct as createSummarizationMiddleware, d as BaseSandbox, dn as DeleteResult, dt as MAX_SKILL_DESCRIPTION_LENGTH, en as TASK_SYSTEM_PROMPT, et as AsyncSubAgent, fn as EditResult, ft as MAX_SKILL_FILE_SIZE, gn as FileInfo, gt as SkillToolResolver, h as CompositeBackend, hn as FileDownloadResponse, ht as SkillMetadataEntry, in as FilesystemOperation, it as TaskEvent, jn as SandboxInfo, jt as SubAgent, kn as SandboxErrorCode, kt as GENERAL_PURPOSE_SUBAGENT, l as LangSmithSandboxCreateOptions, ln as BackendProtocol, lt as CompletionCallbackOptions, m as ContextHubBackend, mn as FileData, mt as SkillMetadata, nn as FsToolName, nt as AsyncTask, o as adaptSandboxProtocol, on as PermissionMode, ot as isAsyncSubAgent, pn as ExecuteResponse, pt as MAX_SKILL_NAME_LENGTH, q as MergedDeepAgentState, qt as REQUIRED_MIDDLEWARE_NAMES, rn as createFilesystemMiddleware, rt as AsyncTaskStatus, sn as AnyBackendProtocol, st as computeSummarizationDefaults, t as createDeepAgent, tn as FilesystemMiddlewareOptions, tt as AsyncSubAgentMiddlewareOptions, u as LangSmithSandboxOptions, un as BackendRuntime, ut as createCompletionCallbackMiddleware, v as StoreBackendContext, vn as FileUploadResponse, vt as createSkillsMiddleware, wn as ReadRawResult, wt as createPatchToolCallsMiddleware, xn as GrepResult, xt as MemoryMiddlewareOptions, y as StoreBackendNamespaceFactory, yn as GlobResult, yt as pinnedSkillsValue, z as ExtractSubAgentMiddleware, zn as resolveBackend, zt as harnessProfileConfigSchema } from "./agent-DIft4yNY.js";
|
|
2
2
|
import { CaptureSnapshotOptions as LangSmithCaptureSnapshotOptions, Snapshot as LangSmithSnapshot, StartSandboxOptions as LangSmithStartSandboxOptions } from "langsmith/experimental/sandbox";
|
|
3
3
|
export { ASYNC_TASK_SYSTEM_PROMPT, type AnyBackendProtocol, type AnySubAgent, type AsyncSubAgent, type AsyncSubAgentMiddlewareOptions, type AsyncTask, type AsyncTaskStatus, BASE_AGENT_PROMPT, type BackendFactory, type BackendProtocol, type BackendProtocolV1, type BackendProtocolV2, type BackendRuntime, BaseSandbox, type CompiledSubAgent, type CompletionCallbackOptions, CompositeBackend, ConfigurationError, type ConfigurationErrorCode, ContextHubBackend, type CreateDeepAgentParams, DEFAULT_GENERAL_PURPOSE_DESCRIPTION, DEFAULT_SUBAGENT_PROMPT, type DeepAgent, type DeepAgentRunStream, type DeepAgentTypeConfig, type DefaultDeepAgentTypeConfig, type DeleteResult, EMPTY_HARNESS_PROFILE, EXECUTION_SYSTEM_PROMPT, type EditResult, type ExecuteResponse, type ExtractSubAgentMiddleware, type FileData, type FileDownloadResponse, type FileInfo, type FileOperationError, type FileUploadResponse, type FilesystemMiddlewareOptions, type FilesystemOperation, type FilesystemPermission, type FlattenSubAgentMiddleware, type ForkedSubAgent, type FsToolName, GENERAL_PURPOSE_SUBAGENT, type GeneralPurposeSubagentConfig, type GlobResult, type GrepMatch, type GrepResult, type HarnessProfile, type HarnessProfileConfigData, type HarnessProfileOptions, type InferDeepAgentSubagents, type InferDeepAgentType, type InferStructuredResponse, type InferSubAgentMiddlewareStates, type InferSubagentByName, type InferSubagentReactAgentType, type LangSmithCaptureSnapshotOptions, LangSmithSandbox, type LangSmithSandboxCreateOptions, type LangSmithSandboxOptions, type LangSmithSnapshot, type LangSmithStartSandboxOptions, type LsResult, MAX_SKILL_DESCRIPTION_LENGTH, MAX_SKILL_FILE_SIZE, MAX_SKILL_NAME_LENGTH, type MaybePromise, type MemoryMiddlewareOptions, type MergedDeepAgentState, type PermissionMode, REQUIRED_MIDDLEWARE_NAMES, type ReadRawResult, type ReadResult, type ResolveDeepAgentTypeConfig, type SandboxBackendProtocol, type SandboxBackendProtocolV1, type SandboxBackendProtocolV2, type SandboxDeleteOptions, SandboxError, type SandboxErrorCode, type SandboxGetOrCreateOptions, type SandboxInfo, type SandboxListOptions, type SandboxListResponse, type SkillMetadata, type SkillMetadataEntry, type SkillToolResolver, type SkillsMiddlewareOptions, type StateAndStore, StateBackend, StoreBackend, type StoreBackendContext, type StoreBackendNamespaceFactory, type StoreBackendOptions, type SubAgent, type SubAgentMiddlewareOptions, type SubagentRunStream, type SupportedResponseFormat, type SystemPromptConfig, TASK_SYSTEM_PROMPT, type TaskEvent, type WriteResult, adaptBackendProtocol, adaptSandboxProtocol, computeSummarizationDefaults, createAsyncSubAgentMiddleware, createCompletionCallbackMiddleware, createDeepAgent, createFilesystemMiddleware, createHarnessProfile, createMemoryMiddleware, createPatchToolCallsMiddleware, createSkillsMiddleware, createSubAgentMiddleware, createSummarizationMiddleware, filesValue, generalPurposeSubagentConfigSchema, getHarnessProfile, harnessProfileConfigSchema, isAsyncSubAgent, isSandboxBackend, isSandboxProtocol, parseHarnessProfileConfig, pinnedSkillsValue, registerHarnessProfile, resolveBackend, serializeProfile, skillsMetadataValue };
|
package/dist/browser.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { $ as adaptSandboxProtocol, A as filesValue, B as createFilesystemMiddleware, C as MAX_SKILL_FILE_SIZE, D as skillsMetadataValue, E as pinnedSkillsValue, K as StateBackend, L as createSubAgentMiddleware, M as DEFAULT_GENERAL_PURPOSE_DESCRIPTION, N as DEFAULT_SUBAGENT_PROMPT, O as ConfigurationError, P as GENERAL_PURPOSE_SUBAGENT, Q as adaptBackendProtocol, R as computeSummarizationDefaults, S as MAX_SKILL_DESCRIPTION_LENGTH, T as createSkillsMiddleware, V as CompositeBackend, X as isSandboxProtocol, Y as isSandboxBackend, Z as resolveBackend, _ as createHarnessProfile, a as ASYNC_TASK_SYSTEM_PROMPT, b as isAsyncSubAgent, c as TASK_SYSTEM_PROMPT, d as registerHarnessProfile, f as generalPurposeSubagentConfigSchema, g as EMPTY_HARNESS_PROFILE, h as serializeProfile, i as StoreBackend, j as createPatchToolCallsMiddleware, k as createMemoryMiddleware, l as createDeepAgent, m as parseHarnessProfileConfig, n as BaseSandbox, o as BASE_AGENT_PROMPT, p as harnessProfileConfigSchema, q as SandboxError, r as ContextHubBackend, s as EXECUTION_SYSTEM_PROMPT, t as LangSmithSandbox, u as getHarnessProfile, v as REQUIRED_MIDDLEWARE_NAMES, w as MAX_SKILL_NAME_LENGTH, x as createCompletionCallbackMiddleware, y as createAsyncSubAgentMiddleware, z as createSummarizationMiddleware } from "./langsmith-
|
|
1
|
+
import { $ as adaptSandboxProtocol, A as filesValue, B as createFilesystemMiddleware, C as MAX_SKILL_FILE_SIZE, D as skillsMetadataValue, E as pinnedSkillsValue, K as StateBackend, L as createSubAgentMiddleware, M as DEFAULT_GENERAL_PURPOSE_DESCRIPTION, N as DEFAULT_SUBAGENT_PROMPT, O as ConfigurationError, P as GENERAL_PURPOSE_SUBAGENT, Q as adaptBackendProtocol, R as computeSummarizationDefaults, S as MAX_SKILL_DESCRIPTION_LENGTH, T as createSkillsMiddleware, V as CompositeBackend, X as isSandboxProtocol, Y as isSandboxBackend, Z as resolveBackend, _ as createHarnessProfile, a as ASYNC_TASK_SYSTEM_PROMPT, b as isAsyncSubAgent, c as TASK_SYSTEM_PROMPT, d as registerHarnessProfile, f as generalPurposeSubagentConfigSchema, g as EMPTY_HARNESS_PROFILE, h as serializeProfile, i as StoreBackend, j as createPatchToolCallsMiddleware, k as createMemoryMiddleware, l as createDeepAgent, m as parseHarnessProfileConfig, n as BaseSandbox, o as BASE_AGENT_PROMPT, p as harnessProfileConfigSchema, q as SandboxError, r as ContextHubBackend, s as EXECUTION_SYSTEM_PROMPT, t as LangSmithSandbox, u as getHarnessProfile, v as REQUIRED_MIDDLEWARE_NAMES, w as MAX_SKILL_NAME_LENGTH, x as createCompletionCallbackMiddleware, y as createAsyncSubAgentMiddleware, z as createSummarizationMiddleware } from "./langsmith-B1pbrx3y.js";
|
|
2
2
|
export { ASYNC_TASK_SYSTEM_PROMPT, BASE_AGENT_PROMPT, BaseSandbox, CompositeBackend, ConfigurationError, ContextHubBackend, DEFAULT_GENERAL_PURPOSE_DESCRIPTION, DEFAULT_SUBAGENT_PROMPT, EMPTY_HARNESS_PROFILE, EXECUTION_SYSTEM_PROMPT, GENERAL_PURPOSE_SUBAGENT, LangSmithSandbox, MAX_SKILL_DESCRIPTION_LENGTH, MAX_SKILL_FILE_SIZE, MAX_SKILL_NAME_LENGTH, REQUIRED_MIDDLEWARE_NAMES, SandboxError, StateBackend, StoreBackend, TASK_SYSTEM_PROMPT, adaptBackendProtocol, adaptSandboxProtocol, computeSummarizationDefaults, createAsyncSubAgentMiddleware, createCompletionCallbackMiddleware, createDeepAgent, createFilesystemMiddleware, createHarnessProfile, createMemoryMiddleware, createPatchToolCallsMiddleware, createSkillsMiddleware, createSubAgentMiddleware, createSummarizationMiddleware, filesValue, generalPurposeSubagentConfigSchema, getHarnessProfile, harnessProfileConfigSchema, isAsyncSubAgent, isSandboxBackend, isSandboxProtocol, parseHarnessProfileConfig, pinnedSkillsValue, registerHarnessProfile, resolveBackend, serializeProfile, skillsMetadataValue };
|
package/dist/index.cjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
-
const require_langsmith = require("./langsmith-
|
|
3
|
-
const require_src = require("./src-
|
|
2
|
+
const require_langsmith = require("./langsmith-aH3Gwzii.cjs");
|
|
3
|
+
const require_src = require("./src-B2jjteSM.cjs");
|
|
4
4
|
exports.ASYNC_TASK_SYSTEM_PROMPT = require_langsmith.ASYNC_TASK_SYSTEM_PROMPT;
|
|
5
5
|
exports.BASE_AGENT_PROMPT = require_langsmith.BASE_AGENT_PROMPT;
|
|
6
6
|
exports.BaseSandbox = require_langsmith.BaseSandbox;
|
package/dist/index.d.cts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { $ as scrubUnsupportedMultimodalContent, $t as SystemPromptConfig, A as createSettings, An as SandboxGetOrCreateOptions, At as SUBAGENT_RESPONSE_FORMAT_CONFIG_KEY, B as FlattenSubAgentMiddleware, Bn as BackendProtocolV2, Bt as parseHarnessProfileConfig, C as listSkills, Cn as MaybePromise, Ct as StateBackend, D as filesValue, Dn as SandboxDeleteOptions, Dt as DEFAULT_SUBAGENT_PROMPT, E as createAgentMemoryMiddleware, En as SandboxBackendProtocol, Et as DEFAULT_GENERAL_PURPOSE_DESCRIPTION, F as CreateDeepAgentParams, Fn as WriteResult, Ft as getHarnessProfile, G as InferSubagentByName, Gt as HarnessProfile, H as InferDeepAgentType, Hn as BackendProtocolV1, Ht as EMPTY_HARNESS_PROFILE, I as DeepAgent, In as applyGrepMaxCount, It as registerHarnessProfile, J as ResolveDeepAgentTypeConfig, Jt as ConfigurationError, K as InferSubagentReactAgentType, Kt as HarnessProfileOptions, L as DeepAgentTypeConfig, Ln as isSandboxBackend, Lt as HarnessProfileConfigData, M as DeepAgentRunStream, Mn as SandboxListOptions, Mt as SubAgentMiddlewareOptions, N as SubagentRunStream, Nn as SandboxListResponse, Nt as createSubAgent, O as Settings, On as SandboxError, Ot as ForkedSubAgent, P as AnySubAgent, Pn as StateAndStore, Pt as createSubAgentMiddleware, Q as multimodalBlockSupported, Qt as EXECUTION_SYSTEM_PROMPT, R as DefaultDeepAgentTypeConfig, Rn as isSandboxProtocol, Rt as generalPurposeSubagentConfigSchema, S as SkillMetadata, Sn as LsResult, St as createMemoryMiddleware, T as AgentMemoryMiddlewareOptions, Tn as ReadResult, Tt as CompiledSubAgent, U as InferStructuredResponse, Un as SandboxBackendProtocolV1, Ut as createHarnessProfile, V as InferDeepAgentSubagents, Vn as SandboxBackendProtocolV2, Vt as serializeProfile, W as InferSubAgentMiddlewareStates, Wt as GeneralPurposeSubagentConfig, X as MULTIMODAL_BLOCK_TYPES, Xt as ASYNC_TASK_SYSTEM_PROMPT, Y as SupportedResponseFormat, Yt as ConfigurationErrorCode, Z as createUnsupportedContentMiddleware, Zt as BASE_AGENT_PROMPT, _ as StoreBackend, _n as FileOperationError, _t as SkillsMiddlewareOptions, a as adaptBackendProtocol, an as FilesystemPermission, at as createAsyncSubAgentMiddleware, b as StoreBackendOptions, bn as GrepMatch, bt as skillsMetadataValue, c as LangSmithSandbox, cn as BackendFactory, ct as createSummarizationMiddleware, d as BaseSandbox, dn as DeleteResult, dt as MAX_SKILL_DESCRIPTION_LENGTH, en as TASK_SYSTEM_PROMPT, et as AsyncSubAgent, f as LocalShellBackend, fn as EditResult, ft as MAX_SKILL_FILE_SIZE, g as FilesystemBackend, gn as FileInfo, gt as SkillToolResolver, h as CompositeBackend, hn as FileDownloadResponse, ht as SkillMetadataEntry, i as LangSmithStartSandboxOptions, in as FilesystemOperation, it as TaskEvent, j as findProjectRoot, jn as SandboxInfo, jt as SubAgent, k as SettingsOptions, kn as SandboxErrorCode, kt as GENERAL_PURPOSE_SUBAGENT, l as LangSmithSandboxCreateOptions, ln as BackendProtocol, lt as CompletionCallbackOptions, m as ContextHubBackend, mn as FileData, mt as SkillMetadata$1, n as LangSmithCaptureSnapshotOptions, nn as FsToolName, nt as AsyncTask, o as adaptSandboxProtocol, on as PermissionMode, ot as isAsyncSubAgent, p as LocalShellBackendOptions, pn as ExecuteResponse, pt as MAX_SKILL_NAME_LENGTH, q as MergedDeepAgentState, qt as REQUIRED_MIDDLEWARE_NAMES, r as LangSmithSnapshot, rn as createFilesystemMiddleware, rt as AsyncTaskStatus, s as normalizeReadPagination, sn as AnyBackendProtocol, st as computeSummarizationDefaults, t as createDeepAgent, tn as FilesystemMiddlewareOptions, tt as AsyncSubAgentMiddlewareOptions, u as LangSmithSandboxOptions, un as BackendRuntime, ut as createCompletionCallbackMiddleware, v as StoreBackendContext, vn as FileUploadResponse, vt as createSkillsMiddleware, w as parseSkillMetadata, wn as ReadRawResult, wt as createPatchToolCallsMiddleware, x as ListSkillsOptions, xn as GrepResult, xt as MemoryMiddlewareOptions, y as StoreBackendNamespaceFactory, yn as GlobResult, yt as pinnedSkillsValue, z as ExtractSubAgentMiddleware, zn as resolveBackend, zt as harnessProfileConfigSchema } from "./agent-
|
|
1
|
+
import { $ as scrubUnsupportedMultimodalContent, $t as SystemPromptConfig, A as createSettings, An as SandboxGetOrCreateOptions, At as SUBAGENT_RESPONSE_FORMAT_CONFIG_KEY, B as FlattenSubAgentMiddleware, Bn as BackendProtocolV2, Bt as parseHarnessProfileConfig, C as listSkills, Cn as MaybePromise, Ct as StateBackend, D as filesValue, Dn as SandboxDeleteOptions, Dt as DEFAULT_SUBAGENT_PROMPT, E as createAgentMemoryMiddleware, En as SandboxBackendProtocol, Et as DEFAULT_GENERAL_PURPOSE_DESCRIPTION, F as CreateDeepAgentParams, Fn as WriteResult, Ft as getHarnessProfile, G as InferSubagentByName, Gt as HarnessProfile, H as InferDeepAgentType, Hn as BackendProtocolV1, Ht as EMPTY_HARNESS_PROFILE, I as DeepAgent, In as applyGrepMaxCount, It as registerHarnessProfile, J as ResolveDeepAgentTypeConfig, Jt as ConfigurationError, K as InferSubagentReactAgentType, Kt as HarnessProfileOptions, L as DeepAgentTypeConfig, Ln as isSandboxBackend, Lt as HarnessProfileConfigData, M as DeepAgentRunStream, Mn as SandboxListOptions, Mt as SubAgentMiddlewareOptions, N as SubagentRunStream, Nn as SandboxListResponse, Nt as createSubAgent, O as Settings, On as SandboxError, Ot as ForkedSubAgent, P as AnySubAgent, Pn as StateAndStore, Pt as createSubAgentMiddleware, Q as multimodalBlockSupported, Qt as EXECUTION_SYSTEM_PROMPT, R as DefaultDeepAgentTypeConfig, Rn as isSandboxProtocol, Rt as generalPurposeSubagentConfigSchema, S as SkillMetadata, Sn as LsResult, St as createMemoryMiddleware, T as AgentMemoryMiddlewareOptions, Tn as ReadResult, Tt as CompiledSubAgent, U as InferStructuredResponse, Un as SandboxBackendProtocolV1, Ut as createHarnessProfile, V as InferDeepAgentSubagents, Vn as SandboxBackendProtocolV2, Vt as serializeProfile, W as InferSubAgentMiddlewareStates, Wt as GeneralPurposeSubagentConfig, X as MULTIMODAL_BLOCK_TYPES, Xt as ASYNC_TASK_SYSTEM_PROMPT, Y as SupportedResponseFormat, Yt as ConfigurationErrorCode, Z as createUnsupportedContentMiddleware, Zt as BASE_AGENT_PROMPT, _ as StoreBackend, _n as FileOperationError, _t as SkillsMiddlewareOptions, a as adaptBackendProtocol, an as FilesystemPermission, at as createAsyncSubAgentMiddleware, b as StoreBackendOptions, bn as GrepMatch, bt as skillsMetadataValue, c as LangSmithSandbox, cn as BackendFactory, ct as createSummarizationMiddleware, d as BaseSandbox, dn as DeleteResult, dt as MAX_SKILL_DESCRIPTION_LENGTH, en as TASK_SYSTEM_PROMPT, et as AsyncSubAgent, f as LocalShellBackend, fn as EditResult, ft as MAX_SKILL_FILE_SIZE, g as FilesystemBackend, gn as FileInfo, gt as SkillToolResolver, h as CompositeBackend, hn as FileDownloadResponse, ht as SkillMetadataEntry, i as LangSmithStartSandboxOptions, in as FilesystemOperation, it as TaskEvent, j as findProjectRoot, jn as SandboxInfo, jt as SubAgent, k as SettingsOptions, kn as SandboxErrorCode, kt as GENERAL_PURPOSE_SUBAGENT, l as LangSmithSandboxCreateOptions, ln as BackendProtocol, lt as CompletionCallbackOptions, m as ContextHubBackend, mn as FileData, mt as SkillMetadata$1, n as LangSmithCaptureSnapshotOptions, nn as FsToolName, nt as AsyncTask, o as adaptSandboxProtocol, on as PermissionMode, ot as isAsyncSubAgent, p as LocalShellBackendOptions, pn as ExecuteResponse, pt as MAX_SKILL_NAME_LENGTH, q as MergedDeepAgentState, qt as REQUIRED_MIDDLEWARE_NAMES, r as LangSmithSnapshot, rn as createFilesystemMiddleware, rt as AsyncTaskStatus, s as normalizeReadPagination, sn as AnyBackendProtocol, st as computeSummarizationDefaults, t as createDeepAgent, tn as FilesystemMiddlewareOptions, tt as AsyncSubAgentMiddlewareOptions, u as LangSmithSandboxOptions, un as BackendRuntime, ut as createCompletionCallbackMiddleware, v as StoreBackendContext, vn as FileUploadResponse, vt as createSkillsMiddleware, w as parseSkillMetadata, wn as ReadRawResult, wt as createPatchToolCallsMiddleware, x as ListSkillsOptions, xn as GrepResult, xt as MemoryMiddlewareOptions, y as StoreBackendNamespaceFactory, yn as GlobResult, yt as pinnedSkillsValue, z as ExtractSubAgentMiddleware, zn as resolveBackend, zt as harnessProfileConfigSchema } from "./agent-BErEClzV.cjs";
|
|
2
2
|
export { ASYNC_TASK_SYSTEM_PROMPT, type AgentMemoryMiddlewareOptions, type AnyBackendProtocol, type AnySubAgent, type AsyncSubAgent, type AsyncSubAgentMiddlewareOptions, type AsyncTask, type AsyncTaskStatus, BASE_AGENT_PROMPT, type BackendFactory, type BackendProtocol, type BackendProtocolV1, type BackendProtocolV2, type BackendRuntime, BaseSandbox, type CompiledSubAgent, type CompletionCallbackOptions, CompositeBackend, ConfigurationError, type ConfigurationErrorCode, ContextHubBackend, type CreateDeepAgentParams, DEFAULT_GENERAL_PURPOSE_DESCRIPTION, DEFAULT_SUBAGENT_PROMPT, type DeepAgent, type DeepAgentRunStream, type DeepAgentTypeConfig, type DefaultDeepAgentTypeConfig, type DeleteResult, EMPTY_HARNESS_PROFILE, EXECUTION_SYSTEM_PROMPT, type EditResult, type ExecuteResponse, type ExtractSubAgentMiddleware, type FileData, type FileDownloadResponse, type FileInfo, type FileOperationError, type FileUploadResponse, FilesystemBackend, type FilesystemMiddlewareOptions, type FilesystemOperation, type FilesystemPermission, type FlattenSubAgentMiddleware, type ForkedSubAgent, type FsToolName, GENERAL_PURPOSE_SUBAGENT, type GeneralPurposeSubagentConfig, type GlobResult, type GrepMatch, type GrepResult, type HarnessProfile, type HarnessProfileConfigData, type HarnessProfileOptions, type InferDeepAgentSubagents, type InferDeepAgentType, type InferStructuredResponse, type InferSubAgentMiddlewareStates, type InferSubagentByName, type InferSubagentReactAgentType, type LangSmithCaptureSnapshotOptions, LangSmithSandbox, type LangSmithSandboxCreateOptions, type LangSmithSandboxOptions, type LangSmithSnapshot, type LangSmithStartSandboxOptions, type ListSkillsOptions, type SkillMetadata as LoaderSkillMetadata, LocalShellBackend, type LocalShellBackendOptions, type LsResult, MAX_SKILL_DESCRIPTION_LENGTH, MAX_SKILL_FILE_SIZE, MAX_SKILL_NAME_LENGTH, MULTIMODAL_BLOCK_TYPES, type MaybePromise, type MemoryMiddlewareOptions, type MergedDeepAgentState, type PermissionMode, REQUIRED_MIDDLEWARE_NAMES, type ReadRawResult, type ReadResult, type ResolveDeepAgentTypeConfig, SUBAGENT_RESPONSE_FORMAT_CONFIG_KEY, type SandboxBackendProtocol, type SandboxBackendProtocolV1, type SandboxBackendProtocolV2, type SandboxDeleteOptions, SandboxError, type SandboxErrorCode, type SandboxGetOrCreateOptions, type SandboxInfo, type SandboxListOptions, type SandboxListResponse, type Settings, type SettingsOptions, type SkillMetadata$1 as SkillMetadata, type SkillMetadataEntry, type SkillToolResolver, type SkillsMiddlewareOptions, type StateAndStore, StateBackend, StoreBackend, type StoreBackendContext, type StoreBackendNamespaceFactory, type StoreBackendOptions, type SubAgent, type SubAgentMiddlewareOptions, type SubagentRunStream, type SupportedResponseFormat, type SystemPromptConfig, TASK_SYSTEM_PROMPT, type TaskEvent, type WriteResult, adaptBackendProtocol, adaptSandboxProtocol, applyGrepMaxCount, computeSummarizationDefaults, createAgentMemoryMiddleware, createAsyncSubAgentMiddleware, createCompletionCallbackMiddleware, createDeepAgent, createFilesystemMiddleware, createHarnessProfile, createMemoryMiddleware, createPatchToolCallsMiddleware, createSettings, createSkillsMiddleware, createSubAgent, createSubAgentMiddleware, createSummarizationMiddleware, createUnsupportedContentMiddleware, filesValue, findProjectRoot, generalPurposeSubagentConfigSchema, getHarnessProfile, harnessProfileConfigSchema, isAsyncSubAgent, isSandboxBackend, isSandboxProtocol, listSkills, multimodalBlockSupported, normalizeReadPagination, parseHarnessProfileConfig, parseSkillMetadata, pinnedSkillsValue, registerHarnessProfile, resolveBackend, scrubUnsupportedMultimodalContent, serializeProfile, skillsMetadataValue };
|
package/dist/index.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { $ as scrubUnsupportedMultimodalContent, $t as SystemPromptConfig, A as createSettings, An as SandboxGetOrCreateOptions, At as SUBAGENT_RESPONSE_FORMAT_CONFIG_KEY, B as FlattenSubAgentMiddleware, Bn as BackendProtocolV2, Bt as parseHarnessProfileConfig, C as listSkills, Cn as MaybePromise, Ct as StateBackend, D as filesValue, Dn as SandboxDeleteOptions, Dt as DEFAULT_SUBAGENT_PROMPT, E as createAgentMemoryMiddleware, En as SandboxBackendProtocol, Et as DEFAULT_GENERAL_PURPOSE_DESCRIPTION, F as CreateDeepAgentParams, Fn as WriteResult, Ft as getHarnessProfile, G as InferSubagentByName, Gt as HarnessProfile, H as InferDeepAgentType, Hn as BackendProtocolV1, Ht as EMPTY_HARNESS_PROFILE, I as DeepAgent, In as applyGrepMaxCount, It as registerHarnessProfile, J as ResolveDeepAgentTypeConfig, Jt as ConfigurationError, K as InferSubagentReactAgentType, Kt as HarnessProfileOptions, L as DeepAgentTypeConfig, Ln as isSandboxBackend, Lt as HarnessProfileConfigData, M as DeepAgentRunStream, Mn as SandboxListOptions, Mt as SubAgentMiddlewareOptions, N as SubagentRunStream, Nn as SandboxListResponse, Nt as createSubAgent, O as Settings, On as SandboxError, Ot as ForkedSubAgent, P as AnySubAgent, Pn as StateAndStore, Pt as createSubAgentMiddleware, Q as multimodalBlockSupported, Qt as EXECUTION_SYSTEM_PROMPT, R as DefaultDeepAgentTypeConfig, Rn as isSandboxProtocol, Rt as generalPurposeSubagentConfigSchema, S as SkillMetadata, Sn as LsResult, St as createMemoryMiddleware, T as AgentMemoryMiddlewareOptions, Tn as ReadResult, Tt as CompiledSubAgent, U as InferStructuredResponse, Un as SandboxBackendProtocolV1, Ut as createHarnessProfile, V as InferDeepAgentSubagents, Vn as SandboxBackendProtocolV2, Vt as serializeProfile, W as InferSubAgentMiddlewareStates, Wt as GeneralPurposeSubagentConfig, X as MULTIMODAL_BLOCK_TYPES, Xt as ASYNC_TASK_SYSTEM_PROMPT, Y as SupportedResponseFormat, Yt as ConfigurationErrorCode, Z as createUnsupportedContentMiddleware, Zt as BASE_AGENT_PROMPT, _ as StoreBackend, _n as FileOperationError, _t as SkillsMiddlewareOptions, a as adaptBackendProtocol, an as FilesystemPermission, at as createAsyncSubAgentMiddleware, b as StoreBackendOptions, bn as GrepMatch, bt as skillsMetadataValue, c as LangSmithSandbox, cn as BackendFactory, ct as createSummarizationMiddleware, d as BaseSandbox, dn as DeleteResult, dt as MAX_SKILL_DESCRIPTION_LENGTH, en as TASK_SYSTEM_PROMPT, et as AsyncSubAgent, f as LocalShellBackend, fn as EditResult, ft as MAX_SKILL_FILE_SIZE, g as FilesystemBackend, gn as FileInfo, gt as SkillToolResolver, h as CompositeBackend, hn as FileDownloadResponse, ht as SkillMetadataEntry, i as LangSmithStartSandboxOptions, in as FilesystemOperation, it as TaskEvent, j as findProjectRoot, jn as SandboxInfo, jt as SubAgent, k as SettingsOptions, kn as SandboxErrorCode, kt as GENERAL_PURPOSE_SUBAGENT, l as LangSmithSandboxCreateOptions, ln as BackendProtocol, lt as CompletionCallbackOptions, m as ContextHubBackend, mn as FileData, mt as SkillMetadata$1, n as LangSmithCaptureSnapshotOptions, nn as FsToolName, nt as AsyncTask, o as adaptSandboxProtocol, on as PermissionMode, ot as isAsyncSubAgent, p as LocalShellBackendOptions, pn as ExecuteResponse, pt as MAX_SKILL_NAME_LENGTH, q as MergedDeepAgentState, qt as REQUIRED_MIDDLEWARE_NAMES, r as LangSmithSnapshot, rn as createFilesystemMiddleware, rt as AsyncTaskStatus, s as normalizeReadPagination, sn as AnyBackendProtocol, st as computeSummarizationDefaults, t as createDeepAgent, tn as FilesystemMiddlewareOptions, tt as AsyncSubAgentMiddlewareOptions, u as LangSmithSandboxOptions, un as BackendRuntime, ut as createCompletionCallbackMiddleware, v as StoreBackendContext, vn as FileUploadResponse, vt as createSkillsMiddleware, w as parseSkillMetadata, wn as ReadRawResult, wt as createPatchToolCallsMiddleware, x as ListSkillsOptions, xn as GrepResult, xt as MemoryMiddlewareOptions, y as StoreBackendNamespaceFactory, yn as GlobResult, yt as pinnedSkillsValue, z as ExtractSubAgentMiddleware, zn as resolveBackend, zt as harnessProfileConfigSchema } from "./agent-
|
|
1
|
+
import { $ as scrubUnsupportedMultimodalContent, $t as SystemPromptConfig, A as createSettings, An as SandboxGetOrCreateOptions, At as SUBAGENT_RESPONSE_FORMAT_CONFIG_KEY, B as FlattenSubAgentMiddleware, Bn as BackendProtocolV2, Bt as parseHarnessProfileConfig, C as listSkills, Cn as MaybePromise, Ct as StateBackend, D as filesValue, Dn as SandboxDeleteOptions, Dt as DEFAULT_SUBAGENT_PROMPT, E as createAgentMemoryMiddleware, En as SandboxBackendProtocol, Et as DEFAULT_GENERAL_PURPOSE_DESCRIPTION, F as CreateDeepAgentParams, Fn as WriteResult, Ft as getHarnessProfile, G as InferSubagentByName, Gt as HarnessProfile, H as InferDeepAgentType, Hn as BackendProtocolV1, Ht as EMPTY_HARNESS_PROFILE, I as DeepAgent, In as applyGrepMaxCount, It as registerHarnessProfile, J as ResolveDeepAgentTypeConfig, Jt as ConfigurationError, K as InferSubagentReactAgentType, Kt as HarnessProfileOptions, L as DeepAgentTypeConfig, Ln as isSandboxBackend, Lt as HarnessProfileConfigData, M as DeepAgentRunStream, Mn as SandboxListOptions, Mt as SubAgentMiddlewareOptions, N as SubagentRunStream, Nn as SandboxListResponse, Nt as createSubAgent, O as Settings, On as SandboxError, Ot as ForkedSubAgent, P as AnySubAgent, Pn as StateAndStore, Pt as createSubAgentMiddleware, Q as multimodalBlockSupported, Qt as EXECUTION_SYSTEM_PROMPT, R as DefaultDeepAgentTypeConfig, Rn as isSandboxProtocol, Rt as generalPurposeSubagentConfigSchema, S as SkillMetadata, Sn as LsResult, St as createMemoryMiddleware, T as AgentMemoryMiddlewareOptions, Tn as ReadResult, Tt as CompiledSubAgent, U as InferStructuredResponse, Un as SandboxBackendProtocolV1, Ut as createHarnessProfile, V as InferDeepAgentSubagents, Vn as SandboxBackendProtocolV2, Vt as serializeProfile, W as InferSubAgentMiddlewareStates, Wt as GeneralPurposeSubagentConfig, X as MULTIMODAL_BLOCK_TYPES, Xt as ASYNC_TASK_SYSTEM_PROMPT, Y as SupportedResponseFormat, Yt as ConfigurationErrorCode, Z as createUnsupportedContentMiddleware, Zt as BASE_AGENT_PROMPT, _ as StoreBackend, _n as FileOperationError, _t as SkillsMiddlewareOptions, a as adaptBackendProtocol, an as FilesystemPermission, at as createAsyncSubAgentMiddleware, b as StoreBackendOptions, bn as GrepMatch, bt as skillsMetadataValue, c as LangSmithSandbox, cn as BackendFactory, ct as createSummarizationMiddleware, d as BaseSandbox, dn as DeleteResult, dt as MAX_SKILL_DESCRIPTION_LENGTH, en as TASK_SYSTEM_PROMPT, et as AsyncSubAgent, f as LocalShellBackend, fn as EditResult, ft as MAX_SKILL_FILE_SIZE, g as FilesystemBackend, gn as FileInfo, gt as SkillToolResolver, h as CompositeBackend, hn as FileDownloadResponse, ht as SkillMetadataEntry, i as LangSmithStartSandboxOptions, in as FilesystemOperation, it as TaskEvent, j as findProjectRoot, jn as SandboxInfo, jt as SubAgent, k as SettingsOptions, kn as SandboxErrorCode, kt as GENERAL_PURPOSE_SUBAGENT, l as LangSmithSandboxCreateOptions, ln as BackendProtocol, lt as CompletionCallbackOptions, m as ContextHubBackend, mn as FileData, mt as SkillMetadata$1, n as LangSmithCaptureSnapshotOptions, nn as FsToolName, nt as AsyncTask, o as adaptSandboxProtocol, on as PermissionMode, ot as isAsyncSubAgent, p as LocalShellBackendOptions, pn as ExecuteResponse, pt as MAX_SKILL_NAME_LENGTH, q as MergedDeepAgentState, qt as REQUIRED_MIDDLEWARE_NAMES, r as LangSmithSnapshot, rn as createFilesystemMiddleware, rt as AsyncTaskStatus, s as normalizeReadPagination, sn as AnyBackendProtocol, st as computeSummarizationDefaults, t as createDeepAgent, tn as FilesystemMiddlewareOptions, tt as AsyncSubAgentMiddlewareOptions, u as LangSmithSandboxOptions, un as BackendRuntime, ut as createCompletionCallbackMiddleware, v as StoreBackendContext, vn as FileUploadResponse, vt as createSkillsMiddleware, w as parseSkillMetadata, wn as ReadRawResult, wt as createPatchToolCallsMiddleware, x as ListSkillsOptions, xn as GrepResult, xt as MemoryMiddlewareOptions, y as StoreBackendNamespaceFactory, yn as GlobResult, yt as pinnedSkillsValue, z as ExtractSubAgentMiddleware, zn as resolveBackend, zt as harnessProfileConfigSchema } from "./agent-DIft4yNY.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 ForkedSubAgent, type FsToolName, GENERAL_PURPOSE_SUBAGENT, type GeneralPurposeSubagentConfig, type GlobResult, type GrepMatch, type GrepResult, type HarnessProfile, type HarnessProfileConfigData, type HarnessProfileOptions, type InferDeepAgentSubagents, type InferDeepAgentType, type InferStructuredResponse, type InferSubAgentMiddlewareStates, type InferSubagentByName, type InferSubagentReactAgentType, type LangSmithCaptureSnapshotOptions, LangSmithSandbox, type LangSmithSandboxCreateOptions, type LangSmithSandboxOptions, type LangSmithSnapshot, type LangSmithStartSandboxOptions, type ListSkillsOptions, type SkillMetadata as LoaderSkillMetadata, LocalShellBackend, type LocalShellBackendOptions, type LsResult, MAX_SKILL_DESCRIPTION_LENGTH, MAX_SKILL_FILE_SIZE, MAX_SKILL_NAME_LENGTH, MULTIMODAL_BLOCK_TYPES, type MaybePromise, type MemoryMiddlewareOptions, type MergedDeepAgentState, type PermissionMode, REQUIRED_MIDDLEWARE_NAMES, type ReadRawResult, type ReadResult, type ResolveDeepAgentTypeConfig, SUBAGENT_RESPONSE_FORMAT_CONFIG_KEY, type SandboxBackendProtocol, type SandboxBackendProtocolV1, type SandboxBackendProtocolV2, type SandboxDeleteOptions, SandboxError, type SandboxErrorCode, type SandboxGetOrCreateOptions, type SandboxInfo, type SandboxListOptions, type SandboxListResponse, type Settings, type SettingsOptions, type SkillMetadata$1 as SkillMetadata, type SkillMetadataEntry, type SkillToolResolver, type SkillsMiddlewareOptions, type StateAndStore, StateBackend, StoreBackend, type StoreBackendContext, type StoreBackendNamespaceFactory, type StoreBackendOptions, type SubAgent, type SubAgentMiddlewareOptions, type SubagentRunStream, type SupportedResponseFormat, type SystemPromptConfig, TASK_SYSTEM_PROMPT, type TaskEvent, type WriteResult, adaptBackendProtocol, adaptSandboxProtocol, applyGrepMaxCount, computeSummarizationDefaults, createAgentMemoryMiddleware, createAsyncSubAgentMiddleware, createCompletionCallbackMiddleware, createDeepAgent, createFilesystemMiddleware, createHarnessProfile, createMemoryMiddleware, createPatchToolCallsMiddleware, createSettings, createSkillsMiddleware, createSubAgent, createSubAgentMiddleware, createSummarizationMiddleware, createUnsupportedContentMiddleware, filesValue, findProjectRoot, generalPurposeSubagentConfigSchema, getHarnessProfile, harnessProfileConfigSchema, isAsyncSubAgent, isSandboxBackend, isSandboxProtocol, listSkills, multimodalBlockSupported, normalizeReadPagination, parseHarnessProfileConfig, parseSkillMetadata, pinnedSkillsValue, registerHarnessProfile, resolveBackend, scrubUnsupportedMultimodalContent, serializeProfile, skillsMetadataValue };
|
package/dist/index.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { $ as adaptSandboxProtocol, A as filesValue, B as createFilesystemMiddleware, C as MAX_SKILL_FILE_SIZE, D as skillsMetadataValue, E as pinnedSkillsValue, F as SUBAGENT_RESPONSE_FORMAT_CONFIG_KEY, G as scrubUnsupportedMultimodalContent, H as MULTIMODAL_BLOCK_TYPES, I as createSubAgent, J as applyGrepMaxCount, K as StateBackend, L as createSubAgentMiddleware, M as DEFAULT_GENERAL_PURPOSE_DESCRIPTION, N as DEFAULT_SUBAGENT_PROMPT, O as ConfigurationError, P as GENERAL_PURPOSE_SUBAGENT, Q as adaptBackendProtocol, R as computeSummarizationDefaults, S as MAX_SKILL_DESCRIPTION_LENGTH, T as createSkillsMiddleware, U as createUnsupportedContentMiddleware, V as CompositeBackend, W as multimodalBlockSupported, X as isSandboxProtocol, Y as isSandboxBackend, Z as resolveBackend, _ as createHarnessProfile, a as ASYNC_TASK_SYSTEM_PROMPT, b as isAsyncSubAgent, c as TASK_SYSTEM_PROMPT, d as registerHarnessProfile, f as generalPurposeSubagentConfigSchema, g as EMPTY_HARNESS_PROFILE, h as serializeProfile, i as StoreBackend, j as createPatchToolCallsMiddleware, k as createMemoryMiddleware, l as createDeepAgent, m as parseHarnessProfileConfig, n as BaseSandbox, o as BASE_AGENT_PROMPT, p as harnessProfileConfigSchema, q as SandboxError, r as ContextHubBackend, rt as normalizeReadPagination, s as EXECUTION_SYSTEM_PROMPT, t as LangSmithSandbox, u as getHarnessProfile, v as REQUIRED_MIDDLEWARE_NAMES, w as MAX_SKILL_NAME_LENGTH, x as createCompletionCallbackMiddleware, y as createAsyncSubAgentMiddleware, z as createSummarizationMiddleware } from "./langsmith-
|
|
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 { $ as adaptSandboxProtocol, A as filesValue, B as createFilesystemMiddleware, C as MAX_SKILL_FILE_SIZE, D as skillsMetadataValue, E as pinnedSkillsValue, F as SUBAGENT_RESPONSE_FORMAT_CONFIG_KEY, G as scrubUnsupportedMultimodalContent, H as MULTIMODAL_BLOCK_TYPES, I as createSubAgent, J as applyGrepMaxCount, K as StateBackend, L as createSubAgentMiddleware, M as DEFAULT_GENERAL_PURPOSE_DESCRIPTION, N as DEFAULT_SUBAGENT_PROMPT, O as ConfigurationError, P as GENERAL_PURPOSE_SUBAGENT, Q as adaptBackendProtocol, R as computeSummarizationDefaults, S as MAX_SKILL_DESCRIPTION_LENGTH, T as createSkillsMiddleware, U as createUnsupportedContentMiddleware, V as CompositeBackend, W as multimodalBlockSupported, X as isSandboxProtocol, Y as isSandboxBackend, Z as resolveBackend, _ as createHarnessProfile, a as ASYNC_TASK_SYSTEM_PROMPT, b as isAsyncSubAgent, c as TASK_SYSTEM_PROMPT, d as registerHarnessProfile, f as generalPurposeSubagentConfigSchema, g as EMPTY_HARNESS_PROFILE, h as serializeProfile, i as StoreBackend, j as createPatchToolCallsMiddleware, k as createMemoryMiddleware, l as createDeepAgent, m as parseHarnessProfileConfig, n as BaseSandbox, o as BASE_AGENT_PROMPT, p as harnessProfileConfigSchema, q as SandboxError, r as ContextHubBackend, rt as normalizeReadPagination, s as EXECUTION_SYSTEM_PROMPT, t as LangSmithSandbox, u as getHarnessProfile, v as REQUIRED_MIDDLEWARE_NAMES, w as MAX_SKILL_NAME_LENGTH, x as createCompletionCallbackMiddleware, y as createAsyncSubAgentMiddleware, z as createSummarizationMiddleware } from "./langsmith-B1pbrx3y.js";
|
|
2
|
+
import { a as createAgentMemoryMiddleware, i as parseSkillMetadata, n as FilesystemBackend, o as createSettings, r as listSkills, s as findProjectRoot, t as LocalShellBackend } from "./src-B1Lvbh_S.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, MULTIMODAL_BLOCK_TYPES, 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, createUnsupportedContentMiddleware, filesValue, findProjectRoot, generalPurposeSubagentConfigSchema, getHarnessProfile, harnessProfileConfigSchema, isAsyncSubAgent, isSandboxBackend, isSandboxProtocol, listSkills, multimodalBlockSupported, normalizeReadPagination, parseHarnessProfileConfig, parseSkillMetadata, pinnedSkillsValue, registerHarnessProfile, resolveBackend, scrubUnsupportedMultimodalContent, serializeProfile, skillsMetadataValue };
|
|
@@ -808,6 +808,45 @@ function trimTrailingSlashes$2(path) {
|
|
|
808
808
|
}
|
|
809
809
|
const PREGEL_SEND_KEY = "__pregel_send";
|
|
810
810
|
const PREGEL_READ_KEY = "__pregel_read";
|
|
811
|
+
function isBase64Encoded(data) {
|
|
812
|
+
return !isFileDataV1(data) && data.encoding === "base64" && typeof data.content === "string";
|
|
813
|
+
}
|
|
814
|
+
/**
|
|
815
|
+
* Store binary content as base64 text. State is checkpointed as JSON, which
|
|
816
|
+
* turns a Uint8Array into an object of numeric keys that fails the files
|
|
817
|
+
* schema on the next run.
|
|
818
|
+
*/
|
|
819
|
+
function toStoredFileData(data) {
|
|
820
|
+
if (!isFileDataBinary(data)) return data;
|
|
821
|
+
return {
|
|
822
|
+
...data,
|
|
823
|
+
content: Buffer.from(data.content).toString("base64"),
|
|
824
|
+
encoding: "base64"
|
|
825
|
+
};
|
|
826
|
+
}
|
|
827
|
+
/** Decode base64-stored content so readers keep getting Uint8Array bytes. */
|
|
828
|
+
function fromStoredFileData(data) {
|
|
829
|
+
if (!isBase64Encoded(data)) return data;
|
|
830
|
+
return {
|
|
831
|
+
content: new Uint8Array(Buffer.from(data.content, "base64")),
|
|
832
|
+
mimeType: data.mimeType,
|
|
833
|
+
created_at: data.created_at,
|
|
834
|
+
modified_at: data.modified_at
|
|
835
|
+
};
|
|
836
|
+
}
|
|
837
|
+
function fileSize(data) {
|
|
838
|
+
if (isFileDataV1(data)) return data.content.join("\n").length;
|
|
839
|
+
if (typeof data.content !== "string") return data.content.byteLength;
|
|
840
|
+
return data.encoding === "base64" ? Buffer.byteLength(data.content, "base64") : data.content.length;
|
|
841
|
+
}
|
|
842
|
+
/** Strict UTF-8 decode; undefined when the bytes are not valid UTF-8. */
|
|
843
|
+
function decodeUtf8(bytes) {
|
|
844
|
+
try {
|
|
845
|
+
return new TextDecoder("utf-8", { fatal: true }).decode(bytes);
|
|
846
|
+
} catch {
|
|
847
|
+
return;
|
|
848
|
+
}
|
|
849
|
+
}
|
|
811
850
|
/**
|
|
812
851
|
* Backend that stores files in agent state (ephemeral).
|
|
813
852
|
*
|
|
@@ -895,11 +934,10 @@ var StateBackend = class {
|
|
|
895
934
|
subdirs.add(normalizedPath + subdirName + "/");
|
|
896
935
|
continue;
|
|
897
936
|
}
|
|
898
|
-
const size = isFileDataV1(fd) ? fd.content.join("\n").length : isFileDataBinary(fd) ? fd.content.byteLength : fd.content.length;
|
|
899
937
|
infos.push({
|
|
900
938
|
path: k,
|
|
901
939
|
is_dir: false,
|
|
902
|
-
size,
|
|
940
|
+
size: fileSize(fd),
|
|
903
941
|
modified_at: fd.modified_at
|
|
904
942
|
});
|
|
905
943
|
}
|
|
@@ -926,7 +964,7 @@ var StateBackend = class {
|
|
|
926
964
|
read(filePath, offset = 0, limit = 500) {
|
|
927
965
|
const fileData = this.files[filePath];
|
|
928
966
|
if (!fileData) return { error: `File '${filePath}' not found` };
|
|
929
|
-
const fileDataV2 = migrateToFileDataV2(fileData, filePath);
|
|
967
|
+
const fileDataV2 = migrateToFileDataV2(fromStoredFileData(fileData), filePath);
|
|
930
968
|
if (!isTextMimeType(fileDataV2.mimeType)) return {
|
|
931
969
|
content: fileDataV2.content,
|
|
932
970
|
mimeType: fileDataV2.mimeType
|
|
@@ -959,15 +997,19 @@ var StateBackend = class {
|
|
|
959
997
|
readRaw(filePath) {
|
|
960
998
|
const fileData = this.files[filePath];
|
|
961
999
|
if (!fileData) return { error: `File '${filePath}' not found` };
|
|
962
|
-
return { data: fileData };
|
|
1000
|
+
return { data: fromStoredFileData(fileData) };
|
|
963
1001
|
}
|
|
964
1002
|
/**
|
|
965
1003
|
* Write content to a file, creating it or overwriting it if it already exists.
|
|
966
1004
|
* Returns WriteResult with filesUpdate to update LangGraph state.
|
|
967
1005
|
*/
|
|
968
1006
|
write(filePath, content) {
|
|
969
|
-
const
|
|
970
|
-
const
|
|
1007
|
+
const stored = this.files[filePath];
|
|
1008
|
+
const existing = stored && isBase64Encoded(stored) ? {
|
|
1009
|
+
...stored,
|
|
1010
|
+
mimeType: getMimeType(filePath)
|
|
1011
|
+
} : stored;
|
|
1012
|
+
const newFileData = toStoredFileData(createWriteFileData(filePath, content, this.fileFormat, existing));
|
|
971
1013
|
const update = { [filePath]: newFileData };
|
|
972
1014
|
if (!this.isLegacy) {
|
|
973
1015
|
this.sendFilesUpdate(update);
|
|
@@ -1006,7 +1048,7 @@ var StateBackend = class {
|
|
|
1006
1048
|
edit(filePath, oldString, newString, replaceAll = false) {
|
|
1007
1049
|
const fileData = this.files[filePath];
|
|
1008
1050
|
if (!fileData) return { error: `Error: File '${filePath}' not found` };
|
|
1009
|
-
const result = performStringReplacement(fileDataToString(fileData), oldString, newString, replaceAll);
|
|
1051
|
+
const result = performStringReplacement(fileDataToString(fromStoredFileData(fileData)), oldString, newString, replaceAll);
|
|
1010
1052
|
if (typeof result === "string") return { error: result };
|
|
1011
1053
|
const [newContent, occurrences] = result;
|
|
1012
1054
|
const newFileData = updateFileData(fileData, newContent);
|
|
@@ -1046,11 +1088,10 @@ var StateBackend = class {
|
|
|
1046
1088
|
const infos = [];
|
|
1047
1089
|
for (const p of paths) {
|
|
1048
1090
|
const fd = files[p];
|
|
1049
|
-
const size = fd ? isFileDataV1(fd) ? fd.content.join("\n").length : isFileDataBinary(fd) ? fd.content.byteLength : fd.content.length : 0;
|
|
1050
1091
|
infos.push({
|
|
1051
1092
|
path: p,
|
|
1052
1093
|
is_dir: false,
|
|
1053
|
-
size,
|
|
1094
|
+
size: fd ? fileSize(fd) : 0,
|
|
1054
1095
|
modified_at: fd?.modified_at || ""
|
|
1055
1096
|
});
|
|
1056
1097
|
}
|
|
@@ -1069,9 +1110,7 @@ var StateBackend = class {
|
|
|
1069
1110
|
const responses = [];
|
|
1070
1111
|
const updates = {};
|
|
1071
1112
|
for (const [path, content] of files) try {
|
|
1072
|
-
|
|
1073
|
-
if (this.fileFormat === "v2" && !isTextMimeType(mimeType)) updates[path] = createFileData(content, void 0, "v2", mimeType);
|
|
1074
|
-
else updates[path] = createFileData(new TextDecoder().decode(content), void 0, this.fileFormat, mimeType);
|
|
1113
|
+
updates[path] = toStoredFileData(this.createUploadFileData(path, content));
|
|
1075
1114
|
responses.push({
|
|
1076
1115
|
path,
|
|
1077
1116
|
error: null
|
|
@@ -1091,6 +1130,20 @@ var StateBackend = class {
|
|
|
1091
1130
|
return result;
|
|
1092
1131
|
}
|
|
1093
1132
|
/**
|
|
1133
|
+
* Build FileData for an uploaded file.
|
|
1134
|
+
*
|
|
1135
|
+
* In v2, bytes at a binary MIME type stay binary, and bytes at a text MIME
|
|
1136
|
+
* type that are not valid UTF-8 are kept as application/octet-stream rather
|
|
1137
|
+
* than lossily decoded. v1 cannot hold binary, so it always decodes as text.
|
|
1138
|
+
*/
|
|
1139
|
+
createUploadFileData(path, content) {
|
|
1140
|
+
const mimeType = getMimeType(path);
|
|
1141
|
+
if (this.fileFormat === "v1") return createFileData(new TextDecoder().decode(content), void 0, "v1", mimeType);
|
|
1142
|
+
if (!isTextMimeType(mimeType)) return createFileData(content, void 0, "v2", mimeType);
|
|
1143
|
+
const text = decodeUtf8(content);
|
|
1144
|
+
return text === void 0 ? createFileData(content, void 0, "v2", "application/octet-stream") : createFileData(text, void 0, "v2", mimeType);
|
|
1145
|
+
}
|
|
1146
|
+
/**
|
|
1094
1147
|
* Download multiple files.
|
|
1095
1148
|
*
|
|
1096
1149
|
* @param paths - List of file paths to download
|
|
@@ -1109,7 +1162,7 @@ var StateBackend = class {
|
|
|
1109
1162
|
});
|
|
1110
1163
|
continue;
|
|
1111
1164
|
}
|
|
1112
|
-
const fileDataV2 = migrateToFileDataV2(fileData, path);
|
|
1165
|
+
const fileDataV2 = migrateToFileDataV2(fromStoredFileData(fileData), path);
|
|
1113
1166
|
if (typeof fileDataV2.content === "string") {
|
|
1114
1167
|
const content = new TextEncoder().encode(fileDataV2.content);
|
|
1115
1168
|
responses.push({
|
|
@@ -2352,30 +2405,39 @@ function extractTextFromMessage(message) {
|
|
|
2352
2405
|
if (Array.isArray(message.content)) return message.content.filter((block) => block.type === "text" && typeof block.text === "string").map((block) => block.text).join("\n");
|
|
2353
2406
|
return String(message.content);
|
|
2354
2407
|
}
|
|
2408
|
+
/**
|
|
2409
|
+
* Whether a content block is an image. Tool-result eviction skips images when
|
|
2410
|
+
* sizing a result and keeps them when evicting it: base64 length says little
|
|
2411
|
+
* about what a provider charges for an image.
|
|
2412
|
+
*/
|
|
2413
|
+
function isImageBlock(block) {
|
|
2414
|
+
return typeof block === "object" && block !== null && "type" in block && (block.type === "image" || block.type === "image_url");
|
|
2415
|
+
}
|
|
2355
2416
|
function stringifyToolContent(content) {
|
|
2356
2417
|
if (typeof content === "string") return content;
|
|
2357
|
-
if (Array.isArray(content)) return content.map((block) => {
|
|
2418
|
+
if (Array.isArray(content)) return content.filter((block) => !isImageBlock(block)).map((block) => {
|
|
2358
2419
|
if (typeof block === "object" && block !== null && "type" in block && block.type === "text" && "text" in block && typeof block.text === "string") return block.text;
|
|
2359
2420
|
return JSON.stringify(block);
|
|
2360
2421
|
}).join("\n");
|
|
2361
2422
|
return String(content);
|
|
2362
2423
|
}
|
|
2363
2424
|
/**
|
|
2364
|
-
* Build replacement content for an evicted
|
|
2425
|
+
* Build replacement content for an evicted message, preserving the blocks `keep` selects.
|
|
2365
2426
|
*
|
|
2366
2427
|
* For plain string content, returns the replacement text directly. For list content
|
|
2367
|
-
* with mixed block types (e.g., text + image), replaces
|
|
2368
|
-
* text block containing the replacement text while keeping
|
|
2428
|
+
* with mixed block types (e.g., text + image), replaces the other blocks with a single
|
|
2429
|
+
* text block containing the replacement text while keeping the selected blocks intact.
|
|
2430
|
+
* By default every non-text block is kept.
|
|
2369
2431
|
*/
|
|
2370
|
-
function
|
|
2432
|
+
function buildEvictedContent(message, replacementText, keep = (block) => block.type !== "text") {
|
|
2371
2433
|
if (typeof message.content === "string") return replacementText;
|
|
2372
2434
|
if (Array.isArray(message.content)) {
|
|
2373
|
-
const
|
|
2374
|
-
if (
|
|
2435
|
+
const keptBlocks = message.content.filter((block) => typeof block === "object" && block !== null && keep(block));
|
|
2436
|
+
if (keptBlocks.length === 0) return replacementText;
|
|
2375
2437
|
return [{
|
|
2376
2438
|
type: "text",
|
|
2377
2439
|
text: replacementText
|
|
2378
|
-
}, ...
|
|
2440
|
+
}, ...keptBlocks];
|
|
2379
2441
|
}
|
|
2380
2442
|
return replacementText;
|
|
2381
2443
|
}
|
|
@@ -2388,7 +2450,7 @@ function buildEvictedHumanContent(message, replacementText) {
|
|
|
2388
2450
|
*/
|
|
2389
2451
|
function buildTruncatedHumanMessage(message, filePath) {
|
|
2390
2452
|
const contentSample = createContentPreview(extractTextFromMessage(message));
|
|
2391
|
-
const evictedContent =
|
|
2453
|
+
const evictedContent = buildEvictedContent(message, TOO_LARGE_HUMAN_MSG.replace("{file_path}", filePath).replace("{content_sample}", contentSample));
|
|
2392
2454
|
return new HumanMessage({
|
|
2393
2455
|
content: evictedContent,
|
|
2394
2456
|
id: message.id,
|
|
@@ -2428,6 +2490,7 @@ const FileDataV1Schema = z.object({
|
|
|
2428
2490
|
const FileDataV2Schema = z.object({
|
|
2429
2491
|
content: z.union([z.string(), z.instanceof(Uint8Array)]),
|
|
2430
2492
|
mimeType: z.string(),
|
|
2493
|
+
encoding: z.enum(["utf-8", "base64"]).optional(),
|
|
2431
2494
|
created_at: z.string(),
|
|
2432
2495
|
modified_at: z.string()
|
|
2433
2496
|
});
|
|
@@ -3314,7 +3377,7 @@ function createFilesystemMiddleware(options = {}) {
|
|
|
3314
3377
|
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.length > 32 ? `${msg.tool_call_id.slice(0, 32)}...` : msg.tool_call_id).replace("{file_path}", evictPath).replace("{content_sample}", contentSample);
|
|
3315
3378
|
return {
|
|
3316
3379
|
message: new ToolMessage({
|
|
3317
|
-
content: replacementText,
|
|
3380
|
+
content: buildEvictedContent(msg, replacementText, isImageBlock),
|
|
3318
3381
|
tool_call_id: msg.tool_call_id,
|
|
3319
3382
|
name: msg.name,
|
|
3320
3383
|
id: msg.id,
|
|
@@ -10760,4 +10823,4 @@ var LangSmithSandbox = class LangSmithSandbox extends BaseSandbox {
|
|
|
10760
10823
|
//#endregion
|
|
10761
10824
|
export { adaptSandboxProtocol as $, filesValue as A, createFilesystemMiddleware as B, MAX_SKILL_FILE_SIZE as C, skillsMetadataValue as D, pinnedSkillsValue as E, SUBAGENT_RESPONSE_FORMAT_CONFIG_KEY as F, scrubUnsupportedMultimodalContent as G, MULTIMODAL_BLOCK_TYPES as H, createSubAgent as I, applyGrepMaxCount as J, StateBackend as K, createSubAgentMiddleware as L, DEFAULT_GENERAL_PURPOSE_DESCRIPTION as M, DEFAULT_SUBAGENT_PROMPT as N, ConfigurationError as O, GENERAL_PURPOSE_SUBAGENT as P, adaptBackendProtocol as Q, computeSummarizationDefaults as R, MAX_SKILL_DESCRIPTION_LENGTH as S, createSkillsMiddleware as T, createUnsupportedContentMiddleware as U, CompositeBackend as V, multimodalBlockSupported as W, isSandboxProtocol as X, isSandboxBackend as Y, resolveBackend as Z, createHarnessProfile as _, ASYNC_TASK_SYSTEM_PROMPT as a, setRealpath as at, isAsyncSubAgent as b, TASK_SYSTEM_PROMPT as c, registerHarnessProfile as d, checkEmptyContent as et, generalPurposeSubagentConfigSchema as f, EMPTY_HARNESS_PROFILE as g, serializeProfile as h, StoreBackend as i, performStringReplacement as it, createPatchToolCallsMiddleware as j, createMemoryMiddleware as k, createDeepAgent as l, parseHarnessProfileConfig as m, BaseSandbox as n, isTextMimeType as nt, BASE_AGENT_PROMPT as o, harnessProfileConfigSchema as p, SandboxError as q, ContextHubBackend as r, normalizeReadPagination as rt, EXECUTION_SYSTEM_PROMPT as s, LangSmithSandbox as t, getMimeType as tt, getHarnessProfile as u, REQUIRED_MIDDLEWARE_NAMES as v, MAX_SKILL_NAME_LENGTH as w, createCompletionCallbackMiddleware as x, createAsyncSubAgentMiddleware as y, createSummarizationMiddleware as z };
|
|
10762
10825
|
|
|
10763
|
-
//# sourceMappingURL=langsmith-
|
|
10826
|
+
//# sourceMappingURL=langsmith-B1pbrx3y.js.map
|