Package: @effect/ai-anthropic
Module: AnthropicTool
Defines the Anthropic Bash tool (2025-01-24 version).
When to use
Use when you want the model to execute bash commands with the 2025-01-24 Anthropic computer-use beta.
Details
Allows the model to execute bash commands in a sandboxed environment. Requires the “computer-use-2025-01-24” beta header.
See
Bash_20241022 for the older 2024-10-22 version of the bash toolSignature
declare const Bash_20250124: <Mode extends Tool.FailureMode | undefined = undefined>(args: { readonly failureMode?: Mode | undefined; }) => Tool.ProviderDefined<"anthropic.bash_20250124", "AnthropicBash", { readonly args: Schema.Void; readonly parameters: Schema.Struct<{ readonly command: Schema.String; readonly restart: Schema.optionalKey<Schema.Boolean>; }>; readonly success: Schema.String; readonly failure: Schema.Never; readonly failureMode: Mode extends undefined ? "error" : Mode; }, true>
Since v4.0.0