feat(agent): Introduce identity profile for agents with normalization and default values

This commit is contained in:
Abhimanyu Saharan
2026-02-05 02:21:38 +05:30
parent d19e7c34f2
commit 9df5d174ef
9 changed files with 381 additions and 122 deletions

View File

@@ -0,0 +1,28 @@
"""Add agent identity profile.
Revision ID: f7b3d0a1c9e2
Revises: c1c8b3b9f4d1
Create Date: 2026-02-04 22:45:00.000000
"""
from __future__ import annotations
import sqlalchemy as sa
from alembic import op
# revision identifiers, used by Alembic.
revision = "f7b3d0a1c9e2"
down_revision = "c1c8b3b9f4d1"
branch_labels = None
depends_on = None
def upgrade() -> None:
op.add_column(
"agents",
sa.Column("identity_profile", sa.JSON(), nullable=True),
)
def downgrade() -> None:
op.drop_column("agents", "identity_profile")