File size: 252 Bytes
246d201
 
 
 
 
 
 
1
2
3
4
5
6
7
8
import ActionType from "#/types/action-type";
import { AgentState } from "#/types/agent-state";

export const generateAgentStateChangeEvent = (state: AgentState) => ({
  action: ActionType.CHANGE_AGENT_STATE,
  args: { agent_state: state },
});