Skip to main content

ActiveContext

Stentor API Reference


Stentor API Reference / stentor-models/src / ActiveContext

Interface: ActiveContext

Defined in: packages/stentor-models/src/Response/Response.ts:20

Active Context Object

Properties​

name​

name: string

Defined in: packages/stentor-models/src/Response/Response.ts:24

Name of the context


parameters?​

optional parameters: object

Defined in: packages/stentor-models/src/Response/Response.ts:28

Parameters passed around with the context

Index Signature​

[key: string]: string


timeToLive​

timeToLive: object

Defined in: packages/stentor-models/src/Response/Response.ts:31

timeToLiveInSeconds?​

optional timeToLiveInSeconds: number

How long in seconds for the context to stay alive.

Note: Not supported on Dialogflow

turnsToLive?​

optional turnsToLive: number

How many conversational turns to keep the context alive.