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