@hash/in-flow
Behavior
10
0
Public

In Flow

This behavior handles the receiving end of flows between two agents.
Readme

This behavior handles the receiving end of flows between two agents.


Required Fields:

{
  "in_flow_property": string,
  "flow_rate": number,
  "in_nodes": string[],
  "capacity": number,
  "prev_order": number,
}

in_flow_property - the property this agent is receiving from sending agents flow_rate - the maximum rate of flow between the agents in_nodes - the nodes that are sending flows to this agent capacity - the total amount this agent can hold at any given time prev_order - the amount this agent requested to flow in at the last time step