Options
All
  • Public
  • Public/Protected
  • All
Menu

Class ThoughtController

Control creation of thought processes for incoming/outgoing sequences.

Hierarchy

  • ThoughtController

Index

Methods

dispatch

  • Initiate chain of thought processes for an outgoing envelope. This is for sending unprompted by a branch. Final state is remembered.

    Parameters

    Returns Promise<State>

receive

  • Initiate sequence of thought processes for an incoming message. Branch callbacks may also respond. Final state is remembered.

    If audience is engaged in dialogue, use the isolated dialogue path instead of default "global" path. The dialogue path is then progressed to a clean path, to allow adding a new set of branches upon matching the current ones. If no branches matched, no new branches would be added to the new path, so we revert to the previous path (the one that was just processed). If branches matched, but no additional branches added, close the dialogue.

    Parameters

    Returns Promise<State>

respond

  • Initiate a response from an existing state. Sequence does not remember because it will usually by triggered from within the receive sequence.

    Parameters

    Returns Promise<State>

serve

  • Initiate chain of thought processes for responding to a server request.

    Parameters

    Returns Promise<State>

Generated using TypeDoc