kumulant

BanditPolicySpec

@Serializable(with = BanditPolicySpecSerializer::class)
sealed interface BanditPolicySpec<R : Result>(source)

Wire-portable specification for a BanditPolicy.

JSON uses names for default policies, such as "ucb1", and operator keys for configured policies. Other formats retain the generated class tags. Construction lives in BanditFactory.

Specs that take an Arm or Posterior consume them directly; those hierarchies are already sealed-and-@Serializable so they round-trip on the wire alongside the policy.

Inheritors