Payload emitted on the 'story-state' event of the story message emitter.
Fires after every room turn with the complete updated game state.
Turn detection: Use state.currentSpeaker === state.userAgentName to check
whether it is the human player's turn. Do not use state.humanPrompt for
this — it is a UI display string (e.g. "What does Elena do next?") and is
present even when it is not the player's turn.
Payload emitted on the
'story-state'event of the story message emitter.Fires after every room turn with the complete updated game state.
Turn detection: Use
state.currentSpeaker === state.userAgentNameto check whether it is the human player's turn. Do not usestate.humanPromptfor this — it is a UI display string (e.g."What does Elena do next?") and is present even when it is not the player's turn.