Skip to content

The platform for continuously improving AI agents.

566 B
Raw Blame
from django.db import migrations


def create_checkpoint_store(apps, schema_editor):
    from overbae.services.experiment_checkpoints import store

    with store(schema_editor.connection.settings_dict) as checkpointer:
        checkpointer.setup()


class Migration(migrations.Migration):
    # LangGraph's saver migrates its own tables on its own connection.
    atomic = False

    dependencies = [
        ("overbae", "0085_research_experiments"),
    ]

    operations = [
        migrations.RunPython(create_checkpoint_store, migrations.RunPython.noop),
    ]