Class: VSM::Meta::Tools::Base

Inherits:
ToolCapsule show all
Defined in:
lib/vsm/meta/tools.rb

Direct Known Subclasses

ExplainRole, ExplainTool, ListTools, SummarizeSelf

Instance Attribute Summary collapse

Attributes inherited from ToolCapsule

#governance

Instance Method Summary collapse

Methods included from ActsAsTool

included, #tool_descriptor

Constructor Details

#initialize(root:, snapshot_cache:, draft_store: nil) ⇒ Base



17
18
19
20
21
# File 'lib/vsm/meta/tools.rb', line 17

def initialize(root:, snapshot_cache:, draft_store: nil)
  @root = root
  @snapshot_cache = snapshot_cache
  @draft_store = draft_store
end

Instance Attribute Details

#draft_storeObject (readonly)

Returns the value of attribute draft_store.



15
16
17
# File 'lib/vsm/meta/tools.rb', line 15

def draft_store
  @draft_store
end

#rootObject (readonly)

Returns the value of attribute root.



15
16
17
# File 'lib/vsm/meta/tools.rb', line 15

def root
  @root
end

#snapshot_cacheObject (readonly)

Returns the value of attribute snapshot_cache.



15
16
17
# File 'lib/vsm/meta/tools.rb', line 15

def snapshot_cache
  @snapshot_cache
end

Instance Method Details

#execution_modeObject



23
# File 'lib/vsm/meta/tools.rb', line 23

def execution_mode = :fiber