Skip to content

Add Persistent State Management to Agent Service #10

@Shreyanand

Description

@Shreyanand

Background

Our Autogen-based agent pods are stateless; all conversation history and outputs vanish on restart or scale-down. This blocks multi-turn workflows and wastes tokens.

Objectives

  1. Persist both short-term and long-term memory.
  2. Use Kubernetes-native storage (PVC, StatefulSet) or an in-cluster vector DB.
  3. Wire the chosen backend into Autogen’s memory API.

Approach (high-level)

  • Start with Autogen’s built-in memory classes.
  • Compare simple file-based storage on a PVC vs. a lightweight vector DB.
  • Evaluate mem0 / openmemory and crewAI for deployment fit.

Action Plan (chronological)

  1. Spike: integrate memory with a local sqlite file on a PVC; confirm it survives pod restarts.
  2. Evaluate storage options: sqlite + PVC or a vector DB.
  3. PoC deploy vector DB: install a single-node Chroma/Milvus in dev namespace
  4. Refactor agent service: inject a pluggable memory provider (sqlite or vectordb) via config.
  5. Library review: test-drive mem0 and crewAI memory modules; note pros/cons and k8s deployment steps.
  6. Choose Kubernetes artifacts: finalise StatefulSet vs. Deployment + external DB; define backup & capacity plan.

Definition of Done

  • Agents recall context after pod restarts and scaling.
  • Backend is configurable (sqlite or vectordb).

References

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions