Type Alias: ToneType
ToneType =
"Friendly"
|"Romantic"
|"Sarcastic"
|"Humour"
|"Social"
|"Angry"
|"Sad"
|"Other"
Defined in: src/_other-scraper/galaxyai.ts:21
Overview
The ToneType
type alias defines a set of allowed string values representing different tones that can be used with the TONE module. Each tone signifies a specific emotional or contextual tone of interaction, enhancing the adaptability and expressiveness of responses generated through the module.
Allowed Tones
The following tones are supported:
- Friendly: Indicates a warm, approachable tone.
- Romantic: Conveys feelings of love or affection.
- Sarcastic: Reflects irony or contempt.
- Humour: Suggests light-heartedness or wit.
- Social: Represents a conversational or casual tone.
- Angry: Expresses frustration or hostility.
- Sad: Conveys a sense of sorrow or melancholy.
- Other: Allows for tones that do not fit into the defined categories.
Usage
The ToneType
can be utilized when specifying the tone of responses in functions that interact with the TONE module. This flexibility allows developers to tailor interactions based on user preferences or contextual needs.
Example
const userTone: ToneType = "Friendly";
function sendMessage(tone: ToneType): void {
// Implementation for sending message with specified tone
console.log(`Message sent with tone: ${tone}`);
}
sendMessage(userTone);
Remarks
Utilizing the ToneType
ensures that the responses remain consistent and aligned with desired emotional expressions, providing better engagement in user interactions.