Package: @effect/ai-anthropic
Module: AnthropicTool
Input payload for a bash command routed through the Anthropic code execution tool.
When to use
Use when representing a provider-executed bash command request for the 2025-05-22 code execution tool.
Details
The payload uses type: "bash_code_execution" to distinguish bash execution
from programmatic code and text editor operations, and command contains the
bash command to run.
See
CodeExecutionProgrammaticToolCall for programmatic code execution inputCodeExecutionTextEditorView for viewing files through text editor code executionCodeExecutionTextEditorCreate for creating files through text editor code executionCodeExecutionTextEditorStrReplace for replacing text through text editor code executionCodeExecution_20250522 for the provider-defined tool that consumes this payloadSignature
type CodeExecutionBashCommand = typeof CodeExecutionBashCommand.Type
Since v4.0.0