Briyah SDK - v2.0.6
    Preparing search index...

    Interface StoryStateEvent

    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.

    interface StoryStateEvent {
        state: StoryState;
        timestamp: number;
        type: "story-state";
    }
    Index
    state: StoryState
    timestamp: number
    type: "story-state"