PromptTemplate class final

A reusable prompt body identified by id.

Constructors

PromptTemplate({required String id, required String name, String body = '', bool isUserMessage = false})
const
PromptTemplate.fromYaml(Map<String, dynamic> yaml)
factory

Properties

body → String
Template body using the canonical placeholder forms; resolved at use time.
final
hashCode → int
The hash code for this object.
no setterinherited
id → String
Stable identifier referenced by the editor / queue.
final
isUserMessage → bool
Whether this template seeds the composer's user-message field (vs. a reusable insertable snippet).
final
name → String
Human-readable label shown in the prompt-templates editor.
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
toYaml() → Map<String, dynamic>

Operators

operator ==(Object other) → bool
The equality operator.
inherited