Class: GraphAgent::StateSnapshot
- Inherits:
-
Object
- Object
- GraphAgent::StateSnapshot
- Defined in:
- lib/graph_agent/types/state_snapshot.rb
Instance Attribute Summary collapse
-
#config ⇒ Object
readonly
Returns the value of attribute config.
-
#created_at ⇒ Object
readonly
Returns the value of attribute created_at.
-
#interrupts ⇒ Object
readonly
Returns the value of attribute interrupts.
-
#metadata ⇒ Object
readonly
Returns the value of attribute metadata.
-
#next_nodes ⇒ Object
readonly
Returns the value of attribute next_nodes.
-
#parent_config ⇒ Object
readonly
Returns the value of attribute parent_config.
-
#tasks ⇒ Object
readonly
Returns the value of attribute tasks.
-
#values ⇒ Object
readonly
Returns the value of attribute values.
Instance Method Summary collapse
-
#initialize(values:, next_nodes: [], config: {}, metadata: nil, created_at: nil, parent_config: nil, tasks: [], interrupts: []) ⇒ StateSnapshot
constructor
A new instance of StateSnapshot.
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
#config ⇒ Object (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_at ⇒ Object (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 |
#interrupts ⇒ Object (readonly)
Returns the value of attribute interrupts.
5 6 7 |
# File 'lib/graph_agent/types/state_snapshot.rb', line 5 def interrupts @interrupts end |
#metadata ⇒ Object (readonly)
Returns the value of attribute metadata.
5 6 7 |
# File 'lib/graph_agent/types/state_snapshot.rb', line 5 def @metadata end |
#next_nodes ⇒ Object (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_config ⇒ Object (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 |
#tasks ⇒ Object (readonly)
Returns the value of attribute tasks.
5 6 7 |
# File 'lib/graph_agent/types/state_snapshot.rb', line 5 def tasks @tasks end |
#values ⇒ Object (readonly)
Returns the value of attribute values.
5 6 7 |
# File 'lib/graph_agent/types/state_snapshot.rb', line 5 def values @values end |