Module: Anthropic::Models::CodeExecutionTool20260120::AllowedCaller

Extended by:
Internal::Type::Enum
Defined in:
lib/anthropic/models/code_execution_tool_20260120.rb

Constant Summary collapse

DIRECT =
:direct
CODE_EXECUTION_20250825 =
:code_execution_20250825
CODE_EXECUTION_20260120 =
:code_execution_20260120

Class Method Summary collapse

Instance Method Summary collapse

Methods included from Internal::Type::Enum

==, ===, coerce, dump, hash, inspect, to_sorbet_type, values

Methods included from Internal::Util::SorbetRuntimeSupport

#const_missing, #define_sorbet_constant!, #sorbet_constant_defined?, #to_sorbet_type, to_sorbet_type

Methods included from Internal::Type::Converter

#coerce, coerce, #dump, dump, inspect, #inspect, meta_info, new_coerce_state, type_info

Class Method Details

.valuesArray<Symbol>

Returns:

  • (Array<Symbol>)


# File 'lib/anthropic/models/code_execution_tool_20260120.rb', line 70

Instance Method Details

#initialize(allowed_callers: nil, cache_control: nil, defer_loading: nil, strict: nil, name: :code_execution, type: :code_execution_20260120) ⇒ void

Some parameter documentations has been truncated, see Anthropic::Models::CodeExecutionTool20260120 for more details.

Code execution tool with REPL state persistence (daemon mode + gVisor checkpoint).

Parameters:

  • allowed_callers (Array<Symbol, Anthropic::Models::CodeExecutionTool20260120::AllowedCaller>) (defaults to: nil)
  • cache_control (Anthropic::Models::CacheControlEphemeral, nil) (defaults to: nil)

    Create a cache control breakpoint at this content block.

  • defer_loading (Boolean) (defaults to: nil)

    If true, tool will not be included in initial system prompt. Only loaded when re

  • strict (Boolean) (defaults to: nil)

    When true, guarantees schema validation on tool names and inputs

  • name (Symbol, :code_execution) (defaults to: :code_execution)

    Name of the tool.

  • type (Symbol, :code_execution_20260120) (defaults to: :code_execution_20260120)


63
64
65
66
67
68
69
70
71
72
# File 'lib/anthropic/models/code_execution_tool_20260120.rb', line 63

module AllowedCaller
  extend Anthropic::Internal::Type::Enum

  DIRECT = :direct
  CODE_EXECUTION_20250825 = :code_execution_20250825
  CODE_EXECUTION_20260120 = :code_execution_20260120

  # @!method self.values
  #   @return [Array<Symbol>]
end