@ai-sdk/anthropic 2.0.13 → 2.0.14
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 +6 -0
- package/dist/index.d.mts +89 -61
- package/dist/index.d.ts +89 -61
- package/dist/index.js +52 -24
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +52 -24
- package/dist/index.mjs.map +1 -1
- package/dist/internal/index.d.mts +89 -61
- package/dist/internal/index.d.ts +89 -61
- package/dist/internal/index.js +52 -24
- package/dist/internal/index.js.map +1 -1
- package/dist/internal/index.mjs +52 -24
- package/dist/internal/index.mjs.map +1 -1
- package/package.json +3 -3
package/dist/index.mjs
CHANGED
|
@@ -1987,69 +1987,97 @@ var textEditor_20250429 = createProviderDefinedToolFactory7({
|
|
|
1987
1987
|
// src/anthropic-tools.ts
|
|
1988
1988
|
var anthropicTools = {
|
|
1989
1989
|
/**
|
|
1990
|
-
*
|
|
1990
|
+
* The bash tool enables Claude to execute shell commands in a persistent bash session,
|
|
1991
|
+
* allowing system operations, script execution, and command-line automation.
|
|
1991
1992
|
*
|
|
1992
1993
|
* Image results are supported.
|
|
1993
1994
|
*
|
|
1994
|
-
*
|
|
1995
|
+
* Tool name must be `bash`.
|
|
1995
1996
|
*/
|
|
1996
1997
|
bash_20241022,
|
|
1997
1998
|
/**
|
|
1998
|
-
*
|
|
1999
|
+
* The bash tool enables Claude to execute shell commands in a persistent bash session,
|
|
2000
|
+
* allowing system operations, script execution, and command-line automation.
|
|
1999
2001
|
*
|
|
2000
2002
|
* Image results are supported.
|
|
2001
2003
|
*
|
|
2002
|
-
*
|
|
2004
|
+
* Tool name must be `bash`.
|
|
2003
2005
|
*/
|
|
2004
2006
|
bash_20250124,
|
|
2005
2007
|
/**
|
|
2006
|
-
*
|
|
2007
|
-
|
|
2008
|
-
|
|
2009
|
-
|
|
2010
|
-
*
|
|
2011
|
-
|
|
2012
|
-
|
|
2013
|
-
|
|
2014
|
-
* Creates a tool for editing text. Must have name "str_replace_based_edit_tool".
|
|
2015
|
-
* Note: This version does not support the "undo_edit" command.
|
|
2008
|
+
* Claude can analyze data, create visualizations, perform complex calculations,
|
|
2009
|
+
* run system commands, create and edit files, and process uploaded files directly within
|
|
2010
|
+
* the API conversation.
|
|
2011
|
+
*
|
|
2012
|
+
* The code execution tool allows Claude to run Bash commands and manipulate files,
|
|
2013
|
+
* including writing code, in a secure, sandboxed environment.
|
|
2014
|
+
*
|
|
2015
|
+
* Tool name must be `code_execution`.
|
|
2016
2016
|
*/
|
|
2017
|
-
|
|
2017
|
+
codeExecution_20250522,
|
|
2018
2018
|
/**
|
|
2019
|
-
*
|
|
2019
|
+
* Claude can interact with computer environments through the computer use tool, which
|
|
2020
|
+
* provides screenshot capabilities and mouse/keyboard control for autonomous desktop interaction.
|
|
2020
2021
|
*
|
|
2021
2022
|
* Image results are supported.
|
|
2022
2023
|
*
|
|
2024
|
+
* Tool name must be `computer`.
|
|
2025
|
+
*
|
|
2023
2026
|
* @param displayWidthPx - The width of the display being controlled by the model in pixels.
|
|
2024
2027
|
* @param displayHeightPx - The height of the display being controlled by the model in pixels.
|
|
2025
2028
|
* @param displayNumber - The display number to control (only relevant for X11 environments). If specified, the tool will be provided a display number in the tool definition.
|
|
2026
2029
|
*/
|
|
2027
2030
|
computer_20241022,
|
|
2028
2031
|
/**
|
|
2029
|
-
*
|
|
2032
|
+
* Claude can interact with computer environments through the computer use tool, which
|
|
2033
|
+
* provides screenshot capabilities and mouse/keyboard control for autonomous desktop interaction.
|
|
2030
2034
|
*
|
|
2031
2035
|
* Image results are supported.
|
|
2032
2036
|
*
|
|
2037
|
+
* Tool name must be `computer`.
|
|
2038
|
+
*
|
|
2033
2039
|
* @param displayWidthPx - The width of the display being controlled by the model in pixels.
|
|
2034
2040
|
* @param displayHeightPx - The height of the display being controlled by the model in pixels.
|
|
2035
2041
|
* @param displayNumber - The display number to control (only relevant for X11 environments). If specified, the tool will be provided a display number in the tool definition.
|
|
2036
|
-
* @param execute - The function to execute the tool. Optional.
|
|
2037
2042
|
*/
|
|
2038
2043
|
computer_20250124,
|
|
2044
|
+
/**
|
|
2045
|
+
* Claude can use an Anthropic-defined text editor tool to view and modify text files,
|
|
2046
|
+
* helping you debug, fix, and improve your code or other text documents. This allows Claude
|
|
2047
|
+
* to directly interact with your files, providing hands-on assistance rather than just suggesting changes.
|
|
2048
|
+
*
|
|
2049
|
+
* Tool name must be `str_replace_editor`.
|
|
2050
|
+
*/
|
|
2051
|
+
textEditor_20241022,
|
|
2052
|
+
/**
|
|
2053
|
+
* Claude can use an Anthropic-defined text editor tool to view and modify text files,
|
|
2054
|
+
* helping you debug, fix, and improve your code or other text documents. This allows Claude
|
|
2055
|
+
* to directly interact with your files, providing hands-on assistance rather than just suggesting changes.
|
|
2056
|
+
*
|
|
2057
|
+
* Tool name must be `str_replace_editor`.
|
|
2058
|
+
*/
|
|
2059
|
+
textEditor_20250124,
|
|
2060
|
+
/**
|
|
2061
|
+
* Claude can use an Anthropic-defined text editor tool to view and modify text files,
|
|
2062
|
+
* helping you debug, fix, and improve your code or other text documents. This allows Claude
|
|
2063
|
+
* to directly interact with your files, providing hands-on assistance rather than just suggesting changes.
|
|
2064
|
+
*
|
|
2065
|
+
* Note: This version does not support the "undo_edit" command.
|
|
2066
|
+
*
|
|
2067
|
+
* Tool name must be `str_replace_based_edit_tool`.
|
|
2068
|
+
*/
|
|
2069
|
+
textEditor_20250429,
|
|
2039
2070
|
/**
|
|
2040
2071
|
* Creates a web search tool that gives Claude direct access to real-time web content.
|
|
2041
|
-
*
|
|
2072
|
+
*
|
|
2073
|
+
* Tool name must be `web_search`.
|
|
2042
2074
|
*
|
|
2043
2075
|
* @param maxUses - Maximum number of web searches Claude can perform during the conversation.
|
|
2044
2076
|
* @param allowedDomains - Optional list of domains that Claude is allowed to search.
|
|
2045
2077
|
* @param blockedDomains - Optional list of domains that Claude should avoid when searching.
|
|
2046
2078
|
* @param userLocation - Optional user location information to provide geographically relevant search results.
|
|
2047
2079
|
*/
|
|
2048
|
-
webSearch_20250305
|
|
2049
|
-
/**
|
|
2050
|
-
* Creates a tool for executing Python code. Must have name "code_execution".
|
|
2051
|
-
*/
|
|
2052
|
-
codeExecution_20250522
|
|
2080
|
+
webSearch_20250305
|
|
2053
2081
|
};
|
|
2054
2082
|
|
|
2055
2083
|
// src/anthropic-provider.ts
|