Class: Anthropic::Models::MemoryTool20250818

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/anthropic/models/memory_tool_20250818.rb

Defined Under Namespace

Modules: AllowedCaller

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from Internal::Type::BaseModel

==, #==, #[], coerce, #deconstruct_keys, #deep_to_h, dump, fields, hash, #hash, inherited, inspect, #inspect, known_fields, optional, recursively_to_h, required, #to_h, #to_json, #to_s, to_sorbet_type, #to_yaml

Methods included from Internal::Type::Converter

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

Methods included from Internal::Util::SorbetRuntimeSupport

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

Constructor Details

#initialize(allowed_callers: nil, cache_control: nil, defer_loading: nil, input_examples: nil, strict: nil, name: :memory, type: :memory_20250818) ⇒ void

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

Parameters:

  • allowed_callers (Array<Symbol, Anthropic::Models::MemoryTool20250818::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

  • input_examples (Array<Hash{Symbol=>Object}>) (defaults to: nil)
  • strict (Boolean) (defaults to: nil)

    When true, guarantees schema validation on tool names and inputs

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

    Name of the tool.

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


# File 'lib/anthropic/models/memory_tool_20250818.rb', line 50

Instance Attribute Details

#allowed_callersArray<Symbol, Anthropic::Models::MemoryTool20250818::AllowedCaller>?



22
23
# File 'lib/anthropic/models/memory_tool_20250818.rb', line 22

optional :allowed_callers,
-> { Anthropic::Internal::Type::ArrayOf[enum: Anthropic::MemoryTool20250818::AllowedCaller] }

#cache_controlAnthropic::Models::CacheControlEphemeral?

Create a cache control breakpoint at this content block.



29
# File 'lib/anthropic/models/memory_tool_20250818.rb', line 29

optional :cache_control, -> { Anthropic::CacheControlEphemeral }, nil?: true

#defer_loadingBoolean?

If true, tool will not be included in initial system prompt. Only loaded when returned via tool_reference from tool search.

Returns:



36
# File 'lib/anthropic/models/memory_tool_20250818.rb', line 36

optional :defer_loading, Anthropic::Internal::Type::Boolean

#input_examplesArray<Hash{Symbol=>Object}>?

Returns:

  • (Array<Hash{Symbol=>Object}>, nil)


41
42
# File 'lib/anthropic/models/memory_tool_20250818.rb', line 41

optional :input_examples,
Anthropic::Internal::Type::ArrayOf[Anthropic::Internal::Type::HashOf[Anthropic::Internal::Type::Unknown]]

#nameSymbol, :memory

Name of the tool.

This is how the tool will be called by the model and in tool_use blocks.

Returns:

  • (Symbol, :memory)


12
# File 'lib/anthropic/models/memory_tool_20250818.rb', line 12

required :name, const: :memory

#strictBoolean?

When true, guarantees schema validation on tool names and inputs

Returns:



48
# File 'lib/anthropic/models/memory_tool_20250818.rb', line 48

optional :strict, Anthropic::Internal::Type::Boolean

#typeSymbol, :memory_20250818

Returns:

  • (Symbol, :memory_20250818)


17
# File 'lib/anthropic/models/memory_tool_20250818.rb', line 17

required :type, const: :memory_20250818