effect-io-ai

Package: @effect/ai-anthropic
Module: AnthropicTool

AnthropicTool.Bash_20250124

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

Signature

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>

Source

Since v4.0.0