Skip to content

Releases: Dooders/AgentMemory

AgentFarm DB to Memory System Converter

Pre-release

Choose a tag to compare

@csmangum csmangum released this 25 May 03:14
aadf9ef

Release Notes - AgentFarm DB to Memory System Converter v0.1.2

Overview

The AgentFarm DB to Memory System Converter is a comprehensive module that enables the conversion of data from AgentFarm SQLite databases into a structured memory system. This initial release provides robust functionality for importing agent metadata and memories with support for tiering strategies, validation, and configurable error handling.

Key Features

Core Functionality

  • Agent Import System

    • Extracts agent metadata including position, resources, health, and genome data
    • Supports batch processing for efficient memory usage
    • Configurable error handling modes (fail, skip, log)
    • Validation of required fields and data integrity
  • Memory Import System

    • Processes different types of memories (states, actions, social interactions)
    • Preserves metadata during conversion
    • Supports incremental and selective imports
    • Batch processing for large datasets
  • Memory Tiering

    • Multiple tiering strategies:
      • Simple: All memories in Short-Term Memory (STM)
      • Step-Based: Time decay distribution across tiers
      • Importance-Aware: Combines time decay with importance scores
    • Configurable tier thresholds and importance metrics

Technical Features

  • Database Management

    • SQLite database connection pooling
    • Session management with context managers
    • Schema validation and integrity checks
    • Support for both file-based and in-memory databases
  • Configuration System

    • Type-safe configuration using dataclasses
    • Comprehensive validation of configuration values
    • Default values for all settings
    • Support for custom memory type mappings
  • Error Handling

    • Multiple error handling modes (fail, skip, log)
    • Detailed error logging and reporting
    • Graceful error recovery options
    • Validation error handling

Usage Example

from converter import from_agent_farm

# Basic usage with default configuration
memory_system = from_agent_farm("path/to/agentfarm.db")

# Custom configuration
memory_system = from_agent_farm(
    db_path="path/to/agentfarm.db",
    config={
        "validate": True,
        "error_handling": "fail",
        "batch_size": 200,
        "tiering_strategy_type": "importance_aware",
        "memory_config": {
            "use_mock_redis": False,
            "stm_config": {
                "memory_limit": 1000,
                "ttl": 3600
            }
        }
    }
)

Dependencies

  • SQLAlchemy
  • Redis

Known Limitations

  • Currently only supports SQLite databases
  • Memory tiering strategies are fixed and not extensible
  • Limited support for custom memory types
  • No built-in support for data migration between versions