Class: GraphAgent::Graph::MessagesState
- Inherits:
-
State::Schema
- Object
- State::Schema
- GraphAgent::Graph::MessagesState
- Defined in:
- lib/graph_agent/graph/message_graph.rb
Instance Attribute Summary
Attributes inherited from State::Schema
Instance Method Summary collapse
-
#initialize ⇒ MessagesState
constructor
A new instance of MessagesState.
Methods inherited from State::Schema
#apply, #field, #initial_state
Constructor Details
#initialize ⇒ MessagesState
Returns a new instance of MessagesState.
6 7 8 9 |
# File 'lib/graph_agent/graph/message_graph.rb', line 6 def initialize super field :messages, type: Array, reducer: GraphAgent::Reducers.method(:add_messages), default: [] end |