deepagents 1.13.5 → 1.14.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{agent-D7nWARfg.d.cts → agent-CrQgOsbl.d.cts} +111 -27
- package/dist/{agent-CVBXKZAu.d.ts → agent-DGkf2K7U.d.ts} +111 -27
- package/dist/browser.cjs +2 -1
- package/dist/browser.d.cts +2 -2
- package/dist/browser.d.ts +2 -2
- package/dist/browser.js +2 -2
- package/dist/index.cjs +3 -2
- package/dist/index.d.cts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +3 -3
- package/dist/{langsmith-CY7MawjU.js → langsmith-3LzYb-m7.js} +49 -22
- package/dist/langsmith-3LzYb-m7.js.map +1 -0
- package/dist/{langsmith-CG8px69t.cjs → langsmith-C9zNPKIz.cjs} +54 -21
- package/dist/langsmith-C9zNPKIz.cjs.map +1 -0
- package/dist/node.cjs +3 -2
- package/dist/node.d.cts +2 -2
- package/dist/node.d.ts +2 -2
- package/dist/node.js +3 -3
- package/dist/{src-C2ZohcHT.cjs → src-Nhlq1O0Y.cjs} +2 -2
- package/dist/{src-C2ZohcHT.cjs.map → src-Nhlq1O0Y.cjs.map} +1 -1
- package/dist/{src-Bos_UCsK.js → src-gIoHrhh3.js} +2 -2
- package/dist/{src-Bos_UCsK.js.map → src-gIoHrhh3.js.map} +1 -1
- package/package.json +1 -1
- package/dist/langsmith-CG8px69t.cjs.map +0 -1
- package/dist/langsmith-CY7MawjU.js.map +0 -1
|
@@ -1592,7 +1592,7 @@ interface SubAgent {
|
|
|
1592
1592
|
* };
|
|
1593
1593
|
* ```
|
|
1594
1594
|
*/
|
|
1595
|
-
skills?: string[];
|
|
1595
|
+
skills?: readonly string[];
|
|
1596
1596
|
/**
|
|
1597
1597
|
* Structured output response format for the subagent.
|
|
1598
1598
|
*
|
|
@@ -2069,8 +2069,61 @@ interface SkillsMiddlewareOptions {
|
|
|
2069
2069
|
* ]
|
|
2070
2070
|
* ```
|
|
2071
2071
|
*/
|
|
2072
|
-
sources: string[];
|
|
2072
|
+
sources: readonly string[];
|
|
2073
2073
|
}
|
|
2074
|
+
/**
|
|
2075
|
+
* Zod schema for a single skill metadata entry.
|
|
2076
|
+
*/
|
|
2077
|
+
declare const SkillMetadataEntrySchema: z$1.ZodObject<{
|
|
2078
|
+
name: z$1.ZodString;
|
|
2079
|
+
description: z$1.ZodString;
|
|
2080
|
+
path: z$1.ZodString;
|
|
2081
|
+
license: z$1.ZodOptional<z$1.ZodNullable<z$1.ZodString>>;
|
|
2082
|
+
compatibility: z$1.ZodOptional<z$1.ZodNullable<z$1.ZodString>>;
|
|
2083
|
+
metadata: z$1.ZodOptional<z$1.ZodRecord<z$1.ZodString, z$1.ZodString>>;
|
|
2084
|
+
allowedTools: z$1.ZodOptional<z$1.ZodArray<z$1.ZodString>>;
|
|
2085
|
+
module: z$1.ZodOptional<z$1.ZodString>;
|
|
2086
|
+
}, z$1.core.$strip>;
|
|
2087
|
+
/**
|
|
2088
|
+
* Type for a single skill metadata entry.
|
|
2089
|
+
*/
|
|
2090
|
+
type SkillMetadataEntry = z$1.infer<typeof SkillMetadataEntrySchema>;
|
|
2091
|
+
/**
|
|
2092
|
+
* State value for a middleware's `skillsMetadata` field.
|
|
2093
|
+
*
|
|
2094
|
+
* A middleware can only read and write the fields declared on its own state
|
|
2095
|
+
* schema. A middleware that needs `skillsMetadata` — to inspect the skills
|
|
2096
|
+
* loaded for the thread, or to set the field to `null` and make the next model
|
|
2097
|
+
* call reload every source — declares it with this value.
|
|
2098
|
+
*
|
|
2099
|
+
* Treat the value as opaque: it is meant to be passed to `StateSchema`, and
|
|
2100
|
+
* its concrete type is an implementation detail that may change. To type an
|
|
2101
|
+
* individual entry, use {@link SkillMetadataEntry}.
|
|
2102
|
+
*
|
|
2103
|
+
* @example
|
|
2104
|
+
* ```typescript
|
|
2105
|
+
* import { createMiddleware } from "langchain";
|
|
2106
|
+
* import { StateSchema } from "@langchain/langgraph";
|
|
2107
|
+
* import { skillsMetadataValue } from "deepagents";
|
|
2108
|
+
*
|
|
2109
|
+
* const reloadEditedSkills = createMiddleware({
|
|
2110
|
+
* name: "ReloadEditedSkills",
|
|
2111
|
+
* stateSchema: new StateSchema({ skillsMetadata: skillsMetadataValue }),
|
|
2112
|
+
* afterAgent: (state) =>
|
|
2113
|
+
* agentEditedSkills(state) ? { skillsMetadata: null } : undefined,
|
|
2114
|
+
* });
|
|
2115
|
+
* ```
|
|
2116
|
+
*/
|
|
2117
|
+
declare const skillsMetadataValue: z$1.ZodOptional<z$1.ZodNullable<z$1.ZodArray<z$1.ZodObject<{
|
|
2118
|
+
name: z$1.ZodString;
|
|
2119
|
+
description: z$1.ZodString;
|
|
2120
|
+
path: z$1.ZodString;
|
|
2121
|
+
license: z$1.ZodOptional<z$1.ZodNullable<z$1.ZodString>>;
|
|
2122
|
+
compatibility: z$1.ZodOptional<z$1.ZodNullable<z$1.ZodString>>;
|
|
2123
|
+
metadata: z$1.ZodOptional<z$1.ZodRecord<z$1.ZodString, z$1.ZodString>>;
|
|
2124
|
+
allowedTools: z$1.ZodOptional<z$1.ZodArray<z$1.ZodString>>;
|
|
2125
|
+
module: z$1.ZodOptional<z$1.ZodString>;
|
|
2126
|
+
}, z$1.core.$strip>>>>;
|
|
2074
2127
|
/**
|
|
2075
2128
|
* Create backend-agnostic middleware for loading and exposing agent skills.
|
|
2076
2129
|
*
|
|
@@ -2079,6 +2132,21 @@ interface SkillsMiddlewareOptions {
|
|
|
2079
2132
|
* pattern: skill names and descriptions are shown in the prompt, but the agent
|
|
2080
2133
|
* reads full SKILL.md content only when needed.
|
|
2081
2134
|
*
|
|
2135
|
+
* Skills are loaded once per thread and stored in state. To pick up skills
|
|
2136
|
+
* added, edited, or deleted since then, set `skillsMetadata` to `null`; the
|
|
2137
|
+
* next model call reloads every source:
|
|
2138
|
+
*
|
|
2139
|
+
* ```ts
|
|
2140
|
+
* await agent.updateState(config, { skillsMetadata: null });
|
|
2141
|
+
* // or as part of the next run's input
|
|
2142
|
+
* await agent.invoke({ messages, skillsMetadata: null }, config);
|
|
2143
|
+
* ```
|
|
2144
|
+
*
|
|
2145
|
+
* Loading happens in `beforeModel`, so the reload is served by the next model
|
|
2146
|
+
* call rather than the next run. A middleware of your own can therefore
|
|
2147
|
+
* invalidate from any hook — including mid-run, from `afterModel` — and see
|
|
2148
|
+
* the fresh list on the following call. See {@link skillsMetadataValue}.
|
|
2149
|
+
*
|
|
2082
2150
|
* @param options - Configuration options
|
|
2083
2151
|
* @returns AgentMiddleware for skills loading and injection
|
|
2084
2152
|
*
|
|
@@ -2091,27 +2159,26 @@ interface SkillsMiddlewareOptions {
|
|
|
2091
2159
|
* ```
|
|
2092
2160
|
*/
|
|
2093
2161
|
declare function createSkillsMiddleware(options: SkillsMiddlewareOptions): AgentMiddleware<StateSchema<{
|
|
2094
|
-
skillsMetadata:
|
|
2095
|
-
name:
|
|
2096
|
-
description:
|
|
2097
|
-
path:
|
|
2098
|
-
license
|
|
2099
|
-
compatibility
|
|
2100
|
-
metadata
|
|
2101
|
-
allowedTools
|
|
2102
|
-
module
|
|
2103
|
-
}
|
|
2104
|
-
|
|
2105
|
-
description: string;
|
|
2106
|
-
path: string;
|
|
2107
|
-
license?: string | null | undefined;
|
|
2108
|
-
compatibility?: string | null | undefined;
|
|
2109
|
-
metadata?: Record<string, string> | undefined;
|
|
2110
|
-
allowedTools?: string[] | undefined;
|
|
2111
|
-
module?: string | undefined;
|
|
2112
|
-
}[] | undefined>;
|
|
2113
|
-
files: ReducedValue<FilesRecord | undefined, FilesRecordUpdate | undefined>;
|
|
2162
|
+
skillsMetadata: z$1.ZodOptional<z$1.ZodNullable<z$1.ZodArray<z$1.ZodObject<{
|
|
2163
|
+
name: z$1.ZodString;
|
|
2164
|
+
description: z$1.ZodString;
|
|
2165
|
+
path: z$1.ZodString;
|
|
2166
|
+
license: z$1.ZodOptional<z$1.ZodNullable<z$1.ZodString>>;
|
|
2167
|
+
compatibility: z$1.ZodOptional<z$1.ZodNullable<z$1.ZodString>>;
|
|
2168
|
+
metadata: z$1.ZodOptional<z$1.ZodRecord<z$1.ZodString, z$1.ZodString>>;
|
|
2169
|
+
allowedTools: z$1.ZodOptional<z$1.ZodArray<z$1.ZodString>>;
|
|
2170
|
+
module: z$1.ZodOptional<z$1.ZodString>;
|
|
2171
|
+
}, z$1.core.$strip>>>>;
|
|
2172
|
+
files: import("@langchain/langgraph").ReducedValue<FilesRecord | undefined, FilesRecordUpdate | undefined>;
|
|
2114
2173
|
}>, undefined, unknown, readonly (import("@langchain/core/tools").ServerTool | import("@langchain/core/tools").ClientTool)[], readonly []>;
|
|
2174
|
+
/**
|
|
2175
|
+
* The middleware value returned by {@link createSkillsMiddleware}.
|
|
2176
|
+
*
|
|
2177
|
+
* Exported so `createDeepAgent` can splice the skills state (`skillsMetadata`)
|
|
2178
|
+
* into an agent's inferred state when the `skills` option is present, without
|
|
2179
|
+
* the caller having to mount the middleware by hand.
|
|
2180
|
+
*/
|
|
2181
|
+
type SkillsMiddleware = ReturnType<typeof createSkillsMiddleware>;
|
|
2115
2182
|
//#endregion
|
|
2116
2183
|
//#region src/middleware/completion_callback.d.ts
|
|
2117
2184
|
/**
|
|
@@ -2746,6 +2813,22 @@ type InferSubagentByName<T, TName extends string> = InferDeepAgentSubagents<T> e
|
|
|
2746
2813
|
* ```
|
|
2747
2814
|
*/
|
|
2748
2815
|
type InferSubagentReactAgentType<TSubagent extends SubAgent | CompiledSubAgent> = TSubagent extends CompiledSubAgent ? TSubagent["runnable"] : TSubagent extends SubAgent ? ReactAgent<AgentTypeConfig<ResponseFormatUndefined, undefined, AnyAnnotationRoot, ExtractSubAgentMiddleware<TSubagent>, readonly []>> : never;
|
|
2816
|
+
/**
|
|
2817
|
+
* Middleware that `createDeepAgent` mounts only when the corresponding option
|
|
2818
|
+
* is passed, expressed at the type level so the agent's state reflects it.
|
|
2819
|
+
*
|
|
2820
|
+
* `skills` mounts `SkillsMiddleware`, which contributes `skillsMetadata` to
|
|
2821
|
+
* state. Callers therefore get `skillsMetadata` on `invoke`/`updateState`
|
|
2822
|
+
* purely from `skills: [...]`, with no need to mount the middleware manually.
|
|
2823
|
+
*
|
|
2824
|
+
* Mirrors the runtime condition `skills != null && skills.length > 0`: an
|
|
2825
|
+
* omitted option or an empty literal (`skills: []`) mounts nothing and
|
|
2826
|
+
* contributes no state. A non-literal `string[]` has no statically known
|
|
2827
|
+
* length, so it is treated as mounting the middleware.
|
|
2828
|
+
*
|
|
2829
|
+
* @typeParam TSkills - The `skills` option as passed (or `undefined` if omitted)
|
|
2830
|
+
*/
|
|
2831
|
+
type InferOptionalMiddleware<TSkills extends readonly string[] | undefined> = [TSkills] extends [undefined] ? readonly [] : [TSkills] extends [readonly []] ? readonly [] : readonly [SkillsMiddleware];
|
|
2749
2832
|
/**
|
|
2750
2833
|
* Configuration parameters for creating a Deep Agent
|
|
2751
2834
|
* Matches Python's create_deep_agent parameters
|
|
@@ -2757,8 +2840,9 @@ type InferSubagentReactAgentType<TSubagent extends SubAgent | CompiledSubAgent>
|
|
|
2757
2840
|
* @typeParam TTools - The tools array type
|
|
2758
2841
|
* @typeParam TStreamTransformers - Custom stream transformer factories
|
|
2759
2842
|
* @typeParam TStateSchema - The custom state schema type
|
|
2843
|
+
* @typeParam TSkills - The `skills` option, used to infer skills-middleware state
|
|
2760
2844
|
*/
|
|
2761
|
-
interface CreateDeepAgentParams<TResponse extends SupportedResponseFormat = SupportedResponseFormat, ContextSchema extends AnnotationRoot<any> | InteropZodObject = AnnotationRoot<any>, TMiddleware extends readonly AgentMiddleware[] = readonly AgentMiddleware[], TSubagents extends readonly AnySubAgent[] = readonly AnySubAgent[], TTools extends readonly (ClientTool | ServerTool)[] = readonly (ClientTool | ServerTool)[], TStreamTransformers extends ReadonlyArray<() => StreamTransformer<any>> = readonly [], TStateSchema extends AnyStateSchema | InteropZodObject | undefined = undefined> {
|
|
2845
|
+
interface CreateDeepAgentParams<TResponse extends SupportedResponseFormat = SupportedResponseFormat, ContextSchema extends AnnotationRoot<any> | InteropZodObject = AnnotationRoot<any>, TMiddleware extends readonly AgentMiddleware[] = readonly AgentMiddleware[], TSubagents extends readonly AnySubAgent[] = readonly AnySubAgent[], TTools extends readonly (ClientTool | ServerTool)[] = readonly (ClientTool | ServerTool)[], TStreamTransformers extends ReadonlyArray<() => StreamTransformer<any>> = readonly [], TStateSchema extends AnyStateSchema | InteropZodObject | undefined = undefined, TSkills extends readonly string[] | undefined = readonly string[] | undefined> {
|
|
2762
2846
|
/** The model to use (model name string or LanguageModelLike instance). Defaults to claude-sonnet-4-5-20250929 */
|
|
2763
2847
|
model?: BaseLanguageModel | string;
|
|
2764
2848
|
/**
|
|
@@ -2867,7 +2951,7 @@ interface CreateDeepAgentParams<TResponse extends SupportedResponseFormat = Supp
|
|
|
2867
2951
|
* });
|
|
2868
2952
|
* ```
|
|
2869
2953
|
*/
|
|
2870
|
-
skills?:
|
|
2954
|
+
skills?: TSkills;
|
|
2871
2955
|
/**
|
|
2872
2956
|
* Filesystem permission rules for this agent.
|
|
2873
2957
|
*
|
|
@@ -4282,7 +4366,7 @@ declare function adaptSandboxProtocol(sandbox: AnySandboxProtocol): SandboxBacke
|
|
|
4282
4366
|
* // result.research and result.author are properly typed as strings
|
|
4283
4367
|
* ```
|
|
4284
4368
|
*/
|
|
4285
|
-
declare function createDeepAgent<TResponse extends SupportedResponseFormat = SupportedResponseFormat, ContextSchema extends InteropZodObject = InteropZodObject, const TMiddleware extends readonly AgentMiddleware[] = readonly [], const TSubagents extends readonly AnySubAgent[] = readonly [], const TTools extends readonly (ClientTool | ServerTool)[] = readonly [], const TStreamTransformers extends ReadonlyArray<() => StreamTransformer<any>> = readonly [], TStateSchema extends AnyStateSchema | InteropZodObject | undefined = undefined>(params?: CreateDeepAgentParams<TResponse, ContextSchema, TMiddleware, TSubagents, TTools, TStreamTransformers, TStateSchema>): DeepAgent<DeepAgentTypeConfig<InferStructuredResponse<TResponse>, TStateSchema, ContextSchema, readonly [AgentMiddleware<_langgraph.StateSchema<{
|
|
4369
|
+
declare function createDeepAgent<TResponse extends SupportedResponseFormat = SupportedResponseFormat, ContextSchema extends InteropZodObject = InteropZodObject, const TMiddleware extends readonly AgentMiddleware[] = readonly [], const TSubagents extends readonly AnySubAgent[] = readonly [], const TTools extends readonly (ClientTool | ServerTool)[] = readonly [], const TStreamTransformers extends ReadonlyArray<() => StreamTransformer<any>> = readonly [], TStateSchema extends AnyStateSchema | InteropZodObject | undefined = undefined, const TSkills extends readonly string[] | undefined = undefined>(params?: CreateDeepAgentParams<TResponse, ContextSchema, TMiddleware, TSubagents, TTools, TStreamTransformers, TStateSchema, TSkills>): DeepAgent<DeepAgentTypeConfig<InferStructuredResponse<TResponse>, TStateSchema, ContextSchema, readonly [...InferOptionalMiddleware<TSkills>, AgentMiddleware<_langgraph.StateSchema<{
|
|
4286
4370
|
files: _langgraph.ReducedValue<FilesRecord | undefined, FilesRecordUpdate | undefined>;
|
|
4287
4371
|
}>, undefined, unknown, (import("langchain").DynamicStructuredTool<import("zod").ZodObject<{
|
|
4288
4372
|
path: import("zod").ZodDefault<import("zod").ZodOptional<import("zod").ZodString>>;
|
|
@@ -4389,5 +4473,5 @@ declare function createDeepAgent<TResponse extends SupportedResponseFormat = Sup
|
|
|
4389
4473
|
}, import("zod/v4/core").$strip>>;
|
|
4390
4474
|
}, 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>>;
|
|
4391
4475
|
//#endregion
|
|
4392
|
-
export { AsyncTaskStatus as $,
|
|
4393
|
-
//# sourceMappingURL=agent-
|
|
4476
|
+
export { AsyncTaskStatus as $, PermissionMode as $t, createSettings as A, isSandboxBackend as An, HarnessProfileConfigData as At, FlattenSubAgentMiddleware as B, REQUIRED_MIDDLEWARE_NAMES as Bt, listSkills as C, SandboxGetOrCreateOptions as Cn, SUBAGENT_RESPONSE_FORMAT_CONFIG_KEY as Ct, filesValue as D, StateAndStore as Dn, createSubAgentMiddleware as Dt, createAgentMemoryMiddleware as E, SandboxListResponse as En, createSubAgent as Et, CreateDeepAgentParams as F, BackendProtocolV1 as Fn, EMPTY_HARNESS_PROFILE as Ft, InferSubagentByName as G, EXECUTION_SYSTEM_PROMPT as Gt, InferDeepAgentType as H, ConfigurationErrorCode as Ht, DeepAgent as I, SandboxBackendProtocolV1 as In, createHarnessProfile as It, ResolveDeepAgentTypeConfig as J, FilesystemMiddlewareOptions as Jt, InferSubagentReactAgentType as K, SystemPromptConfig as Kt, DeepAgentTypeConfig as L, GeneralPurposeSubagentConfig as Lt, DeepAgentRunStream as M, resolveBackend as Mn, harnessProfileConfigSchema as Mt, SubagentRunStream$1 as N, BackendProtocolV2 as Nn, parseHarnessProfileConfig as Nt, Settings as O, WriteResult as On, getHarnessProfile as Ot, AnySubAgent as P, SandboxBackendProtocolV2 as Pn, serializeProfile as Pt, AsyncTask as Q, FilesystemPermission as Qt, DefaultDeepAgentTypeConfig as R, HarnessProfile as Rt, SkillMetadata as S, SandboxErrorCode as Sn, GENERAL_PURPOSE_SUBAGENT as St, AgentMemoryMiddlewareOptions as T, SandboxListOptions as Tn, SubAgentMiddlewareOptions as Tt, InferStructuredResponse as U, ASYNC_TASK_SYSTEM_PROMPT as Ut, InferDeepAgentSubagents as V, ConfigurationError as Vt, InferSubAgentMiddlewareStates as W, BASE_AGENT_PROMPT as Wt, AsyncSubAgent as X, createFilesystemMiddleware as Xt, SupportedResponseFormat as Y, FsToolName as Yt, AsyncSubAgentMiddlewareOptions as Z, FilesystemOperation as Zt, StoreBackend as _, ReadRawResult as _n, createPatchToolCallsMiddleware as _t, adaptBackendProtocol as a, EditResult as an, createCompletionCallbackMiddleware as at, StoreBackendOptions as b, SandboxDeleteOptions as bn, DEFAULT_SUBAGENT_PROMPT as bt, LangSmithSandbox as c, FileDownloadResponse as cn, MAX_SKILL_NAME_LENGTH as ct, BaseSandbox as d, FileUploadResponse as dn, SkillsMiddlewareOptions as dt, AnyBackendProtocol as en, createAsyncSubAgentMiddleware as et, LocalShellBackend as f, GlobResult as fn, createSkillsMiddleware as ft, FilesystemBackend as g, MaybePromise as gn, StateBackend as gt, CompositeBackend as h, LsResult as hn, createMemoryMiddleware as ht, LangSmithStartSandboxOptions as i, DeleteResult as in, CompletionCallbackOptions as it, findProjectRoot as j, isSandboxProtocol as jn, generalPurposeSubagentConfigSchema as jt, SettingsOptions as k, applyGrepMaxCount as kn, registerHarnessProfile as kt, LangSmithSandboxCreateOptions as l, FileInfo as ln, SkillMetadata$1 as lt, ContextHubBackend as m, GrepResult as mn, MemoryMiddlewareOptions as mt, LangSmithCaptureSnapshotOptions as n, BackendProtocol as nn, computeSummarizationDefaults as nt, adaptSandboxProtocol as o, ExecuteResponse as on, MAX_SKILL_DESCRIPTION_LENGTH as ot, LocalShellBackendOptions as p, GrepMatch as pn, skillsMetadataValue as pt, MergedDeepAgentState as q, TASK_SYSTEM_PROMPT as qt, LangSmithSnapshot as r, BackendRuntime as rn, createSummarizationMiddleware as rt, normalizeReadPagination as s, FileData as sn, MAX_SKILL_FILE_SIZE as st, createDeepAgent as t, BackendFactory as tn, isAsyncSubAgent as tt, LangSmithSandboxOptions as u, FileOperationError as un, SkillMetadataEntry as ut, StoreBackendContext as v, ReadResult as vn, CompiledSubAgent as vt, parseSkillMetadata as w, SandboxInfo as wn, SubAgent as wt, ListSkillsOptions as x, SandboxError as xn, ForkedSubAgent as xt, StoreBackendNamespaceFactory as y, SandboxBackendProtocol as yn, DEFAULT_GENERAL_PURPOSE_DESCRIPTION as yt, ExtractSubAgentMiddleware as z, HarnessProfileOptions as zt };
|
|
4477
|
+
//# sourceMappingURL=agent-CrQgOsbl.d.cts.map
|
|
@@ -1593,7 +1593,7 @@ interface SubAgent {
|
|
|
1593
1593
|
* };
|
|
1594
1594
|
* ```
|
|
1595
1595
|
*/
|
|
1596
|
-
skills?: string[];
|
|
1596
|
+
skills?: readonly string[];
|
|
1597
1597
|
/**
|
|
1598
1598
|
* Structured output response format for the subagent.
|
|
1599
1599
|
*
|
|
@@ -2070,8 +2070,61 @@ interface SkillsMiddlewareOptions {
|
|
|
2070
2070
|
* ]
|
|
2071
2071
|
* ```
|
|
2072
2072
|
*/
|
|
2073
|
-
sources: string[];
|
|
2073
|
+
sources: readonly string[];
|
|
2074
2074
|
}
|
|
2075
|
+
/**
|
|
2076
|
+
* Zod schema for a single skill metadata entry.
|
|
2077
|
+
*/
|
|
2078
|
+
declare const SkillMetadataEntrySchema: z$1.ZodObject<{
|
|
2079
|
+
name: z$1.ZodString;
|
|
2080
|
+
description: z$1.ZodString;
|
|
2081
|
+
path: z$1.ZodString;
|
|
2082
|
+
license: z$1.ZodOptional<z$1.ZodNullable<z$1.ZodString>>;
|
|
2083
|
+
compatibility: z$1.ZodOptional<z$1.ZodNullable<z$1.ZodString>>;
|
|
2084
|
+
metadata: z$1.ZodOptional<z$1.ZodRecord<z$1.ZodString, z$1.ZodString>>;
|
|
2085
|
+
allowedTools: z$1.ZodOptional<z$1.ZodArray<z$1.ZodString>>;
|
|
2086
|
+
module: z$1.ZodOptional<z$1.ZodString>;
|
|
2087
|
+
}, z$1.core.$strip>;
|
|
2088
|
+
/**
|
|
2089
|
+
* Type for a single skill metadata entry.
|
|
2090
|
+
*/
|
|
2091
|
+
type SkillMetadataEntry = z$1.infer<typeof SkillMetadataEntrySchema>;
|
|
2092
|
+
/**
|
|
2093
|
+
* State value for a middleware's `skillsMetadata` field.
|
|
2094
|
+
*
|
|
2095
|
+
* A middleware can only read and write the fields declared on its own state
|
|
2096
|
+
* schema. A middleware that needs `skillsMetadata` — to inspect the skills
|
|
2097
|
+
* loaded for the thread, or to set the field to `null` and make the next model
|
|
2098
|
+
* call reload every source — declares it with this value.
|
|
2099
|
+
*
|
|
2100
|
+
* Treat the value as opaque: it is meant to be passed to `StateSchema`, and
|
|
2101
|
+
* its concrete type is an implementation detail that may change. To type an
|
|
2102
|
+
* individual entry, use {@link SkillMetadataEntry}.
|
|
2103
|
+
*
|
|
2104
|
+
* @example
|
|
2105
|
+
* ```typescript
|
|
2106
|
+
* import { createMiddleware } from "langchain";
|
|
2107
|
+
* import { StateSchema } from "@langchain/langgraph";
|
|
2108
|
+
* import { skillsMetadataValue } from "deepagents";
|
|
2109
|
+
*
|
|
2110
|
+
* const reloadEditedSkills = createMiddleware({
|
|
2111
|
+
* name: "ReloadEditedSkills",
|
|
2112
|
+
* stateSchema: new StateSchema({ skillsMetadata: skillsMetadataValue }),
|
|
2113
|
+
* afterAgent: (state) =>
|
|
2114
|
+
* agentEditedSkills(state) ? { skillsMetadata: null } : undefined,
|
|
2115
|
+
* });
|
|
2116
|
+
* ```
|
|
2117
|
+
*/
|
|
2118
|
+
declare const skillsMetadataValue: z$1.ZodOptional<z$1.ZodNullable<z$1.ZodArray<z$1.ZodObject<{
|
|
2119
|
+
name: z$1.ZodString;
|
|
2120
|
+
description: z$1.ZodString;
|
|
2121
|
+
path: z$1.ZodString;
|
|
2122
|
+
license: z$1.ZodOptional<z$1.ZodNullable<z$1.ZodString>>;
|
|
2123
|
+
compatibility: z$1.ZodOptional<z$1.ZodNullable<z$1.ZodString>>;
|
|
2124
|
+
metadata: z$1.ZodOptional<z$1.ZodRecord<z$1.ZodString, z$1.ZodString>>;
|
|
2125
|
+
allowedTools: z$1.ZodOptional<z$1.ZodArray<z$1.ZodString>>;
|
|
2126
|
+
module: z$1.ZodOptional<z$1.ZodString>;
|
|
2127
|
+
}, z$1.core.$strip>>>>;
|
|
2075
2128
|
/**
|
|
2076
2129
|
* Create backend-agnostic middleware for loading and exposing agent skills.
|
|
2077
2130
|
*
|
|
@@ -2080,6 +2133,21 @@ interface SkillsMiddlewareOptions {
|
|
|
2080
2133
|
* pattern: skill names and descriptions are shown in the prompt, but the agent
|
|
2081
2134
|
* reads full SKILL.md content only when needed.
|
|
2082
2135
|
*
|
|
2136
|
+
* Skills are loaded once per thread and stored in state. To pick up skills
|
|
2137
|
+
* added, edited, or deleted since then, set `skillsMetadata` to `null`; the
|
|
2138
|
+
* next model call reloads every source:
|
|
2139
|
+
*
|
|
2140
|
+
* ```ts
|
|
2141
|
+
* await agent.updateState(config, { skillsMetadata: null });
|
|
2142
|
+
* // or as part of the next run's input
|
|
2143
|
+
* await agent.invoke({ messages, skillsMetadata: null }, config);
|
|
2144
|
+
* ```
|
|
2145
|
+
*
|
|
2146
|
+
* Loading happens in `beforeModel`, so the reload is served by the next model
|
|
2147
|
+
* call rather than the next run. A middleware of your own can therefore
|
|
2148
|
+
* invalidate from any hook — including mid-run, from `afterModel` — and see
|
|
2149
|
+
* the fresh list on the following call. See {@link skillsMetadataValue}.
|
|
2150
|
+
*
|
|
2083
2151
|
* @param options - Configuration options
|
|
2084
2152
|
* @returns AgentMiddleware for skills loading and injection
|
|
2085
2153
|
*
|
|
@@ -2092,27 +2160,26 @@ interface SkillsMiddlewareOptions {
|
|
|
2092
2160
|
* ```
|
|
2093
2161
|
*/
|
|
2094
2162
|
declare function createSkillsMiddleware(options: SkillsMiddlewareOptions): AgentMiddleware<StateSchema<{
|
|
2095
|
-
skillsMetadata:
|
|
2096
|
-
name:
|
|
2097
|
-
description:
|
|
2098
|
-
path:
|
|
2099
|
-
license
|
|
2100
|
-
compatibility
|
|
2101
|
-
metadata
|
|
2102
|
-
allowedTools
|
|
2103
|
-
module
|
|
2104
|
-
}
|
|
2105
|
-
|
|
2106
|
-
description: string;
|
|
2107
|
-
path: string;
|
|
2108
|
-
license?: string | null | undefined;
|
|
2109
|
-
compatibility?: string | null | undefined;
|
|
2110
|
-
metadata?: Record<string, string> | undefined;
|
|
2111
|
-
allowedTools?: string[] | undefined;
|
|
2112
|
-
module?: string | undefined;
|
|
2113
|
-
}[] | undefined>;
|
|
2114
|
-
files: ReducedValue<FilesRecord | undefined, FilesRecordUpdate | undefined>;
|
|
2163
|
+
skillsMetadata: z$1.ZodOptional<z$1.ZodNullable<z$1.ZodArray<z$1.ZodObject<{
|
|
2164
|
+
name: z$1.ZodString;
|
|
2165
|
+
description: z$1.ZodString;
|
|
2166
|
+
path: z$1.ZodString;
|
|
2167
|
+
license: z$1.ZodOptional<z$1.ZodNullable<z$1.ZodString>>;
|
|
2168
|
+
compatibility: z$1.ZodOptional<z$1.ZodNullable<z$1.ZodString>>;
|
|
2169
|
+
metadata: z$1.ZodOptional<z$1.ZodRecord<z$1.ZodString, z$1.ZodString>>;
|
|
2170
|
+
allowedTools: z$1.ZodOptional<z$1.ZodArray<z$1.ZodString>>;
|
|
2171
|
+
module: z$1.ZodOptional<z$1.ZodString>;
|
|
2172
|
+
}, z$1.core.$strip>>>>;
|
|
2173
|
+
files: import("@langchain/langgraph").ReducedValue<FilesRecord | undefined, FilesRecordUpdate | undefined>;
|
|
2115
2174
|
}>, undefined, unknown, readonly (import("@langchain/core/tools").ServerTool | import("@langchain/core/tools").ClientTool)[], readonly []>;
|
|
2175
|
+
/**
|
|
2176
|
+
* The middleware value returned by {@link createSkillsMiddleware}.
|
|
2177
|
+
*
|
|
2178
|
+
* Exported so `createDeepAgent` can splice the skills state (`skillsMetadata`)
|
|
2179
|
+
* into an agent's inferred state when the `skills` option is present, without
|
|
2180
|
+
* the caller having to mount the middleware by hand.
|
|
2181
|
+
*/
|
|
2182
|
+
type SkillsMiddleware = ReturnType<typeof createSkillsMiddleware>;
|
|
2116
2183
|
//#endregion
|
|
2117
2184
|
//#region src/middleware/completion_callback.d.ts
|
|
2118
2185
|
/**
|
|
@@ -2747,6 +2814,22 @@ type InferSubagentByName<T, TName extends string> = InferDeepAgentSubagents<T> e
|
|
|
2747
2814
|
* ```
|
|
2748
2815
|
*/
|
|
2749
2816
|
type InferSubagentReactAgentType<TSubagent extends SubAgent | CompiledSubAgent> = TSubagent extends CompiledSubAgent ? TSubagent["runnable"] : TSubagent extends SubAgent ? ReactAgent<AgentTypeConfig<ResponseFormatUndefined, undefined, AnyAnnotationRoot, ExtractSubAgentMiddleware<TSubagent>, readonly []>> : never;
|
|
2817
|
+
/**
|
|
2818
|
+
* Middleware that `createDeepAgent` mounts only when the corresponding option
|
|
2819
|
+
* is passed, expressed at the type level so the agent's state reflects it.
|
|
2820
|
+
*
|
|
2821
|
+
* `skills` mounts `SkillsMiddleware`, which contributes `skillsMetadata` to
|
|
2822
|
+
* state. Callers therefore get `skillsMetadata` on `invoke`/`updateState`
|
|
2823
|
+
* purely from `skills: [...]`, with no need to mount the middleware manually.
|
|
2824
|
+
*
|
|
2825
|
+
* Mirrors the runtime condition `skills != null && skills.length > 0`: an
|
|
2826
|
+
* omitted option or an empty literal (`skills: []`) mounts nothing and
|
|
2827
|
+
* contributes no state. A non-literal `string[]` has no statically known
|
|
2828
|
+
* length, so it is treated as mounting the middleware.
|
|
2829
|
+
*
|
|
2830
|
+
* @typeParam TSkills - The `skills` option as passed (or `undefined` if omitted)
|
|
2831
|
+
*/
|
|
2832
|
+
type InferOptionalMiddleware<TSkills extends readonly string[] | undefined> = [TSkills] extends [undefined] ? readonly [] : [TSkills] extends [readonly []] ? readonly [] : readonly [SkillsMiddleware];
|
|
2750
2833
|
/**
|
|
2751
2834
|
* Configuration parameters for creating a Deep Agent
|
|
2752
2835
|
* Matches Python's create_deep_agent parameters
|
|
@@ -2758,8 +2841,9 @@ type InferSubagentReactAgentType<TSubagent extends SubAgent | CompiledSubAgent>
|
|
|
2758
2841
|
* @typeParam TTools - The tools array type
|
|
2759
2842
|
* @typeParam TStreamTransformers - Custom stream transformer factories
|
|
2760
2843
|
* @typeParam TStateSchema - The custom state schema type
|
|
2844
|
+
* @typeParam TSkills - The `skills` option, used to infer skills-middleware state
|
|
2761
2845
|
*/
|
|
2762
|
-
interface CreateDeepAgentParams<TResponse extends SupportedResponseFormat = SupportedResponseFormat, ContextSchema extends AnnotationRoot<any> | InteropZodObject = AnnotationRoot<any>, TMiddleware extends readonly AgentMiddleware[] = readonly AgentMiddleware[], TSubagents extends readonly AnySubAgent[] = readonly AnySubAgent[], TTools extends readonly (ClientTool | ServerTool)[] = readonly (ClientTool | ServerTool)[], TStreamTransformers extends ReadonlyArray<() => StreamTransformer<any>> = readonly [], TStateSchema extends AnyStateSchema | InteropZodObject | undefined = undefined> {
|
|
2846
|
+
interface CreateDeepAgentParams<TResponse extends SupportedResponseFormat = SupportedResponseFormat, ContextSchema extends AnnotationRoot<any> | InteropZodObject = AnnotationRoot<any>, TMiddleware extends readonly AgentMiddleware[] = readonly AgentMiddleware[], TSubagents extends readonly AnySubAgent[] = readonly AnySubAgent[], TTools extends readonly (ClientTool | ServerTool)[] = readonly (ClientTool | ServerTool)[], TStreamTransformers extends ReadonlyArray<() => StreamTransformer<any>> = readonly [], TStateSchema extends AnyStateSchema | InteropZodObject | undefined = undefined, TSkills extends readonly string[] | undefined = readonly string[] | undefined> {
|
|
2763
2847
|
/** The model to use (model name string or LanguageModelLike instance). Defaults to claude-sonnet-4-5-20250929 */
|
|
2764
2848
|
model?: BaseLanguageModel | string;
|
|
2765
2849
|
/**
|
|
@@ -2868,7 +2952,7 @@ interface CreateDeepAgentParams<TResponse extends SupportedResponseFormat = Supp
|
|
|
2868
2952
|
* });
|
|
2869
2953
|
* ```
|
|
2870
2954
|
*/
|
|
2871
|
-
skills?:
|
|
2955
|
+
skills?: TSkills;
|
|
2872
2956
|
/**
|
|
2873
2957
|
* Filesystem permission rules for this agent.
|
|
2874
2958
|
*
|
|
@@ -4283,7 +4367,7 @@ declare function adaptSandboxProtocol(sandbox: AnySandboxProtocol): SandboxBacke
|
|
|
4283
4367
|
* // result.research and result.author are properly typed as strings
|
|
4284
4368
|
* ```
|
|
4285
4369
|
*/
|
|
4286
|
-
declare function createDeepAgent<TResponse extends SupportedResponseFormat = SupportedResponseFormat, ContextSchema extends InteropZodObject = InteropZodObject, const TMiddleware extends readonly AgentMiddleware[] = readonly [], const TSubagents extends readonly AnySubAgent[] = readonly [], const TTools extends readonly (ClientTool | ServerTool)[] = readonly [], const TStreamTransformers extends ReadonlyArray<() => StreamTransformer<any>> = readonly [], TStateSchema extends AnyStateSchema | InteropZodObject | undefined = undefined>(params?: CreateDeepAgentParams<TResponse, ContextSchema, TMiddleware, TSubagents, TTools, TStreamTransformers, TStateSchema>): DeepAgent<DeepAgentTypeConfig<InferStructuredResponse<TResponse>, TStateSchema, ContextSchema, readonly [AgentMiddleware<_langgraph.StateSchema<{
|
|
4370
|
+
declare function createDeepAgent<TResponse extends SupportedResponseFormat = SupportedResponseFormat, ContextSchema extends InteropZodObject = InteropZodObject, const TMiddleware extends readonly AgentMiddleware[] = readonly [], const TSubagents extends readonly AnySubAgent[] = readonly [], const TTools extends readonly (ClientTool | ServerTool)[] = readonly [], const TStreamTransformers extends ReadonlyArray<() => StreamTransformer<any>> = readonly [], TStateSchema extends AnyStateSchema | InteropZodObject | undefined = undefined, const TSkills extends readonly string[] | undefined = undefined>(params?: CreateDeepAgentParams<TResponse, ContextSchema, TMiddleware, TSubagents, TTools, TStreamTransformers, TStateSchema, TSkills>): DeepAgent<DeepAgentTypeConfig<InferStructuredResponse<TResponse>, TStateSchema, ContextSchema, readonly [...InferOptionalMiddleware<TSkills>, AgentMiddleware<_langgraph.StateSchema<{
|
|
4287
4371
|
files: _langgraph.ReducedValue<FilesRecord | undefined, FilesRecordUpdate | undefined>;
|
|
4288
4372
|
}>, undefined, unknown, (import("langchain").DynamicStructuredTool<import("zod").ZodObject<{
|
|
4289
4373
|
path: import("zod").ZodDefault<import("zod").ZodOptional<import("zod").ZodString>>;
|
|
@@ -4390,5 +4474,5 @@ declare function createDeepAgent<TResponse extends SupportedResponseFormat = Sup
|
|
|
4390
4474
|
}, import("zod/v4/core").$strip>>;
|
|
4391
4475
|
}, 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>>;
|
|
4392
4476
|
//#endregion
|
|
4393
|
-
export { AsyncTaskStatus as $,
|
|
4394
|
-
//# sourceMappingURL=agent-
|
|
4477
|
+
export { AsyncTaskStatus as $, PermissionMode as $t, createSettings as A, isSandboxBackend as An, HarnessProfileConfigData as At, FlattenSubAgentMiddleware as B, REQUIRED_MIDDLEWARE_NAMES as Bt, listSkills as C, SandboxGetOrCreateOptions as Cn, SUBAGENT_RESPONSE_FORMAT_CONFIG_KEY as Ct, filesValue as D, StateAndStore as Dn, createSubAgentMiddleware as Dt, createAgentMemoryMiddleware as E, SandboxListResponse as En, createSubAgent as Et, CreateDeepAgentParams as F, BackendProtocolV1 as Fn, EMPTY_HARNESS_PROFILE as Ft, InferSubagentByName as G, EXECUTION_SYSTEM_PROMPT as Gt, InferDeepAgentType as H, ConfigurationErrorCode as Ht, DeepAgent as I, SandboxBackendProtocolV1 as In, createHarnessProfile as It, ResolveDeepAgentTypeConfig as J, FilesystemMiddlewareOptions as Jt, InferSubagentReactAgentType as K, SystemPromptConfig as Kt, DeepAgentTypeConfig as L, GeneralPurposeSubagentConfig as Lt, DeepAgentRunStream as M, resolveBackend as Mn, harnessProfileConfigSchema as Mt, SubagentRunStream$1 as N, BackendProtocolV2 as Nn, parseHarnessProfileConfig as Nt, Settings as O, WriteResult as On, getHarnessProfile as Ot, AnySubAgent as P, SandboxBackendProtocolV2 as Pn, serializeProfile as Pt, AsyncTask as Q, FilesystemPermission as Qt, DefaultDeepAgentTypeConfig as R, HarnessProfile as Rt, SkillMetadata as S, SandboxErrorCode as Sn, GENERAL_PURPOSE_SUBAGENT as St, AgentMemoryMiddlewareOptions as T, SandboxListOptions as Tn, SubAgentMiddlewareOptions as Tt, InferStructuredResponse as U, ASYNC_TASK_SYSTEM_PROMPT as Ut, InferDeepAgentSubagents as V, ConfigurationError as Vt, InferSubAgentMiddlewareStates as W, BASE_AGENT_PROMPT as Wt, AsyncSubAgent as X, createFilesystemMiddleware as Xt, SupportedResponseFormat as Y, FsToolName as Yt, AsyncSubAgentMiddlewareOptions as Z, FilesystemOperation as Zt, StoreBackend as _, ReadRawResult as _n, createPatchToolCallsMiddleware as _t, adaptBackendProtocol as a, EditResult as an, createCompletionCallbackMiddleware as at, StoreBackendOptions as b, SandboxDeleteOptions as bn, DEFAULT_SUBAGENT_PROMPT as bt, LangSmithSandbox as c, FileDownloadResponse as cn, MAX_SKILL_NAME_LENGTH as ct, BaseSandbox as d, FileUploadResponse as dn, SkillsMiddlewareOptions as dt, AnyBackendProtocol as en, createAsyncSubAgentMiddleware as et, LocalShellBackend as f, GlobResult as fn, createSkillsMiddleware as ft, FilesystemBackend as g, MaybePromise as gn, StateBackend as gt, CompositeBackend as h, LsResult as hn, createMemoryMiddleware as ht, LangSmithStartSandboxOptions as i, DeleteResult as in, CompletionCallbackOptions as it, findProjectRoot as j, isSandboxProtocol as jn, generalPurposeSubagentConfigSchema as jt, SettingsOptions as k, applyGrepMaxCount as kn, registerHarnessProfile as kt, LangSmithSandboxCreateOptions as l, FileInfo as ln, SkillMetadata$1 as lt, ContextHubBackend as m, GrepResult as mn, MemoryMiddlewareOptions as mt, LangSmithCaptureSnapshotOptions as n, BackendProtocol as nn, computeSummarizationDefaults as nt, adaptSandboxProtocol as o, ExecuteResponse as on, MAX_SKILL_DESCRIPTION_LENGTH as ot, LocalShellBackendOptions as p, GrepMatch as pn, skillsMetadataValue as pt, MergedDeepAgentState as q, TASK_SYSTEM_PROMPT as qt, LangSmithSnapshot as r, BackendRuntime as rn, createSummarizationMiddleware as rt, normalizeReadPagination as s, FileData as sn, MAX_SKILL_FILE_SIZE as st, createDeepAgent as t, BackendFactory as tn, isAsyncSubAgent as tt, LangSmithSandboxOptions as u, FileOperationError as un, SkillMetadataEntry as ut, StoreBackendContext as v, ReadResult as vn, CompiledSubAgent as vt, parseSkillMetadata as w, SandboxInfo as wn, SubAgent as wt, ListSkillsOptions as x, SandboxError as xn, ForkedSubAgent as xt, StoreBackendNamespaceFactory as y, SandboxBackendProtocol as yn, DEFAULT_GENERAL_PURPOSE_DESCRIPTION as yt, ExtractSubAgentMiddleware as z, HarnessProfileOptions as zt };
|
|
4478
|
+
//# sourceMappingURL=agent-DGkf2K7U.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-C9zNPKIz.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;
|
|
@@ -44,3 +44,4 @@ exports.parseHarnessProfileConfig = require_langsmith.parseHarnessProfileConfig;
|
|
|
44
44
|
exports.registerHarnessProfile = require_langsmith.registerHarnessProfile;
|
|
45
45
|
exports.resolveBackend = require_langsmith.resolveBackend;
|
|
46
46
|
exports.serializeProfile = require_langsmith.serializeProfile;
|
|
47
|
+
exports.skillsMetadataValue = require_langsmith.skillsMetadataValue;
|
package/dist/browser.d.cts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { $ as AsyncTaskStatus, $t as
|
|
1
|
+
import { $ as AsyncTaskStatus, $t as PermissionMode, An as isSandboxBackend, At as HarnessProfileConfigData, B as FlattenSubAgentMiddleware, Bt as REQUIRED_MIDDLEWARE_NAMES, Cn as SandboxGetOrCreateOptions, D as filesValue, Dn as StateAndStore, Dt as createSubAgentMiddleware, En as SandboxListResponse, F as CreateDeepAgentParams, Fn as BackendProtocolV1, Ft as EMPTY_HARNESS_PROFILE, G as InferSubagentByName, Gt as EXECUTION_SYSTEM_PROMPT, H as InferDeepAgentType, Ht as ConfigurationErrorCode, I as DeepAgent, In as SandboxBackendProtocolV1, It as createHarnessProfile, J as ResolveDeepAgentTypeConfig, Jt as FilesystemMiddlewareOptions, K as InferSubagentReactAgentType, Kt as SystemPromptConfig, L as DeepAgentTypeConfig, Lt as GeneralPurposeSubagentConfig, M as DeepAgentRunStream, Mn as resolveBackend, Mt as harnessProfileConfigSchema, N as SubagentRunStream, Nn as BackendProtocolV2, Nt as parseHarnessProfileConfig, On as WriteResult, Ot as getHarnessProfile, P as AnySubAgent, Pn as SandboxBackendProtocolV2, Pt as serializeProfile, Q as AsyncTask, Qt as FilesystemPermission, R as DefaultDeepAgentTypeConfig, Rt as HarnessProfile, Sn as SandboxErrorCode, St as GENERAL_PURPOSE_SUBAGENT, Tn as SandboxListOptions, Tt as SubAgentMiddlewareOptions, U as InferStructuredResponse, Ut as ASYNC_TASK_SYSTEM_PROMPT, V as InferDeepAgentSubagents, Vt as ConfigurationError, W as InferSubAgentMiddlewareStates, Wt as BASE_AGENT_PROMPT, X as AsyncSubAgent, Xt as createFilesystemMiddleware, Y as SupportedResponseFormat, Yt as FsToolName, Z as AsyncSubAgentMiddlewareOptions, Zt as FilesystemOperation, _ as StoreBackend, _n as ReadRawResult, _t as createPatchToolCallsMiddleware, a as adaptBackendProtocol, an as EditResult, at as createCompletionCallbackMiddleware, b as StoreBackendOptions, bn as SandboxDeleteOptions, bt as DEFAULT_SUBAGENT_PROMPT, c as LangSmithSandbox, cn as FileDownloadResponse, ct as MAX_SKILL_NAME_LENGTH, d as BaseSandbox, dn as FileUploadResponse, dt as SkillsMiddlewareOptions, en as AnyBackendProtocol, et as createAsyncSubAgentMiddleware, fn as GlobResult, ft as createSkillsMiddleware, gn as MaybePromise, gt as StateBackend, h as CompositeBackend, hn as LsResult, ht as createMemoryMiddleware, in as DeleteResult, it as CompletionCallbackOptions, jn as isSandboxProtocol, jt as generalPurposeSubagentConfigSchema, kt as registerHarnessProfile, l as LangSmithSandboxCreateOptions, ln as FileInfo, lt as SkillMetadata, m as ContextHubBackend, mn as GrepResult, mt as MemoryMiddlewareOptions, nn as BackendProtocol, nt as computeSummarizationDefaults, o as adaptSandboxProtocol, on as ExecuteResponse, ot as MAX_SKILL_DESCRIPTION_LENGTH, pn as GrepMatch, pt as skillsMetadataValue, q as MergedDeepAgentState, qt as TASK_SYSTEM_PROMPT, rn as BackendRuntime, rt as createSummarizationMiddleware, sn as FileData, st as MAX_SKILL_FILE_SIZE, t as createDeepAgent, tn as BackendFactory, tt as isAsyncSubAgent, u as LangSmithSandboxOptions, un as FileOperationError, ut as SkillMetadataEntry, v as StoreBackendContext, vn as ReadResult, vt as CompiledSubAgent, wn as SandboxInfo, wt as SubAgent, xn as SandboxError, xt as ForkedSubAgent, y as StoreBackendNamespaceFactory, yn as SandboxBackendProtocol, yt as DEFAULT_GENERAL_PURPOSE_DESCRIPTION, z as ExtractSubAgentMiddleware, zt as HarnessProfileOptions } from "./agent-CrQgOsbl.cjs";
|
|
2
2
|
import { CaptureSnapshotOptions as LangSmithCaptureSnapshotOptions, Snapshot as LangSmithSnapshot, StartSandboxOptions as LangSmithStartSandboxOptions } from "langsmith/experimental/sandbox";
|
|
3
|
-
export { ASYNC_TASK_SYSTEM_PROMPT, type AnyBackendProtocol, type AnySubAgent, type AsyncSubAgent, type AsyncSubAgentMiddlewareOptions, type AsyncTask, type AsyncTaskStatus, BASE_AGENT_PROMPT, type BackendFactory, type BackendProtocol, type BackendProtocolV1, type BackendProtocolV2, type BackendRuntime, BaseSandbox, type CompiledSubAgent, type CompletionCallbackOptions, CompositeBackend, ConfigurationError, type ConfigurationErrorCode, ContextHubBackend, type CreateDeepAgentParams, DEFAULT_GENERAL_PURPOSE_DESCRIPTION, DEFAULT_SUBAGENT_PROMPT, type DeepAgent, type DeepAgentRunStream, type DeepAgentTypeConfig, type DefaultDeepAgentTypeConfig, type DeleteResult, EMPTY_HARNESS_PROFILE, EXECUTION_SYSTEM_PROMPT, type EditResult, type ExecuteResponse, type ExtractSubAgentMiddleware, type FileData, type FileDownloadResponse, type FileInfo, type FileOperationError, type FileUploadResponse, type FilesystemMiddlewareOptions, type FilesystemOperation, type FilesystemPermission, type FlattenSubAgentMiddleware, type ForkedSubAgent, type FsToolName, GENERAL_PURPOSE_SUBAGENT, type GeneralPurposeSubagentConfig, type GlobResult, type GrepMatch, type GrepResult, type HarnessProfile, type HarnessProfileConfigData, type HarnessProfileOptions, type InferDeepAgentSubagents, type InferDeepAgentType, type InferStructuredResponse, type InferSubAgentMiddlewareStates, type InferSubagentByName, type InferSubagentReactAgentType, type LangSmithCaptureSnapshotOptions, LangSmithSandbox, type LangSmithSandboxCreateOptions, type LangSmithSandboxOptions, type LangSmithSnapshot, type LangSmithStartSandboxOptions, type LsResult, MAX_SKILL_DESCRIPTION_LENGTH, MAX_SKILL_FILE_SIZE, MAX_SKILL_NAME_LENGTH, type MaybePromise, type MemoryMiddlewareOptions, type MergedDeepAgentState, type PermissionMode, REQUIRED_MIDDLEWARE_NAMES, type ReadRawResult, type ReadResult, type ResolveDeepAgentTypeConfig, type SandboxBackendProtocol, type SandboxBackendProtocolV1, type SandboxBackendProtocolV2, type SandboxDeleteOptions, SandboxError, type SandboxErrorCode, type SandboxGetOrCreateOptions, type SandboxInfo, type SandboxListOptions, type SandboxListResponse, type SkillMetadata, type SkillsMiddlewareOptions, type StateAndStore, StateBackend, StoreBackend, type StoreBackendContext, type StoreBackendNamespaceFactory, type StoreBackendOptions, type SubAgent, type SubAgentMiddlewareOptions, type SubagentRunStream, type SupportedResponseFormat, type SystemPromptConfig, TASK_SYSTEM_PROMPT, type WriteResult, adaptBackendProtocol, adaptSandboxProtocol, computeSummarizationDefaults, createAsyncSubAgentMiddleware, createCompletionCallbackMiddleware, createDeepAgent, createFilesystemMiddleware, createHarnessProfile, createMemoryMiddleware, createPatchToolCallsMiddleware, createSkillsMiddleware, createSubAgentMiddleware, createSummarizationMiddleware, filesValue, generalPurposeSubagentConfigSchema, getHarnessProfile, harnessProfileConfigSchema, isAsyncSubAgent, isSandboxBackend, isSandboxProtocol, parseHarnessProfileConfig, registerHarnessProfile, resolveBackend, serializeProfile };
|
|
3
|
+
export { ASYNC_TASK_SYSTEM_PROMPT, type AnyBackendProtocol, type AnySubAgent, type AsyncSubAgent, type AsyncSubAgentMiddlewareOptions, type AsyncTask, type AsyncTaskStatus, BASE_AGENT_PROMPT, type BackendFactory, type BackendProtocol, type BackendProtocolV1, type BackendProtocolV2, type BackendRuntime, BaseSandbox, type CompiledSubAgent, type CompletionCallbackOptions, CompositeBackend, ConfigurationError, type ConfigurationErrorCode, ContextHubBackend, type CreateDeepAgentParams, DEFAULT_GENERAL_PURPOSE_DESCRIPTION, DEFAULT_SUBAGENT_PROMPT, type DeepAgent, type DeepAgentRunStream, type DeepAgentTypeConfig, type DefaultDeepAgentTypeConfig, type DeleteResult, EMPTY_HARNESS_PROFILE, EXECUTION_SYSTEM_PROMPT, type EditResult, type ExecuteResponse, type ExtractSubAgentMiddleware, type FileData, type FileDownloadResponse, type FileInfo, type FileOperationError, type FileUploadResponse, type FilesystemMiddlewareOptions, type FilesystemOperation, type FilesystemPermission, type FlattenSubAgentMiddleware, type 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 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, skillsMetadataValue };
|
package/dist/browser.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { $ as AsyncTaskStatus, $t as
|
|
1
|
+
import { $ as AsyncTaskStatus, $t as PermissionMode, An as isSandboxBackend, At as HarnessProfileConfigData, B as FlattenSubAgentMiddleware, Bt as REQUIRED_MIDDLEWARE_NAMES, Cn as SandboxGetOrCreateOptions, D as filesValue, Dn as StateAndStore, Dt as createSubAgentMiddleware, En as SandboxListResponse, F as CreateDeepAgentParams, Fn as BackendProtocolV1, Ft as EMPTY_HARNESS_PROFILE, G as InferSubagentByName, Gt as EXECUTION_SYSTEM_PROMPT, H as InferDeepAgentType, Ht as ConfigurationErrorCode, I as DeepAgent, In as SandboxBackendProtocolV1, It as createHarnessProfile, J as ResolveDeepAgentTypeConfig, Jt as FilesystemMiddlewareOptions, K as InferSubagentReactAgentType, Kt as SystemPromptConfig, L as DeepAgentTypeConfig, Lt as GeneralPurposeSubagentConfig, M as DeepAgentRunStream, Mn as resolveBackend, Mt as harnessProfileConfigSchema, N as SubagentRunStream, Nn as BackendProtocolV2, Nt as parseHarnessProfileConfig, On as WriteResult, Ot as getHarnessProfile, P as AnySubAgent, Pn as SandboxBackendProtocolV2, Pt as serializeProfile, Q as AsyncTask, Qt as FilesystemPermission, R as DefaultDeepAgentTypeConfig, Rt as HarnessProfile, Sn as SandboxErrorCode, St as GENERAL_PURPOSE_SUBAGENT, Tn as SandboxListOptions, Tt as SubAgentMiddlewareOptions, U as InferStructuredResponse, Ut as ASYNC_TASK_SYSTEM_PROMPT, V as InferDeepAgentSubagents, Vt as ConfigurationError, W as InferSubAgentMiddlewareStates, Wt as BASE_AGENT_PROMPT, X as AsyncSubAgent, Xt as createFilesystemMiddleware, Y as SupportedResponseFormat, Yt as FsToolName, Z as AsyncSubAgentMiddlewareOptions, Zt as FilesystemOperation, _ as StoreBackend, _n as ReadRawResult, _t as createPatchToolCallsMiddleware, a as adaptBackendProtocol, an as EditResult, at as createCompletionCallbackMiddleware, b as StoreBackendOptions, bn as SandboxDeleteOptions, bt as DEFAULT_SUBAGENT_PROMPT, c as LangSmithSandbox, cn as FileDownloadResponse, ct as MAX_SKILL_NAME_LENGTH, d as BaseSandbox, dn as FileUploadResponse, dt as SkillsMiddlewareOptions, en as AnyBackendProtocol, et as createAsyncSubAgentMiddleware, fn as GlobResult, ft as createSkillsMiddleware, gn as MaybePromise, gt as StateBackend, h as CompositeBackend, hn as LsResult, ht as createMemoryMiddleware, in as DeleteResult, it as CompletionCallbackOptions, jn as isSandboxProtocol, jt as generalPurposeSubagentConfigSchema, kt as registerHarnessProfile, l as LangSmithSandboxCreateOptions, ln as FileInfo, lt as SkillMetadata, m as ContextHubBackend, mn as GrepResult, mt as MemoryMiddlewareOptions, nn as BackendProtocol, nt as computeSummarizationDefaults, o as adaptSandboxProtocol, on as ExecuteResponse, ot as MAX_SKILL_DESCRIPTION_LENGTH, pn as GrepMatch, pt as skillsMetadataValue, q as MergedDeepAgentState, qt as TASK_SYSTEM_PROMPT, rn as BackendRuntime, rt as createSummarizationMiddleware, sn as FileData, st as MAX_SKILL_FILE_SIZE, t as createDeepAgent, tn as BackendFactory, tt as isAsyncSubAgent, u as LangSmithSandboxOptions, un as FileOperationError, ut as SkillMetadataEntry, v as StoreBackendContext, vn as ReadResult, vt as CompiledSubAgent, wn as SandboxInfo, wt as SubAgent, xn as SandboxError, xt as ForkedSubAgent, y as StoreBackendNamespaceFactory, yn as SandboxBackendProtocol, yt as DEFAULT_GENERAL_PURPOSE_DESCRIPTION, z as ExtractSubAgentMiddleware, zt as HarnessProfileOptions } from "./agent-DGkf2K7U.js";
|
|
2
2
|
import { CaptureSnapshotOptions as LangSmithCaptureSnapshotOptions, Snapshot as LangSmithSnapshot, StartSandboxOptions as LangSmithStartSandboxOptions } from "langsmith/experimental/sandbox";
|
|
3
|
-
export { ASYNC_TASK_SYSTEM_PROMPT, type AnyBackendProtocol, type AnySubAgent, type AsyncSubAgent, type AsyncSubAgentMiddlewareOptions, type AsyncTask, type AsyncTaskStatus, BASE_AGENT_PROMPT, type BackendFactory, type BackendProtocol, type BackendProtocolV1, type BackendProtocolV2, type BackendRuntime, BaseSandbox, type CompiledSubAgent, type CompletionCallbackOptions, CompositeBackend, ConfigurationError, type ConfigurationErrorCode, ContextHubBackend, type CreateDeepAgentParams, DEFAULT_GENERAL_PURPOSE_DESCRIPTION, DEFAULT_SUBAGENT_PROMPT, type DeepAgent, type DeepAgentRunStream, type DeepAgentTypeConfig, type DefaultDeepAgentTypeConfig, type DeleteResult, EMPTY_HARNESS_PROFILE, EXECUTION_SYSTEM_PROMPT, type EditResult, type ExecuteResponse, type ExtractSubAgentMiddleware, type FileData, type FileDownloadResponse, type FileInfo, type FileOperationError, type FileUploadResponse, type FilesystemMiddlewareOptions, type FilesystemOperation, type FilesystemPermission, type FlattenSubAgentMiddleware, type ForkedSubAgent, type FsToolName, GENERAL_PURPOSE_SUBAGENT, type GeneralPurposeSubagentConfig, type GlobResult, type GrepMatch, type GrepResult, type HarnessProfile, type HarnessProfileConfigData, type HarnessProfileOptions, type InferDeepAgentSubagents, type InferDeepAgentType, type InferStructuredResponse, type InferSubAgentMiddlewareStates, type InferSubagentByName, type InferSubagentReactAgentType, type LangSmithCaptureSnapshotOptions, LangSmithSandbox, type LangSmithSandboxCreateOptions, type LangSmithSandboxOptions, type LangSmithSnapshot, type LangSmithStartSandboxOptions, type LsResult, MAX_SKILL_DESCRIPTION_LENGTH, MAX_SKILL_FILE_SIZE, MAX_SKILL_NAME_LENGTH, type MaybePromise, type MemoryMiddlewareOptions, type MergedDeepAgentState, type PermissionMode, REQUIRED_MIDDLEWARE_NAMES, type ReadRawResult, type ReadResult, type ResolveDeepAgentTypeConfig, type SandboxBackendProtocol, type SandboxBackendProtocolV1, type SandboxBackendProtocolV2, type SandboxDeleteOptions, SandboxError, type SandboxErrorCode, type SandboxGetOrCreateOptions, type SandboxInfo, type SandboxListOptions, type SandboxListResponse, type SkillMetadata, type SkillsMiddlewareOptions, type StateAndStore, StateBackend, StoreBackend, type StoreBackendContext, type StoreBackendNamespaceFactory, type StoreBackendOptions, type SubAgent, type SubAgentMiddlewareOptions, type SubagentRunStream, type SupportedResponseFormat, type SystemPromptConfig, TASK_SYSTEM_PROMPT, type WriteResult, adaptBackendProtocol, adaptSandboxProtocol, computeSummarizationDefaults, createAsyncSubAgentMiddleware, createCompletionCallbackMiddleware, createDeepAgent, createFilesystemMiddleware, createHarnessProfile, createMemoryMiddleware, createPatchToolCallsMiddleware, createSkillsMiddleware, createSubAgentMiddleware, createSummarizationMiddleware, filesValue, generalPurposeSubagentConfigSchema, getHarnessProfile, harnessProfileConfigSchema, isAsyncSubAgent, isSandboxBackend, isSandboxProtocol, parseHarnessProfileConfig, registerHarnessProfile, resolveBackend, serializeProfile };
|
|
3
|
+
export { ASYNC_TASK_SYSTEM_PROMPT, type AnyBackendProtocol, type AnySubAgent, type AsyncSubAgent, type AsyncSubAgentMiddlewareOptions, type AsyncTask, type AsyncTaskStatus, BASE_AGENT_PROMPT, type BackendFactory, type BackendProtocol, type BackendProtocolV1, type BackendProtocolV2, type BackendRuntime, BaseSandbox, type CompiledSubAgent, type CompletionCallbackOptions, CompositeBackend, ConfigurationError, type ConfigurationErrorCode, ContextHubBackend, type CreateDeepAgentParams, DEFAULT_GENERAL_PURPOSE_DESCRIPTION, DEFAULT_SUBAGENT_PROMPT, type DeepAgent, type DeepAgentRunStream, type DeepAgentTypeConfig, type DefaultDeepAgentTypeConfig, type DeleteResult, EMPTY_HARNESS_PROFILE, EXECUTION_SYSTEM_PROMPT, type EditResult, type ExecuteResponse, type ExtractSubAgentMiddleware, type FileData, type FileDownloadResponse, type FileInfo, type FileOperationError, type FileUploadResponse, type FilesystemMiddlewareOptions, type FilesystemOperation, type FilesystemPermission, type FlattenSubAgentMiddleware, type 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 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, skillsMetadataValue };
|
package/dist/browser.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { A as
|
|
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 };
|
|
1
|
+
import { A as createPatchToolCallsMiddleware, B as CompositeBackend, C as MAX_SKILL_DESCRIPTION_LENGTH, D as skillsMetadataValue, E as createSkillsMiddleware, G as isSandboxProtocol, H as SandboxError, I as createSubAgentMiddleware, J as adaptSandboxProtocol, K as resolveBackend, L as computeSummarizationDefaults, M as DEFAULT_SUBAGENT_PROMPT, N as GENERAL_PURPOSE_SUBAGENT, O as createMemoryMiddleware, R as createSummarizationMiddleware, S as createCompletionCallbackMiddleware, T as MAX_SKILL_NAME_LENGTH, V as StateBackend, W as isSandboxBackend, _ 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 DEFAULT_GENERAL_PURPOSE_DESCRIPTION, k as filesValue, l as createDeepAgent, m as parseHarnessProfileConfig, n as BaseSandbox, o as BASE_AGENT_PROMPT, p as harnessProfileConfigSchema, q as adaptBackendProtocol, r as ContextHubBackend, s as EXECUTION_SYSTEM_PROMPT, t as LangSmithSandbox, u as getHarnessProfile, v as REQUIRED_MIDDLEWARE_NAMES, w as MAX_SKILL_FILE_SIZE, x as isAsyncSubAgent, y as ConfigurationError, z as createFilesystemMiddleware } from "./langsmith-3LzYb-m7.js";
|
|
2
|
+
export { ASYNC_TASK_SYSTEM_PROMPT, BASE_AGENT_PROMPT, BaseSandbox, CompositeBackend, ConfigurationError, ContextHubBackend, DEFAULT_GENERAL_PURPOSE_DESCRIPTION, DEFAULT_SUBAGENT_PROMPT, EMPTY_HARNESS_PROFILE, EXECUTION_SYSTEM_PROMPT, GENERAL_PURPOSE_SUBAGENT, LangSmithSandbox, MAX_SKILL_DESCRIPTION_LENGTH, MAX_SKILL_FILE_SIZE, MAX_SKILL_NAME_LENGTH, REQUIRED_MIDDLEWARE_NAMES, SandboxError, StateBackend, StoreBackend, TASK_SYSTEM_PROMPT, adaptBackendProtocol, adaptSandboxProtocol, computeSummarizationDefaults, createAsyncSubAgentMiddleware, createCompletionCallbackMiddleware, createDeepAgent, createFilesystemMiddleware, createHarnessProfile, createMemoryMiddleware, createPatchToolCallsMiddleware, createSkillsMiddleware, createSubAgentMiddleware, createSummarizationMiddleware, filesValue, generalPurposeSubagentConfigSchema, getHarnessProfile, harnessProfileConfigSchema, isAsyncSubAgent, isSandboxBackend, isSandboxProtocol, parseHarnessProfileConfig, registerHarnessProfile, resolveBackend, serializeProfile, 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-C9zNPKIz.cjs");
|
|
3
|
+
const require_src = require("./src-Nhlq1O0Y.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;
|
|
@@ -56,3 +56,4 @@ exports.parseSkillMetadata = require_src.parseSkillMetadata;
|
|
|
56
56
|
exports.registerHarnessProfile = require_langsmith.registerHarnessProfile;
|
|
57
57
|
exports.resolveBackend = require_langsmith.resolveBackend;
|
|
58
58
|
exports.serializeProfile = require_langsmith.serializeProfile;
|
|
59
|
+
exports.skillsMetadataValue = require_langsmith.skillsMetadataValue;
|
package/dist/index.d.cts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { $ as AsyncTaskStatus, $t as
|
|
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, 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, normalizeReadPagination, parseHarnessProfileConfig, parseSkillMetadata, registerHarnessProfile, resolveBackend, serializeProfile };
|
|
1
|
+
import { $ as AsyncTaskStatus, $t as PermissionMode, A as createSettings, An as isSandboxBackend, At as HarnessProfileConfigData, B as FlattenSubAgentMiddleware, Bt as REQUIRED_MIDDLEWARE_NAMES, C as listSkills, Cn as SandboxGetOrCreateOptions, Ct as SUBAGENT_RESPONSE_FORMAT_CONFIG_KEY, D as filesValue, Dn as StateAndStore, Dt as createSubAgentMiddleware, E as createAgentMemoryMiddleware, En as SandboxListResponse, Et as createSubAgent, F as CreateDeepAgentParams, Fn as BackendProtocolV1, Ft as EMPTY_HARNESS_PROFILE, G as InferSubagentByName, Gt as EXECUTION_SYSTEM_PROMPT, H as InferDeepAgentType, Ht as ConfigurationErrorCode, I as DeepAgent, In as SandboxBackendProtocolV1, It as createHarnessProfile, J as ResolveDeepAgentTypeConfig, Jt as FilesystemMiddlewareOptions, K as InferSubagentReactAgentType, Kt as SystemPromptConfig, L as DeepAgentTypeConfig, Lt as GeneralPurposeSubagentConfig, M as DeepAgentRunStream, Mn as resolveBackend, Mt as harnessProfileConfigSchema, N as SubagentRunStream, Nn as BackendProtocolV2, Nt as parseHarnessProfileConfig, O as Settings, On as WriteResult, Ot as getHarnessProfile, P as AnySubAgent, Pn as SandboxBackendProtocolV2, Pt as serializeProfile, Q as AsyncTask, Qt as FilesystemPermission, R as DefaultDeepAgentTypeConfig, Rt as HarnessProfile, S as SkillMetadata, Sn as SandboxErrorCode, St as GENERAL_PURPOSE_SUBAGENT, T as AgentMemoryMiddlewareOptions, Tn as SandboxListOptions, Tt as SubAgentMiddlewareOptions, U as InferStructuredResponse, Ut as ASYNC_TASK_SYSTEM_PROMPT, V as InferDeepAgentSubagents, Vt as ConfigurationError, W as InferSubAgentMiddlewareStates, Wt as BASE_AGENT_PROMPT, X as AsyncSubAgent, Xt as createFilesystemMiddleware, Y as SupportedResponseFormat, Yt as FsToolName, Z as AsyncSubAgentMiddlewareOptions, Zt as FilesystemOperation, _ as StoreBackend, _n as ReadRawResult, _t as createPatchToolCallsMiddleware, a as adaptBackendProtocol, an as EditResult, at as createCompletionCallbackMiddleware, b as StoreBackendOptions, bn as SandboxDeleteOptions, bt as DEFAULT_SUBAGENT_PROMPT, c as LangSmithSandbox, cn as FileDownloadResponse, ct as MAX_SKILL_NAME_LENGTH, d as BaseSandbox, dn as FileUploadResponse, dt as SkillsMiddlewareOptions, en as AnyBackendProtocol, et as createAsyncSubAgentMiddleware, f as LocalShellBackend, fn as GlobResult, ft as createSkillsMiddleware, g as FilesystemBackend, gn as MaybePromise, gt as StateBackend, h as CompositeBackend, hn as LsResult, ht as createMemoryMiddleware, i as LangSmithStartSandboxOptions, in as DeleteResult, it as CompletionCallbackOptions, j as findProjectRoot, jn as isSandboxProtocol, jt as generalPurposeSubagentConfigSchema, k as SettingsOptions, kn as applyGrepMaxCount, kt as registerHarnessProfile, l as LangSmithSandboxCreateOptions, ln as FileInfo, lt as SkillMetadata$1, m as ContextHubBackend, mn as GrepResult, mt as MemoryMiddlewareOptions, n as LangSmithCaptureSnapshotOptions, nn as BackendProtocol, nt as computeSummarizationDefaults, o as adaptSandboxProtocol, on as ExecuteResponse, ot as MAX_SKILL_DESCRIPTION_LENGTH, p as LocalShellBackendOptions, pn as GrepMatch, pt as skillsMetadataValue, q as MergedDeepAgentState, qt as TASK_SYSTEM_PROMPT, r as LangSmithSnapshot, rn as BackendRuntime, rt as createSummarizationMiddleware, s as normalizeReadPagination, sn as FileData, st as MAX_SKILL_FILE_SIZE, t as createDeepAgent, tn as BackendFactory, tt as isAsyncSubAgent, u as LangSmithSandboxOptions, un as FileOperationError, ut as SkillMetadataEntry, v as StoreBackendContext, vn as ReadResult, vt as CompiledSubAgent, w as parseSkillMetadata, wn as SandboxInfo, wt as SubAgent, x as ListSkillsOptions, xn as SandboxError, xt as ForkedSubAgent, y as StoreBackendNamespaceFactory, yn as SandboxBackendProtocol, yt as DEFAULT_GENERAL_PURPOSE_DESCRIPTION, z as ExtractSubAgentMiddleware, zt as HarnessProfileOptions } from "./agent-CrQgOsbl.cjs";
|
|
2
|
+
export { ASYNC_TASK_SYSTEM_PROMPT, type AgentMemoryMiddlewareOptions, type AnyBackendProtocol, type AnySubAgent, type AsyncSubAgent, type AsyncSubAgentMiddlewareOptions, type AsyncTask, type AsyncTaskStatus, BASE_AGENT_PROMPT, type BackendFactory, type BackendProtocol, type BackendProtocolV1, type BackendProtocolV2, type BackendRuntime, BaseSandbox, type CompiledSubAgent, type CompletionCallbackOptions, CompositeBackend, ConfigurationError, type ConfigurationErrorCode, ContextHubBackend, type CreateDeepAgentParams, DEFAULT_GENERAL_PURPOSE_DESCRIPTION, DEFAULT_SUBAGENT_PROMPT, type DeepAgent, type DeepAgentRunStream, type DeepAgentTypeConfig, type DefaultDeepAgentTypeConfig, type DeleteResult, EMPTY_HARNESS_PROFILE, EXECUTION_SYSTEM_PROMPT, type EditResult, type ExecuteResponse, type ExtractSubAgentMiddleware, type FileData, type FileDownloadResponse, type FileInfo, type FileOperationError, type FileUploadResponse, FilesystemBackend, type FilesystemMiddlewareOptions, type FilesystemOperation, type FilesystemPermission, type FlattenSubAgentMiddleware, type ForkedSubAgent, type FsToolName, GENERAL_PURPOSE_SUBAGENT, type GeneralPurposeSubagentConfig, type GlobResult, type GrepMatch, type GrepResult, type HarnessProfile, type HarnessProfileConfigData, type HarnessProfileOptions, type InferDeepAgentSubagents, type InferDeepAgentType, type InferStructuredResponse, type InferSubAgentMiddlewareStates, type InferSubagentByName, type InferSubagentReactAgentType, type LangSmithCaptureSnapshotOptions, LangSmithSandbox, type LangSmithSandboxCreateOptions, type LangSmithSandboxOptions, type LangSmithSnapshot, type LangSmithStartSandboxOptions, type ListSkillsOptions, type SkillMetadata as LoaderSkillMetadata, LocalShellBackend, type LocalShellBackendOptions, type LsResult, MAX_SKILL_DESCRIPTION_LENGTH, MAX_SKILL_FILE_SIZE, MAX_SKILL_NAME_LENGTH, 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 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, normalizeReadPagination, parseHarnessProfileConfig, parseSkillMetadata, registerHarnessProfile, resolveBackend, serializeProfile, skillsMetadataValue };
|