Pathways.get_agent()

Get the agent assigned to a specific state.

Usage

Source

Pathways.get_agent(state_name)

Parameters

state_name: str
The state ID to look up.

Returns

Agent or None
The registered Agent for that state, or None if no agent is assigned or registered.