struct

Anthropic::CodeExecutionTool20260521

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

Code execution tool (May 2026 variant).

Code execution tool with REPL state persistence. Functionally identical to CodeExecutionTool20260120 but uses the newer code_execution_20260521 type string. The allowed_callers union now also accepts "code_execution_20260521".

Constructors

new(pull : JSON::PullParser)

Code execution tool (May 2026 variant).

Code execution tool with REPL state persistence. Functionally identical to CodeExecutionTool20260120 but uses the newer code_execution_20260521 type string. The allowed_callers union now also accepts "code_execution_20260521".

Source
new(allowed_callers : Array(String) | Nil = nil, cache_control : CacheControl | Nil = nil, defer_loading : Bool | Nil = nil, strict : Bool | Nil = nil)
Source
new(*, __pull_for_json_serializable pull : JSON::PullParser)
Source

Instance methods

allowed_callers
Source
cache_control
Source
defer_loading
Source
name
Source
strict
Source
type
Source