TemplatedResponseOutput
Stentor API Reference / stentor-response/src / TemplatedResponseOutput
Interface: TemplatedResponseOutput\<T>
Defined in: packages/stentor-response/src/TemplatedResponseOutput.ts:6
A response object which contains all the necessary information to communicate a particular response for multiple surfaces.
Note: We may want to change this to SimpleResponse and then have multiple levels of this object to also account for cards, lists, etc.
Extendsβ
Type Parametersβ
Tβ
T
Propertiesβ
ssml?β
optionalssml:string
Defined in: packages/stentor-models/lib/Response/ResponseOutput.d.ts:16
The SSML
Inherited fromβ
textToSpeech?β
optionaltextToSpeech:string
Defined in: packages/stentor-models/lib/Response/ResponseOutput.d.ts:22
Text to speech
Deprecatedβ
Do not use, instead use both ssml and displayText
Inherited fromβ
displayText?β
optionaldisplayText:string
Defined in: packages/stentor-models/lib/Response/ResponseOutput.d.ts:26
Used only display/chat capable surfaces
Inherited fromβ
html?β
optionalhtml:string
Defined in: packages/stentor-models/lib/Response/ResponseOutput.d.ts:34
Beta
Sanitized HTML, suitable for displaying within a web environment.
This is typically generated from the displayText based on markdown found within.
Inherited fromβ
suggestions?β
optionalsuggestions:SuggestionTypes[]
Defined in: packages/stentor-models/lib/Response/ResponseOutput.d.ts:40
Used where suggestions can be displayed to the user.
Note: These only apply to prompts, not reprompts.
Inherited fromβ
defaultLocale?β
optionaldefaultLocale:Locale
Defined in: packages/stentor-models/lib/Response/ResponseOutput.d.ts:44
The locale for the response, defaults to "en"
Inherited fromβ
locales?β
optionallocales:Partial\<Record\<Locale,LocaleSpecificResponseOutput>>
Defined in: packages/stentor-models/lib/Response/ResponseOutput.d.ts:48
The language code for the response output.
Inherited fromβ
data?β
optionaldata:T
Defined in: packages/stentor-response/src/TemplatedResponseOutput.ts:7