instrukt.agent.state
.AgentStateMachine
- class instrukt.agent.state.AgentStateMachine[source]
Bases:
AgentStateSubject
[T
]Agent state machine.
Methods
__init__
()notify_observers
(state)register_observer
(observer)set_state
(state)Set state.
update_state
(event)Sets the state based on the event.
- notify_observers(state: AgentState) None
- register_observer(observer: T) None