SystemPromptPreset enum

Built-in system prompt presets for common use cases

Use these with ChatSession for quick setup:

final session = ChatSession(
  edgeVeda: edgeVeda,
  preset: SystemPromptPreset.assistant,
);
Inheritance
Available extensions

Values

assistant → const SystemPromptPreset

General-purpose helpful assistant

const SystemPromptPreset('You are a helpful assistant. Provide clear, concise answers.')
coder → const SystemPromptPreset

Coding-focused assistant with code examples

const SystemPromptPreset('You are a coding assistant. Provide clear, working code examples with brief explanations.')
creative → const SystemPromptPreset

Creative writing assistant

const SystemPromptPreset('You are a creative writing assistant. Be imaginative, vivid, and engaging.')

Properties

hashCode int
The hash code for this object.
no setterinherited
index int
A numeric identifier for the enumerated value.
no setterinherited
name String

Available on Enum, provided by the EnumName extension

The name of the enum value.
no setter
prompt String
The system prompt text for this preset
final
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<SystemPromptPreset>
A constant List of the values in this enum, in order of their declaration.