Skip to content

feat(agents): support persistense feature for planner agents#1786

Open
antoniibelyshev wants to merge 7 commits intodevelopfrom
belyshev/planner-persistense
Open

feat(agents): support persistense feature for planner agents#1786
antoniibelyshev wants to merge 7 commits intodevelopfrom
belyshev/planner-persistense

Conversation

@antoniibelyshev
Copy link
Copy Markdown
Collaborator

@antoniibelyshev antoniibelyshev commented Apr 1, 2026

This PR extends the persistense feature to be available for the planner agents.

Example:

val agent = AIAgent(
    promptExecutor = promptExecutor,
    strategy = AIAgentPlannerStrategy("my-strategy", planner),
    agentConfig = agentConfig
) {
    install(Persistence) {
        this.storage = provider
    }
}

note: data class AgentCheckpointData was updated: fields nodePath, lastInput, and lastOutput were removed (they are now stored in the properties: JSONObject which was there before). Since the intended use-case for this class from the user perspective is to only serialize-deserialize it, the users should not be affected by that, therefore I do not mark this as a braking change.

closes KG-673

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant