DVPrompts class
The compiled prompts, the store that overrides them, and the lockfile that says what the repository has recorded.
Constructors
- DVPrompts({DVPromptStore? store, DVPromptLock? lock, DVLogger? logger})
Properties
-
compiledVersions
→ Iterable<
DVPromptVersion> -
no setter
- hashCode → int
-
The hash code for this object.
no setterinherited
- lock → DVPromptLock?
-
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- store → DVPromptStore
-
final
Methods
-
audit(
) → Future< List< DVPromptLockProblem> > -
Every stored version with no counterpart in the repository
(
DV-AIOPS-001): not compiled, and not in the lockfile with its fingerprint. -
compiled(
String id) → DVPromptVersion? -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
register(
DVPrompt prompt, DVPromptTemplate template) → void - Registers a compiled prompt. Normally called by generated code.
-
resolve(
String id) → Future< DVResolvedPrompt> -
The version that answers for
id: the active stored one, or else the compiled one. -
rollback(
String id) → Future< DVResolvedPrompt> - Ships the version that answered before the current one: that version, with its own number and fingerprint, rather than a new version that reverses the change.
-
ship(
DVPromptVersion version) → Future< void> -
Stores
versionand makes it answer. -
template(
String id) → DVPromptTemplate? -
toString(
) → String -
A string representation of this object.
inherited
-
unship(
String id, int version) → Future< void> - Removes a stored version. When it was answering, what answered before it answers again, down to the compiled prompt.
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited