Skip to content
Discussion options

You must be logged in to vote

Hey @samDobsonDev! 👋

Looks like the new Agent Persistence feature in the freshly released Koog 0.3.0 might be exactly what you need! You can check out the official docs here.

There are two main approaches available: automatic persistence-restore and manual control. Based on your use case, it sounds like you'd prefer manual control over when and how state is saved and restored.

To implement manual checkpointing, you'll want to install the Persistency feature as described in the docs. Here's a simple example of how to create and store a checkpoint within a custom node:

node<String, String>(name) {
    val input = it
    withPersistency(this) { ctx ->
        createCheckpoint(ctx, name, inpu…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@samDobsonDev
Comment options

Answer selected by Rizzen
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants