Options
All
  • Public
  • Public/Protected
  • All
Menu

Class Session

Hierarchy

Implements

Properties

Optional id

id: undefined | string

Required. Globally unique ID of the current conversation session. This field is read-only.

Optional languageCode

languageCode: undefined | string

Language of the current conversation session. Follows IETF BCP-47 language code http://www.rfc-editor.org/rfc/bcp/bcp47.txt. This could be different from user locale if the action uses multi-language features. For example, when handler_response.expected.language is set, it changes the conversation language for all following turns, which will be reflected in this field.

Optional params

params: undefined | object

Required. List of all parameters collected from forms and intents during the session. Key is the parameter name. Parameters defined here will be merged with parameters already defined in the session. Parameters with a null value will be removed from the session.

Optional typeOverrides

typeOverrides: TypeOverride[]

Optional. Types scoped to the session. Session type defines can supplement or replace existing types. Type names must be unique.

Accessors

language

  • get language(): undefined | string
  • Alias of conv.session.languageCode

    Language of the current conversation session. Follows IETF BCP-47 language code http://www.rfc-editor.org/rfc/bcp/bcp47.txt. This could be different from user locale if the action uses multi-language features. For example, when handler_response.expected.language is set, it changes the conversation language for all following turns, which will be reflected in this field.

    Language of the current conversation session. Follows IETF BCP-47 language code http://www.rfc-editor.org/rfc/bcp/bcp47.txt. This could be different from user locale if the action uses multi-language features. For example, when handler_response.expected.language is set, it changes the conversation language for all following turns, which will be reflected in this field.

    Returns undefined | string

Generated using TypeDoc