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
set_state(state: AgentState) None[source]

Set state.

update_state(event: str) AgentState[source]

Sets the state based on the event.