Options
All
  • Public
  • Public/Protected
  • All
Menu

Class ContentAct

Base type for System Acts that provides 'content' or 'simple information'.

An act is 'content' if it does not directly encourage the user to reply.

Examples:

  • ApologyAct is-a ContentAct. Sample prompt: "A: Sorry, my mistake." (simple information, no encouragement to continue)
  • WeatherAct is-a ContentAct. Sample prompt: "A: The weather will be warm." (business content, no encouragement to continue)

Framework behavior:

  • The framework requires that every turn includes exactly one InitiativeAct except for terminal turns that stop the user's session by setting ControlResult.sessionBehavior.

Hierarchy

Implements

Constructors

Properties

Methods

Constructors

constructor

Properties

control

control: Control

takesInitiative

takesInitiative: boolean

Methods

Abstract render

  • Render the dialog act.

    This is the one-size-fits-all direct rendering of a dialog act. This is often appropriate for custom acts that are not used by a shared control.

    Framework behavior:

    • Shared controls cannot rely on a one-size-fits-all rendering and so they provide their own appropriate defaults and props that allow the developer to override the defaults.

    Parameters

    Returns void

toString

  • toString(): string
  • Produces a string representation of the SystemAct.

    The associated Control.id is included but the complete details of the associate Control are omitted for brevity.

    Returns string