struct

Anthropic::CodeExecutionTool20250522

Inherits JSON::Serializable < Anthropic::ServerTool < JSON::Serializable < Struct < Value < Object

Original code execution tool (May 2025 variant, beta-only).

Preserved for parity and for conversations that still reference the initial code_execution_20250522 tool type. Most new code should use CodeExecutionTool (2025-08-25) or CodeExecutionTool20260120.

Constructors

new(pull : JSON::PullParser)

Original code execution tool (May 2025 variant, beta-only).

Preserved for parity and for conversations that still reference the initial code_execution_20250522 tool type. Most new code should use CodeExecutionTool (2025-08-25) or CodeExecutionTool20260120.

Source
new(cache_control : CacheControl | Nil = nil)
Source
new(*, __pull_for_json_serializable pull : JSON::PullParser)
Source

Instance methods

cache_control
Source
name
Source
type
Source