Chrylo
03/03/2026, 12:38 PMError executing node (name: RestoreCreateRequirementsHistoryNode): Feature ai.koog.agents.core.agent.entity.AIAgentStorageKey@1e041cd2(name=agents-features-snapshot) is not found.
java.util.NoSuchElementException: Feature ai.koog.agents.core.agent.entity.AIAgentStorageKey@1e041cd2(name=agents-features-snapshot) is not found.
at ai.koog.agents.snapshot.feature.PersistenceKt.persistence(Persistence.kt:404)
at ai.koog.agents.snapshot.feature.PersistenceKt.withPersistence(Persistence.kt:375)Jakub Amanowicz
03/03/2026, 1:24 PMfeature(someAgentFeature) function in your node - it returns nullable feature (depending if it was installed or not). In case of Persistence it would look like this
// in your node
val persistence = feature(Persistence)
if(persistence == null) {
// ...
}
Take a look on how `withPersistence` block is implemented - it uses featureOrThrow(Persistence) - a throwable cousin of nullable feature(Persistence)