Class: VSM::Meta::SnapshotBuilder

Inherits:
Object
  • Object
show all
Defined in:
lib/vsm/meta/snapshot_builder.rb

Constant Summary collapse

ROLE_METHOD_HINTS =
{
  identity: %i[handle alert observe initialize],
  governance: %i[enforce observe initialize],
  coordination: %i[stage drain order grant_floor! wait_for_turn_end initialize],
  operations: %i[handle observe initialize],
  intelligence: %i[handle system_prompt offer_tools? initialize],
  monitoring: %i[observe handle initialize]
}.freeze

Instance Method Summary collapse

Constructor Details

#initialize(root:) ⇒ SnapshotBuilder

Returns a new instance of SnapshotBuilder.



19
20
21
# File 'lib/vsm/meta/snapshot_builder.rb', line 19

def initialize(root:)
  @root = root
end

Instance Method Details

#callObject



23
24
25
# File 'lib/vsm/meta/snapshot_builder.rb', line 23

def call
  snapshot_capsule(@root, path: [@root.name.to_s])
end