ResponseTone enum
The tone and style the AI should use when writing its response.
Pass this to Prompt to shape how the model communicates — not what it says, but how it says it. Prompt.build converts this into a natural-language instruction in the system prompt.
Prompt(
tone: ResponseTone.friendly,
format: ResponseFormat.bulletedList,
)
Values
- formal → const ResponseTone
-
Professional and objective — no slang, no filler.
Best for business apps, reports, and any context where credibility and precision matter more than personality.
- casual → const ResponseTone
-
Relaxed, conversational, everyday language.
Best for social apps, entertainment, and any context where the user expects a natural, human-like back-and-forth.
- friendly → const ResponseTone
-
Warm and encouraging — like a helpful friend, not a manual.
Best for onboarding flows, health apps, coaching tools, or any product that benefits from a supportive tone.
- concise → const ResponseTone
-
Short, direct, no fluff.
Best when the user needs a fast answer and does not want context, caveats, or elaboration. Pairs well with ResponseFormat.oneSentence or ResponseFormat.oneWord.
- detailed → const ResponseTone
-
Thorough and explanatory — covers context, reasoning, and examples.
Best for educational apps, technical documentation, or any case where the user benefits from understanding the full picture.
Properties
- compressed → String
-
Short token-compressed label used in the telegraphic system prompt.
no setter
- hashCode → int
-
The hash code for this object.
no setterinherited
- index → int
-
A numeric identifier for the enumerated value.
no setterinherited
- instruction → String
-
The natural-language instruction injected into the system prompt.
no setter
- name → String
-
Available on Enum, provided by the EnumName extension
The name of the enum value.no setter - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Constants
-
values
→ const List<
ResponseTone> - A constant List of the values in this enum, in order of their declaration.