@langchain/anthropic 1.5.11 → 1.5.13
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/CHANGELOG.md +16 -0
- package/dist/chat_models.cjs +24 -13
- package/dist/chat_models.cjs.map +1 -1
- package/dist/chat_models.d.cts +12 -8
- package/dist/chat_models.d.cts.map +1 -1
- package/dist/chat_models.d.ts +12 -8
- package/dist/chat_models.d.ts.map +1 -1
- package/dist/chat_models.js +25 -14
- package/dist/chat_models.js.map +1 -1
- package/dist/profiles.cjs +87 -36
- package/dist/profiles.cjs.map +1 -1
- package/dist/profiles.js +87 -36
- package/dist/profiles.js.map +1 -1
- package/dist/tools/bash.d.cts +2 -3
- package/dist/tools/bash.d.cts.map +1 -1
- package/dist/tools/bash.d.ts +2 -3
- package/dist/tools/bash.d.ts.map +1 -1
- package/dist/tools/codeExecution.d.cts +2 -3
- package/dist/tools/codeExecution.d.cts.map +1 -1
- package/dist/tools/codeExecution.d.ts +2 -3
- package/dist/tools/codeExecution.d.ts.map +1 -1
- package/dist/tools/computer.d.cts +5 -6
- package/dist/tools/computer.d.cts.map +1 -1
- package/dist/tools/computer.d.ts +5 -6
- package/dist/tools/computer.d.ts.map +1 -1
- package/dist/tools/index.d.cts +2 -2
- package/dist/tools/index.d.cts.map +1 -1
- package/dist/tools/index.d.ts +2 -2
- package/dist/tools/index.d.ts.map +1 -1
- package/dist/tools/mcpToolset.d.cts +4 -5
- package/dist/tools/mcpToolset.d.cts.map +1 -1
- package/dist/tools/mcpToolset.d.ts +4 -5
- package/dist/tools/mcpToolset.d.ts.map +1 -1
- package/dist/tools/memory.d.cts +1 -2
- package/dist/tools/memory.d.cts.map +1 -1
- package/dist/tools/memory.d.ts +1 -2
- package/dist/tools/memory.d.ts.map +1 -1
- package/dist/tools/textEditor.d.cts +2 -3
- package/dist/tools/textEditor.d.cts.map +1 -1
- package/dist/tools/textEditor.d.ts +2 -3
- package/dist/tools/textEditor.d.ts.map +1 -1
- package/dist/tools/toolSearch.d.cts +3 -4
- package/dist/tools/toolSearch.d.cts.map +1 -1
- package/dist/tools/toolSearch.d.ts +3 -4
- package/dist/tools/toolSearch.d.ts.map +1 -1
- package/dist/tools/types.d.cts +68 -69
- package/dist/tools/types.d.cts.map +1 -1
- package/dist/tools/types.d.ts +68 -69
- package/dist/tools/types.d.ts.map +1 -1
- package/dist/tools/webFetch.d.cts +2 -3
- package/dist/tools/webFetch.d.cts.map +1 -1
- package/dist/tools/webFetch.d.ts +2 -3
- package/dist/tools/webFetch.d.ts.map +1 -1
- package/dist/tools/webSearch.d.cts +2 -3
- package/dist/tools/webSearch.d.cts.map +1 -1
- package/dist/tools/webSearch.d.ts +2 -3
- package/dist/tools/webSearch.d.ts.map +1 -1
- package/dist/types.d.cts +27 -28
- package/dist/types.d.cts.map +1 -1
- package/dist/types.d.ts +27 -28
- package/dist/types.d.ts.map +1 -1
- package/dist/utils/message_inputs.cjs +47 -10
- package/dist/utils/message_inputs.cjs.map +1 -1
- package/dist/utils/message_inputs.js +47 -11
- package/dist/utils/message_inputs.js.map +1 -1
- package/dist/utils/prompts.d.cts +1 -2
- package/dist/utils/prompts.d.cts.map +1 -1
- package/dist/utils/prompts.d.ts +1 -2
- package/dist/utils/prompts.d.ts.map +1 -1
- package/package.json +7 -7
package/dist/tools/bash.d.ts
CHANGED
|
@@ -4,7 +4,7 @@ import { DynamicStructuredTool } from "@langchain/core/tools";
|
|
|
4
4
|
/**
|
|
5
5
|
* Options for the bash tool.
|
|
6
6
|
*/
|
|
7
|
-
interface Bash20250124Options {
|
|
7
|
+
export interface Bash20250124Options {
|
|
8
8
|
/**
|
|
9
9
|
* Optional execute function that handles bash command execution.
|
|
10
10
|
* This function receives the command input and should return the result
|
|
@@ -82,7 +82,6 @@ interface Bash20250124Options {
|
|
|
82
82
|
*
|
|
83
83
|
* @see https://docs.anthropic.com/en/docs/agents-and-tools/tool-use/bash-tool
|
|
84
84
|
*/
|
|
85
|
-
declare function bash_20250124(options?: Bash20250124Options): DynamicStructuredTool<typeof Bash20250124CommandSchema, Bash20250124Command, unknown, string>;
|
|
85
|
+
export declare function bash_20250124(options?: Bash20250124Options): DynamicStructuredTool<typeof Bash20250124CommandSchema, Bash20250124Command, unknown, string>;
|
|
86
86
|
//#endregion
|
|
87
|
-
export { Bash20250124Options, bash_20250124 };
|
|
88
87
|
//# sourceMappingURL=bash.d.ts.map
|
package/dist/tools/bash.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"bash.d.ts","names":[],"sources":["../../src/tools/bash.ts"],"mappings":";;;;;;
|
|
1
|
+
{"version":3,"file":"bash.d.ts","names":[],"sources":["../../src/tools/bash.ts"],"mappings":";;;;;;iBAYiB;;;;;;EAMf,WAAW,MAAM,iCAAiC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;wBAyEpC,cAAc,UAAU,sBAsBnB,6BACV,2BACP"}
|
|
@@ -4,7 +4,7 @@ import { ServerTool } from "@langchain/core/tools";
|
|
|
4
4
|
/**
|
|
5
5
|
* Options for the code execution tool.
|
|
6
6
|
*/
|
|
7
|
-
interface CodeExecution20250825Options {
|
|
7
|
+
export interface CodeExecution20250825Options {
|
|
8
8
|
/**
|
|
9
9
|
* Create a cache control breakpoint at this content block.
|
|
10
10
|
*/
|
|
@@ -67,7 +67,6 @@ interface CodeExecution20250825Options {
|
|
|
67
67
|
* );
|
|
68
68
|
* ```
|
|
69
69
|
*/
|
|
70
|
-
declare function codeExecution_20250825(options?: CodeExecution20250825Options): ServerTool;
|
|
70
|
+
export declare function codeExecution_20250825(options?: CodeExecution20250825Options): ServerTool;
|
|
71
71
|
//#endregion
|
|
72
|
-
export { CodeExecution20250825Options, codeExecution_20250825 };
|
|
73
72
|
//# sourceMappingURL=codeExecution.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"codeExecution.d.cts","names":[],"sources":["../../src/tools/codeExecution.ts"],"mappings":";;;;;;
|
|
1
|
+
{"version":3,"file":"codeExecution.d.cts","names":["Anthropic"],"sources":["../../src/tools/codeExecution.ts"],"mappings":";;;;;;iBAMiB;;;;EAIf,eAAeA,YAAU,KAAK;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;wBA4DhB,uBACd,UAAU,+BACT"}
|
|
@@ -4,7 +4,7 @@ import { ServerTool } from "@langchain/core/tools";
|
|
|
4
4
|
/**
|
|
5
5
|
* Options for the code execution tool.
|
|
6
6
|
*/
|
|
7
|
-
interface CodeExecution20250825Options {
|
|
7
|
+
export interface CodeExecution20250825Options {
|
|
8
8
|
/**
|
|
9
9
|
* Create a cache control breakpoint at this content block.
|
|
10
10
|
*/
|
|
@@ -67,7 +67,6 @@ interface CodeExecution20250825Options {
|
|
|
67
67
|
* );
|
|
68
68
|
* ```
|
|
69
69
|
*/
|
|
70
|
-
declare function codeExecution_20250825(options?: CodeExecution20250825Options): ServerTool;
|
|
70
|
+
export declare function codeExecution_20250825(options?: CodeExecution20250825Options): ServerTool;
|
|
71
71
|
//#endregion
|
|
72
|
-
export { CodeExecution20250825Options, codeExecution_20250825 };
|
|
73
72
|
//# sourceMappingURL=codeExecution.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"codeExecution.d.ts","names":[],"sources":["../../src/tools/codeExecution.ts"],"mappings":";;;;;;
|
|
1
|
+
{"version":3,"file":"codeExecution.d.ts","names":["Anthropic"],"sources":["../../src/tools/codeExecution.ts"],"mappings":";;;;;;iBAMiB;;;;EAIf,eAAeA,YAAU,KAAK;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;wBA4DhB,uBACd,UAAU,+BACT"}
|
|
@@ -2,14 +2,14 @@ import { Computer20250124Action, Computer20250124ActionSchema, Computer20251124A
|
|
|
2
2
|
import { ToolMessage } from "@langchain/core/messages";
|
|
3
3
|
import { DynamicStructuredTool, ToolRuntime } from "@langchain/core/tools";
|
|
4
4
|
//#region src/tools/computer.d.ts
|
|
5
|
-
type ComputerUseReturnType = string | Promise<string> | ToolMessage<any> | Promise<ToolMessage<any>>;
|
|
5
|
+
export type ComputerUseReturnType = string | Promise<string> | ToolMessage<any> | Promise<ToolMessage<any>>;
|
|
6
6
|
/**
|
|
7
7
|
* Options for the computer use tool (Claude Opus 4.5 only version).
|
|
8
8
|
*
|
|
9
9
|
* @template TState - The type of the state schema (when used with `ReactAgent`)
|
|
10
10
|
* @template TContext - The type of the context schema (when used with `ReactAgent`)
|
|
11
11
|
*/
|
|
12
|
-
interface Computer20251124Options<TState = any, TContext = any> {
|
|
12
|
+
export interface Computer20251124Options<TState = any, TContext = any> {
|
|
13
13
|
/**
|
|
14
14
|
* The width of the display in pixels.
|
|
15
15
|
*/
|
|
@@ -91,13 +91,13 @@ interface Computer20251124Options<TState = any, TContext = any> {
|
|
|
91
91
|
* @param options - Configuration options for the computer use tool
|
|
92
92
|
* @returns The computer use tool object that can be passed to `bindTools`
|
|
93
93
|
*/
|
|
94
|
-
declare function computer_20251124(options: Computer20251124Options): DynamicStructuredTool<typeof Computer20251124ActionSchema, Computer20251124Action, any, ToolMessage<any>>;
|
|
94
|
+
export declare function computer_20251124(options: Computer20251124Options): DynamicStructuredTool<typeof Computer20251124ActionSchema, Computer20251124Action, any, ToolMessage<any>>;
|
|
95
95
|
/**
|
|
96
96
|
* Options for the computer use tool.
|
|
97
97
|
*
|
|
98
98
|
* Supported models: Claude Sonnet 4.5, Haiku 4.5, Opus 4.1, Sonnet 4, Opus 4, and Sonnet 3.7 versions.
|
|
99
99
|
*/
|
|
100
|
-
interface Computer20250124Options<TState = any, TContext = any> {
|
|
100
|
+
export interface Computer20250124Options<TState = any, TContext = any> {
|
|
101
101
|
/**
|
|
102
102
|
* The width of the display in pixels.
|
|
103
103
|
*/
|
|
@@ -173,7 +173,6 @@ interface Computer20250124Options<TState = any, TContext = any> {
|
|
|
173
173
|
* @param options - Configuration options for the computer use tool
|
|
174
174
|
* @returns The computer use tool object that can be passed to `bindTools`
|
|
175
175
|
*/
|
|
176
|
-
declare function computer_20250124(options: Computer20250124Options): DynamicStructuredTool<typeof Computer20250124ActionSchema, Computer20250124Action, any, ComputerUseReturnType>;
|
|
176
|
+
export declare function computer_20250124(options: Computer20250124Options): DynamicStructuredTool<typeof Computer20250124ActionSchema, Computer20250124Action, any, ComputerUseReturnType>;
|
|
177
177
|
//#endregion
|
|
178
|
-
export { Computer20250124Options, Computer20251124Options, ComputerUseReturnType, computer_20250124, computer_20251124 };
|
|
179
178
|
//# sourceMappingURL=computer.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"computer.d.cts","names":[],"sources":["../../src/tools/computer.ts"],"mappings":";;;;
|
|
1
|
+
{"version":3,"file":"computer.d.cts","names":[],"sources":["../../src/tools/computer.ts"],"mappings":";;;;YAiBY,iCAER,kBACA,mBACA,QAAQ;;;;;;;iBAQK,wBAAwB,cAAc;;;;EAIrD;;;;EAIA;;;;EAIA;;;;;;EAMA;;;;;;EAMA,WACE,MAAM,wBACN,SAAS,YAAY,QAAQ,cAC1B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;wBA2DS,kBAAkB,SAAS,0BA6BlB,6BACd,8BACP,6BAEA;;;;;;iBASa,wBAAwB,cAAc;;;;EAIrD;;;;EAIA;;;;EAIA;;;;;;EAMA,WACE,MAAM,wBACN,SAAS,YAAY,QAAQ,cAC1B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;wBA2DS,kBAAkB,SAAS,0BA2BlB,6BACd,8BACP,6BAEA"}
|
package/dist/tools/computer.d.ts
CHANGED
|
@@ -2,14 +2,14 @@ import { Computer20250124Action, Computer20250124ActionSchema, Computer20251124A
|
|
|
2
2
|
import { ToolMessage } from "@langchain/core/messages";
|
|
3
3
|
import { DynamicStructuredTool, ToolRuntime } from "@langchain/core/tools";
|
|
4
4
|
//#region src/tools/computer.d.ts
|
|
5
|
-
type ComputerUseReturnType = string | Promise<string> | ToolMessage<any> | Promise<ToolMessage<any>>;
|
|
5
|
+
export type ComputerUseReturnType = string | Promise<string> | ToolMessage<any> | Promise<ToolMessage<any>>;
|
|
6
6
|
/**
|
|
7
7
|
* Options for the computer use tool (Claude Opus 4.5 only version).
|
|
8
8
|
*
|
|
9
9
|
* @template TState - The type of the state schema (when used with `ReactAgent`)
|
|
10
10
|
* @template TContext - The type of the context schema (when used with `ReactAgent`)
|
|
11
11
|
*/
|
|
12
|
-
interface Computer20251124Options<TState = any, TContext = any> {
|
|
12
|
+
export interface Computer20251124Options<TState = any, TContext = any> {
|
|
13
13
|
/**
|
|
14
14
|
* The width of the display in pixels.
|
|
15
15
|
*/
|
|
@@ -91,13 +91,13 @@ interface Computer20251124Options<TState = any, TContext = any> {
|
|
|
91
91
|
* @param options - Configuration options for the computer use tool
|
|
92
92
|
* @returns The computer use tool object that can be passed to `bindTools`
|
|
93
93
|
*/
|
|
94
|
-
declare function computer_20251124(options: Computer20251124Options): DynamicStructuredTool<typeof Computer20251124ActionSchema, Computer20251124Action, any, ToolMessage<any>>;
|
|
94
|
+
export declare function computer_20251124(options: Computer20251124Options): DynamicStructuredTool<typeof Computer20251124ActionSchema, Computer20251124Action, any, ToolMessage<any>>;
|
|
95
95
|
/**
|
|
96
96
|
* Options for the computer use tool.
|
|
97
97
|
*
|
|
98
98
|
* Supported models: Claude Sonnet 4.5, Haiku 4.5, Opus 4.1, Sonnet 4, Opus 4, and Sonnet 3.7 versions.
|
|
99
99
|
*/
|
|
100
|
-
interface Computer20250124Options<TState = any, TContext = any> {
|
|
100
|
+
export interface Computer20250124Options<TState = any, TContext = any> {
|
|
101
101
|
/**
|
|
102
102
|
* The width of the display in pixels.
|
|
103
103
|
*/
|
|
@@ -173,7 +173,6 @@ interface Computer20250124Options<TState = any, TContext = any> {
|
|
|
173
173
|
* @param options - Configuration options for the computer use tool
|
|
174
174
|
* @returns The computer use tool object that can be passed to `bindTools`
|
|
175
175
|
*/
|
|
176
|
-
declare function computer_20250124(options: Computer20250124Options): DynamicStructuredTool<typeof Computer20250124ActionSchema, Computer20250124Action, any, ComputerUseReturnType>;
|
|
176
|
+
export declare function computer_20250124(options: Computer20250124Options): DynamicStructuredTool<typeof Computer20250124ActionSchema, Computer20250124Action, any, ComputerUseReturnType>;
|
|
177
177
|
//#endregion
|
|
178
|
-
export { Computer20250124Options, Computer20251124Options, ComputerUseReturnType, computer_20250124, computer_20251124 };
|
|
179
178
|
//# sourceMappingURL=computer.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"computer.d.ts","names":[],"sources":["../../src/tools/computer.ts"],"mappings":";;;;
|
|
1
|
+
{"version":3,"file":"computer.d.ts","names":[],"sources":["../../src/tools/computer.ts"],"mappings":";;;;YAiBY,iCAER,kBACA,mBACA,QAAQ;;;;;;;iBAQK,wBAAwB,cAAc;;;;EAIrD;;;;EAIA;;;;EAIA;;;;;;EAMA;;;;;;EAMA,WACE,MAAM,wBACN,SAAS,YAAY,QAAQ,cAC1B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;wBA2DS,kBAAkB,SAAS,0BA6BlB,6BACd,8BACP,6BAEA;;;;;;iBASa,wBAAwB,cAAc;;;;EAIrD;;;;EAIA;;;;EAIA;;;;;;EAMA,WACE,MAAM,wBACN,SAAS,YAAY,QAAQ,cAC1B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;wBA2DS,kBAAkB,SAAS,0BA2BlB,6BACd,8BACP,6BAEA"}
|
package/dist/tools/index.d.cts
CHANGED
|
@@ -9,7 +9,7 @@ import { CodeExecution20250825Options, codeExecution_20250825 } from "./codeExec
|
|
|
9
9
|
import { Bash20250124Options, bash_20250124 } from "./bash.cjs";
|
|
10
10
|
import { MCPToolsetOptions, mcpToolset_20251120 } from "./mcpToolset.cjs";
|
|
11
11
|
//#region src/tools/index.d.ts
|
|
12
|
-
declare const tools: {
|
|
12
|
+
export declare const tools: {
|
|
13
13
|
memory_20250818: typeof memory_20250818;
|
|
14
14
|
webSearch_20250305: typeof webSearch_20250305;
|
|
15
15
|
webFetch_20250910: typeof webFetch_20250910;
|
|
@@ -23,5 +23,5 @@ declare const tools: {
|
|
|
23
23
|
mcpToolset_20251120: typeof mcpToolset_20251120;
|
|
24
24
|
};
|
|
25
25
|
//#endregion
|
|
26
|
-
export {
|
|
26
|
+
export type { Bash20250124Command, Bash20250124CommandSchema, Bash20250124ExecuteCommand, Bash20250124ExecuteCommandSchema, Bash20250124Options, Bash20250124RestartCommand, Bash20250124RestartCommandSchema, CodeExecution20250825Options, Computer20250124Action, Computer20250124ActionSchema, Computer20250124Options, Computer20251124Action, Computer20251124ActionSchema, Computer20251124Options, ComputerDoubleClickAction, ComputerDoubleClickActionSchema, ComputerHoldKeyAction, ComputerHoldKeyActionSchema, ComputerKeyAction, ComputerKeyActionSchema, ComputerLeftClickAction, ComputerLeftClickActionSchema, ComputerLeftClickDragAction, ComputerLeftClickDragActionSchema, ComputerLeftMouseDownAction, ComputerLeftMouseDownActionSchema, ComputerLeftMouseUpAction, ComputerLeftMouseUpActionSchema, ComputerMiddleClickAction, ComputerMiddleClickActionSchema, ComputerMouseMoveAction, ComputerMouseMoveActionSchema, ComputerRightClickAction, ComputerRightClickActionSchema, ComputerScreenshotAction, ComputerScreenshotActionSchema, ComputerScrollAction, ComputerScrollActionSchema, ComputerTripleClickAction, ComputerTripleClickActionSchema, ComputerTypeAction, ComputerTypeActionSchema, ComputerUseReturnType, ComputerWaitAction, ComputerWaitActionSchema, ComputerZoomAction, ComputerZoomActionSchema, MCPToolsetOptions, Memory20250818Command, Memory20250818CommandSchema, Memory20250818CreateCommand, Memory20250818CreateCommandSchema, Memory20250818DeleteCommand, Memory20250818DeleteCommandSchema, Memory20250818InsertCommand, Memory20250818InsertCommandSchema, Memory20250818RenameCommand, Memory20250818RenameCommandSchema, Memory20250818StrReplaceCommand, Memory20250818StrReplaceCommandSchema, Memory20250818ViewCommand, Memory20250818ViewCommandSchema, MemoryTool20250818, MemoryTool20250818Options, TextEditor20250728Command, TextEditor20250728CommandSchema, TextEditor20250728CreateCommand, TextEditor20250728CreateCommandSchema, TextEditor20250728InsertCommand, TextEditor20250728InsertCommandSchema, TextEditor20250728Options, TextEditor20250728StrReplaceCommand, TextEditor20250728StrReplaceCommandSchema, TextEditor20250728ViewCommand, TextEditor20250728ViewCommandSchema, ToolSearchOptions, WebFetch20250910Options, WebSearch20250305Options };
|
|
27
27
|
//# sourceMappingURL=index.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.cts","names":[],"sources":["../../src/tools/index.ts"],"mappings":";;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"index.d.cts","names":[],"sources":["../../src/tools/index.ts"],"mappings":";;;;;;;;;;;qBA6Ba"}
|
package/dist/tools/index.d.ts
CHANGED
|
@@ -9,7 +9,7 @@ import { CodeExecution20250825Options, codeExecution_20250825 } from "./codeExec
|
|
|
9
9
|
import { Bash20250124Options, bash_20250124 } from "./bash.js";
|
|
10
10
|
import { MCPToolsetOptions, mcpToolset_20251120 } from "./mcpToolset.js";
|
|
11
11
|
//#region src/tools/index.d.ts
|
|
12
|
-
declare const tools: {
|
|
12
|
+
export declare const tools: {
|
|
13
13
|
memory_20250818: typeof memory_20250818;
|
|
14
14
|
webSearch_20250305: typeof webSearch_20250305;
|
|
15
15
|
webFetch_20250910: typeof webFetch_20250910;
|
|
@@ -23,5 +23,5 @@ declare const tools: {
|
|
|
23
23
|
mcpToolset_20251120: typeof mcpToolset_20251120;
|
|
24
24
|
};
|
|
25
25
|
//#endregion
|
|
26
|
-
export {
|
|
26
|
+
export type { Bash20250124Command, Bash20250124CommandSchema, Bash20250124ExecuteCommand, Bash20250124ExecuteCommandSchema, Bash20250124Options, Bash20250124RestartCommand, Bash20250124RestartCommandSchema, CodeExecution20250825Options, Computer20250124Action, Computer20250124ActionSchema, Computer20250124Options, Computer20251124Action, Computer20251124ActionSchema, Computer20251124Options, ComputerDoubleClickAction, ComputerDoubleClickActionSchema, ComputerHoldKeyAction, ComputerHoldKeyActionSchema, ComputerKeyAction, ComputerKeyActionSchema, ComputerLeftClickAction, ComputerLeftClickActionSchema, ComputerLeftClickDragAction, ComputerLeftClickDragActionSchema, ComputerLeftMouseDownAction, ComputerLeftMouseDownActionSchema, ComputerLeftMouseUpAction, ComputerLeftMouseUpActionSchema, ComputerMiddleClickAction, ComputerMiddleClickActionSchema, ComputerMouseMoveAction, ComputerMouseMoveActionSchema, ComputerRightClickAction, ComputerRightClickActionSchema, ComputerScreenshotAction, ComputerScreenshotActionSchema, ComputerScrollAction, ComputerScrollActionSchema, ComputerTripleClickAction, ComputerTripleClickActionSchema, ComputerTypeAction, ComputerTypeActionSchema, ComputerUseReturnType, ComputerWaitAction, ComputerWaitActionSchema, ComputerZoomAction, ComputerZoomActionSchema, MCPToolsetOptions, Memory20250818Command, Memory20250818CommandSchema, Memory20250818CreateCommand, Memory20250818CreateCommandSchema, Memory20250818DeleteCommand, Memory20250818DeleteCommandSchema, Memory20250818InsertCommand, Memory20250818InsertCommandSchema, Memory20250818RenameCommand, Memory20250818RenameCommandSchema, Memory20250818StrReplaceCommand, Memory20250818StrReplaceCommandSchema, Memory20250818ViewCommand, Memory20250818ViewCommandSchema, MemoryTool20250818, MemoryTool20250818Options, TextEditor20250728Command, TextEditor20250728CommandSchema, TextEditor20250728CreateCommand, TextEditor20250728CreateCommandSchema, TextEditor20250728InsertCommand, TextEditor20250728InsertCommandSchema, TextEditor20250728Options, TextEditor20250728StrReplaceCommand, TextEditor20250728StrReplaceCommandSchema, TextEditor20250728ViewCommand, TextEditor20250728ViewCommandSchema, ToolSearchOptions, WebFetch20250910Options, WebSearch20250305Options };
|
|
27
27
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","names":[],"sources":["../../src/tools/index.ts"],"mappings":";;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"index.d.ts","names":[],"sources":["../../src/tools/index.ts"],"mappings":";;;;;;;;;;;qBA6Ba"}
|
|
@@ -4,7 +4,7 @@ import { ServerTool } from "@langchain/core/tools";
|
|
|
4
4
|
/**
|
|
5
5
|
* Configuration for a single tool in the MCP toolset.
|
|
6
6
|
*/
|
|
7
|
-
interface MCPToolConfig {
|
|
7
|
+
export interface MCPToolConfig {
|
|
8
8
|
/**
|
|
9
9
|
* Whether this tool is enabled.
|
|
10
10
|
* @default true
|
|
@@ -21,11 +21,11 @@ interface MCPToolConfig {
|
|
|
21
21
|
* Per-tool configuration overrides.
|
|
22
22
|
* Keys are tool names, values are configuration objects.
|
|
23
23
|
*/
|
|
24
|
-
type MCPToolConfigs = Record<string, MCPToolConfig>;
|
|
24
|
+
export type MCPToolConfigs = Record<string, MCPToolConfig>;
|
|
25
25
|
/**
|
|
26
26
|
* Options for creating an MCP toolset.
|
|
27
27
|
*/
|
|
28
|
-
interface MCPToolsetOptions {
|
|
28
|
+
export interface MCPToolsetOptions {
|
|
29
29
|
/**
|
|
30
30
|
* Must match a server name defined in the `mcp_servers` array in call options.
|
|
31
31
|
*/
|
|
@@ -133,7 +133,6 @@ interface MCPToolsetOptions {
|
|
|
133
133
|
* });
|
|
134
134
|
* ```
|
|
135
135
|
*/
|
|
136
|
-
declare function mcpToolset_20251120(options: MCPToolsetOptions): ServerTool;
|
|
136
|
+
export declare function mcpToolset_20251120(options: MCPToolsetOptions): ServerTool;
|
|
137
137
|
//#endregion
|
|
138
|
-
export { MCPToolConfig, MCPToolConfigs, MCPToolsetOptions, mcpToolset_20251120 };
|
|
139
138
|
//# sourceMappingURL=mcpToolset.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"mcpToolset.d.cts","names":[],"sources":["../../src/tools/mcpToolset.ts"],"mappings":";;;;;;
|
|
1
|
+
{"version":3,"file":"mcpToolset.d.cts","names":["Anthropic"],"sources":["../../src/tools/mcpToolset.ts"],"mappings":";;;;;;iBAMiB;;;;;EAKf;;;;;;EAMA;;;;;;YAOU,iBAAiB,eAAe;;;;iBAK3B;;;;EAIf;;;;;EAKA,gBAAgB;;;;;EAKhB,UAAU;;;;EAIV,eAAeA,YAAU,KAAK;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;wBA2FhB,oBAAoB,SAAS,oBAAoB"}
|
|
@@ -4,7 +4,7 @@ import { ServerTool } from "@langchain/core/tools";
|
|
|
4
4
|
/**
|
|
5
5
|
* Configuration for a single tool in the MCP toolset.
|
|
6
6
|
*/
|
|
7
|
-
interface MCPToolConfig {
|
|
7
|
+
export interface MCPToolConfig {
|
|
8
8
|
/**
|
|
9
9
|
* Whether this tool is enabled.
|
|
10
10
|
* @default true
|
|
@@ -21,11 +21,11 @@ interface MCPToolConfig {
|
|
|
21
21
|
* Per-tool configuration overrides.
|
|
22
22
|
* Keys are tool names, values are configuration objects.
|
|
23
23
|
*/
|
|
24
|
-
type MCPToolConfigs = Record<string, MCPToolConfig>;
|
|
24
|
+
export type MCPToolConfigs = Record<string, MCPToolConfig>;
|
|
25
25
|
/**
|
|
26
26
|
* Options for creating an MCP toolset.
|
|
27
27
|
*/
|
|
28
|
-
interface MCPToolsetOptions {
|
|
28
|
+
export interface MCPToolsetOptions {
|
|
29
29
|
/**
|
|
30
30
|
* Must match a server name defined in the `mcp_servers` array in call options.
|
|
31
31
|
*/
|
|
@@ -133,7 +133,6 @@ interface MCPToolsetOptions {
|
|
|
133
133
|
* });
|
|
134
134
|
* ```
|
|
135
135
|
*/
|
|
136
|
-
declare function mcpToolset_20251120(options: MCPToolsetOptions): ServerTool;
|
|
136
|
+
export declare function mcpToolset_20251120(options: MCPToolsetOptions): ServerTool;
|
|
137
137
|
//#endregion
|
|
138
|
-
export { MCPToolConfig, MCPToolConfigs, MCPToolsetOptions, mcpToolset_20251120 };
|
|
139
138
|
//# sourceMappingURL=mcpToolset.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"mcpToolset.d.ts","names":[],"sources":["../../src/tools/mcpToolset.ts"],"mappings":";;;;;;
|
|
1
|
+
{"version":3,"file":"mcpToolset.d.ts","names":["Anthropic"],"sources":["../../src/tools/mcpToolset.ts"],"mappings":";;;;;;iBAMiB;;;;;EAKf;;;;;;EAMA;;;;;;YAOU,iBAAiB,eAAe;;;;iBAK3B;;;;EAIf;;;;;EAKA,gBAAgB;;;;;EAKhB,UAAU;;;;EAIV,eAAeA,YAAU,KAAK;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;wBA2FhB,oBAAoB,SAAS,oBAAoB"}
|
package/dist/tools/memory.d.cts
CHANGED
|
@@ -34,7 +34,6 @@ import { DynamicStructuredTool } from "@langchain/core/tools";
|
|
|
34
34
|
*
|
|
35
35
|
* @see https://docs.anthropic.com/en/docs/agents-and-tools/tool-use/memory-tool
|
|
36
36
|
*/
|
|
37
|
-
declare function memory_20250818(options?: MemoryTool20250818Options): DynamicStructuredTool<typeof Memory20250818CommandSchema, Memory20250818Command, unknown, string | Promise<string>>;
|
|
37
|
+
export declare function memory_20250818(options?: MemoryTool20250818Options): DynamicStructuredTool<typeof Memory20250818CommandSchema, Memory20250818Command, unknown, string | Promise<string>>;
|
|
38
38
|
//#endregion
|
|
39
|
-
export { memory_20250818 };
|
|
40
39
|
//# sourceMappingURL=memory.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"memory.d.cts","names":[],"sources":["../../src/tools/memory.ts"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"memory.d.cts","names":[],"sources":["../../src/tools/memory.ts"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;wBA2CgB,gBAAgB,UAAU,4BAoBnB,6BACZ,6BACP,yCAES"}
|
package/dist/tools/memory.d.ts
CHANGED
|
@@ -34,7 +34,6 @@ import { DynamicStructuredTool } from "@langchain/core/tools";
|
|
|
34
34
|
*
|
|
35
35
|
* @see https://docs.anthropic.com/en/docs/agents-and-tools/tool-use/memory-tool
|
|
36
36
|
*/
|
|
37
|
-
declare function memory_20250818(options?: MemoryTool20250818Options): DynamicStructuredTool<typeof Memory20250818CommandSchema, Memory20250818Command, unknown, string | Promise<string>>;
|
|
37
|
+
export declare function memory_20250818(options?: MemoryTool20250818Options): DynamicStructuredTool<typeof Memory20250818CommandSchema, Memory20250818Command, unknown, string | Promise<string>>;
|
|
38
38
|
//#endregion
|
|
39
|
-
export { memory_20250818 };
|
|
40
39
|
//# sourceMappingURL=memory.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"memory.d.ts","names":[],"sources":["../../src/tools/memory.ts"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"memory.d.ts","names":[],"sources":["../../src/tools/memory.ts"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;wBA2CgB,gBAAgB,UAAU,4BAoBnB,6BACZ,6BACP,yCAES"}
|
|
@@ -4,7 +4,7 @@ import { DynamicStructuredTool } from "@langchain/core/tools";
|
|
|
4
4
|
/**
|
|
5
5
|
* Options for the text editor tool (Claude 4.x version).
|
|
6
6
|
*/
|
|
7
|
-
interface TextEditor20250728Options {
|
|
7
|
+
export interface TextEditor20250728Options {
|
|
8
8
|
/**
|
|
9
9
|
* Optional execute function that handles text editor command execution.
|
|
10
10
|
* This function receives the command input and should return the result.
|
|
@@ -69,7 +69,6 @@ interface TextEditor20250728Options {
|
|
|
69
69
|
*
|
|
70
70
|
* @see https://docs.anthropic.com/en/docs/agents-and-tools/tool-use/text-editor-tool
|
|
71
71
|
*/
|
|
72
|
-
declare function textEditor_20250728(options?: TextEditor20250728Options): DynamicStructuredTool<typeof TextEditor20250728CommandSchema, TextEditor20250728Command, unknown, string | Promise<string>>;
|
|
72
|
+
export declare function textEditor_20250728(options?: TextEditor20250728Options): DynamicStructuredTool<typeof TextEditor20250728CommandSchema, TextEditor20250728Command, unknown, string | Promise<string>>;
|
|
73
73
|
//#endregion
|
|
74
|
-
export { TextEditor20250728Options, textEditor_20250728 };
|
|
75
74
|
//# sourceMappingURL=textEditor.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"textEditor.d.cts","names":[],"sources":["../../src/tools/textEditor.ts"],"mappings":";;;;;;
|
|
1
|
+
{"version":3,"file":"textEditor.d.cts","names":[],"sources":["../../src/tools/textEditor.ts"],"mappings":";;;;;;iBAYiB;;;;;EAKf,WAAW,MAAM,uCAAuC;;;;;EAKxD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;wBAwDc,oBAAoB,UAAU,4BAyBnB,6BAChB,iCACP,6CAES"}
|
|
@@ -4,7 +4,7 @@ import { DynamicStructuredTool } from "@langchain/core/tools";
|
|
|
4
4
|
/**
|
|
5
5
|
* Options for the text editor tool (Claude 4.x version).
|
|
6
6
|
*/
|
|
7
|
-
interface TextEditor20250728Options {
|
|
7
|
+
export interface TextEditor20250728Options {
|
|
8
8
|
/**
|
|
9
9
|
* Optional execute function that handles text editor command execution.
|
|
10
10
|
* This function receives the command input and should return the result.
|
|
@@ -69,7 +69,6 @@ interface TextEditor20250728Options {
|
|
|
69
69
|
*
|
|
70
70
|
* @see https://docs.anthropic.com/en/docs/agents-and-tools/tool-use/text-editor-tool
|
|
71
71
|
*/
|
|
72
|
-
declare function textEditor_20250728(options?: TextEditor20250728Options): DynamicStructuredTool<typeof TextEditor20250728CommandSchema, TextEditor20250728Command, unknown, string | Promise<string>>;
|
|
72
|
+
export declare function textEditor_20250728(options?: TextEditor20250728Options): DynamicStructuredTool<typeof TextEditor20250728CommandSchema, TextEditor20250728Command, unknown, string | Promise<string>>;
|
|
73
73
|
//#endregion
|
|
74
|
-
export { TextEditor20250728Options, textEditor_20250728 };
|
|
75
74
|
//# sourceMappingURL=textEditor.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"textEditor.d.ts","names":[],"sources":["../../src/tools/textEditor.ts"],"mappings":";;;;;;
|
|
1
|
+
{"version":3,"file":"textEditor.d.ts","names":[],"sources":["../../src/tools/textEditor.ts"],"mappings":";;;;;;iBAYiB;;;;;EAKf,WAAW,MAAM,uCAAuC;;;;;EAKxD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;wBAwDc,oBAAoB,UAAU,4BAyBnB,6BAChB,iCACP,6CAES"}
|
|
@@ -4,7 +4,7 @@ import { ServerTool } from "@langchain/core/tools";
|
|
|
4
4
|
/**
|
|
5
5
|
* Options for the tool search tool.
|
|
6
6
|
*/
|
|
7
|
-
interface ToolSearchOptions {
|
|
7
|
+
export interface ToolSearchOptions {
|
|
8
8
|
/**
|
|
9
9
|
* Create a cache control breakpoint at this content block.
|
|
10
10
|
*/
|
|
@@ -53,7 +53,7 @@ interface ToolSearchOptions {
|
|
|
53
53
|
* });
|
|
54
54
|
* ```
|
|
55
55
|
*/
|
|
56
|
-
declare function toolSearchRegex_20251119(options?: ToolSearchOptions): ServerTool;
|
|
56
|
+
export declare function toolSearchRegex_20251119(options?: ToolSearchOptions): ServerTool;
|
|
57
57
|
/**
|
|
58
58
|
* Creates a BM25-based tool search tool that enables Claude to work with hundreds
|
|
59
59
|
* or thousands of tools by dynamically discovering and loading them on-demand.
|
|
@@ -100,7 +100,6 @@ declare function toolSearchRegex_20251119(options?: ToolSearchOptions): ServerTo
|
|
|
100
100
|
* });
|
|
101
101
|
* ```
|
|
102
102
|
*/
|
|
103
|
-
declare function toolSearchBM25_20251119(options?: ToolSearchOptions): ServerTool;
|
|
103
|
+
export declare function toolSearchBM25_20251119(options?: ToolSearchOptions): ServerTool;
|
|
104
104
|
//#endregion
|
|
105
|
-
export { ToolSearchOptions, toolSearchBM25_20251119, toolSearchRegex_20251119 };
|
|
106
105
|
//# sourceMappingURL=toolSearch.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"toolSearch.d.cts","names":[],"sources":["../../src/tools/toolSearch.ts"],"mappings":";;;;;;
|
|
1
|
+
{"version":3,"file":"toolSearch.d.cts","names":["Anthropic"],"sources":["../../src/tools/toolSearch.ts"],"mappings":";;;;;;iBAMiB;;;;EAIf,eAAeA,YAAU,KAAK;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;wBA8ChB,yBACd,UAAU,oBACT;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;wBAsDa,wBACd,UAAU,oBACT"}
|
|
@@ -4,7 +4,7 @@ import { ServerTool } from "@langchain/core/tools";
|
|
|
4
4
|
/**
|
|
5
5
|
* Options for the tool search tool.
|
|
6
6
|
*/
|
|
7
|
-
interface ToolSearchOptions {
|
|
7
|
+
export interface ToolSearchOptions {
|
|
8
8
|
/**
|
|
9
9
|
* Create a cache control breakpoint at this content block.
|
|
10
10
|
*/
|
|
@@ -53,7 +53,7 @@ interface ToolSearchOptions {
|
|
|
53
53
|
* });
|
|
54
54
|
* ```
|
|
55
55
|
*/
|
|
56
|
-
declare function toolSearchRegex_20251119(options?: ToolSearchOptions): ServerTool;
|
|
56
|
+
export declare function toolSearchRegex_20251119(options?: ToolSearchOptions): ServerTool;
|
|
57
57
|
/**
|
|
58
58
|
* Creates a BM25-based tool search tool that enables Claude to work with hundreds
|
|
59
59
|
* or thousands of tools by dynamically discovering and loading them on-demand.
|
|
@@ -100,7 +100,6 @@ declare function toolSearchRegex_20251119(options?: ToolSearchOptions): ServerTo
|
|
|
100
100
|
* });
|
|
101
101
|
* ```
|
|
102
102
|
*/
|
|
103
|
-
declare function toolSearchBM25_20251119(options?: ToolSearchOptions): ServerTool;
|
|
103
|
+
export declare function toolSearchBM25_20251119(options?: ToolSearchOptions): ServerTool;
|
|
104
104
|
//#endregion
|
|
105
|
-
export { ToolSearchOptions, toolSearchBM25_20251119, toolSearchRegex_20251119 };
|
|
106
105
|
//# sourceMappingURL=toolSearch.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"toolSearch.d.ts","names":[],"sources":["../../src/tools/toolSearch.ts"],"mappings":";;;;;;
|
|
1
|
+
{"version":3,"file":"toolSearch.d.ts","names":["Anthropic"],"sources":["../../src/tools/toolSearch.ts"],"mappings":";;;;;;iBAMiB;;;;EAIf,eAAeA,YAAU,KAAK;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;wBA8ChB,yBACd,UAAU,oBACT;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;wBAsDa,wBACd,UAAU,oBACT"}
|