RawDeltaUpdate

@Serializable
@SerialName(value = "DeltaUpdate")
sealed class RawDeltaUpdate

A single playbook mutation as returned by the curator LLM, convertible to a DeltaUpdate via toDeltaUpdate.

Distinct from DeltaUpdate because it carries the "kind" polymorphic discriminator the LLM must emit; see the serialization note below.

Inheritors

Types

Link copied to clipboard
@Serializable
@SerialName(value = "ADD")
data class Add(val content: String, val sectionName: String, val sectionShortName: String) : ACEOptimizer.RawDeltaUpdate

Raw curator request to add a new bullet.

Link copied to clipboard
@Serializable
@SerialName(value = "DELETE")
data class Delete(val id: String) : ACEOptimizer.RawDeltaUpdate

Raw curator request to remove a bullet.

Link copied to clipboard
@Serializable
@SerialName(value = "UPDATE")
data class Update(val id: String, val newContent: String) : ACEOptimizer.RawDeltaUpdate

Raw curator request to replace a bullet's content.

Functions

Link copied to clipboard
abstract fun toDeltaUpdate(): DeltaUpdate

Converts this raw update into the corresponding DeltaUpdate.