Class: GraphAgent::StateSnapshot

Inherits:
Object
  • Object
show all
Defined in:
lib/graph_agent/types/state_snapshot.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(values:, next_nodes: [], config: {}, metadata: nil, created_at: nil, parent_config: nil, tasks: [], interrupts: []) ⇒ StateSnapshot

Returns a new instance of StateSnapshot.



8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
# File 'lib/graph_agent/types/state_snapshot.rb', line 8

def initialize(
  values:,
  next_nodes: [],
  config: {},
  metadata: nil,
  created_at: nil,
  parent_config: nil,
  tasks: [],
  interrupts: []
)
  @values = values
  @next_nodes = Array(next_nodes)
  @config = config
  @metadata = 
  @created_at = created_at
  @parent_config = parent_config
  @tasks = Array(tasks)
  @interrupts = Array(interrupts)
end

Instance Attribute Details

#configObject (readonly)

Returns the value of attribute config.



5
6
7
# File 'lib/graph_agent/types/state_snapshot.rb', line 5

def config
  @config
end

#created_atObject (readonly)

Returns the value of attribute created_at.



5
6
7
# File 'lib/graph_agent/types/state_snapshot.rb', line 5

def created_at
  @created_at
end

#interruptsObject (readonly)

Returns the value of attribute interrupts.



5
6
7
# File 'lib/graph_agent/types/state_snapshot.rb', line 5

def interrupts
  @interrupts
end

#metadataObject (readonly)

Returns the value of attribute metadata.



5
6
7
# File 'lib/graph_agent/types/state_snapshot.rb', line 5

def 
  @metadata
end

#next_nodesObject (readonly)

Returns the value of attribute next_nodes.



5
6
7
# File 'lib/graph_agent/types/state_snapshot.rb', line 5

def next_nodes
  @next_nodes
end

#parent_configObject (readonly)

Returns the value of attribute parent_config.



5
6
7
# File 'lib/graph_agent/types/state_snapshot.rb', line 5

def parent_config
  @parent_config
end

#tasksObject (readonly)

Returns the value of attribute tasks.



5
6
7
# File 'lib/graph_agent/types/state_snapshot.rb', line 5

def tasks
  @tasks
end

#valuesObject (readonly)

Returns the value of attribute values.



5
6
7
# File 'lib/graph_agent/types/state_snapshot.rb', line 5

def values
  @values
end