Package-level declarations

Types

Link copied to clipboard
class ACEOptimizer<Input, Output, InputLabel>(playbookStoragePath: ResilientPath, onExistingPlaybook: OnExistingPlaybookAction, reflectorModel: LLModel, curatorModel: LLModel, labelExtractor: (datasetItem: TrainSetItem<Input, InputLabel>) -> String) : AgentOptimizer<Input, Output, InputLabel>

Agentic Context Engineering optimizer: improves an agent by curating an ACEPlaybook of bullet insights instead of editing its prompt directly.

Link copied to clipboard
class ACEPlaybook(storagePath: ResilientPath)

Mutable collection of curated PlaybookSections persisted to storagePath.

Link copied to clipboard
object ACEPlaybookFeature : AIAgentGraphFeature<ACEPlaybookFeatureConfig, Unit>

ACE-specific feature that appends playbook content to the agent's system prompt at strategy start.

Link copied to clipboard
class ACEPlaybookFeatureConfig : FeatureConfig

Configuration for ACEPlaybookFeature.

Link copied to clipboard
object ACEPrompts

Prompt builders for the ACE reflector and curator stages, and for injecting the playbook at run time.

Link copied to clipboard
@Serializable
sealed class DeltaUpdate

A single mutation to apply to an ACEPlaybook, as produced by the curator and consumed by ACEPlaybook.applyDelta.

Link copied to clipboard

What an ACEOptimizer should do when a playbook already exists at the target storage path.

Link copied to clipboard
@Serializable
data class PlaybookBulletItem(var content: String, val id: String, var helpfulCount: Int, var harmfulCount: Int)

A single curated insight in an ACEPlaybook, living inside a PlaybookSection.

Link copied to clipboard
@Serializable
data class PlaybookSection(val name: String, val shortName: String, val bullets: MutableList<PlaybookBulletItem>)

A named group of PlaybookBulletItems within an ACEPlaybook.

Functions

Link copied to clipboard
fun GraphAIAgent.FeatureContext.installACEPlaybook(configure: ACEPlaybookFeatureConfig.() -> Unit)

Installs the ACEPlaybookFeature with the given configuration.