47 lines
1.7 KiB
Python
47 lines
1.7 KiB
Python
# Generated by Django 5.2.14 on 2026-05-29 13:39
|
|
|
|
from django.db import migrations, models
|
|
|
|
|
|
class Migration(migrations.Migration):
|
|
|
|
initial = True
|
|
|
|
dependencies = []
|
|
|
|
operations = [
|
|
migrations.CreateModel(
|
|
name="AgentAuditLog",
|
|
fields=[
|
|
(
|
|
"id",
|
|
models.BigAutoField(
|
|
auto_created=True,
|
|
primary_key=True,
|
|
serialize=False,
|
|
verbose_name="ID",
|
|
),
|
|
),
|
|
("scenario_id", models.CharField(db_index=True, max_length=100)),
|
|
("scenario_name", models.CharField(blank=True, max_length=200)),
|
|
("user_input", models.TextField()),
|
|
("retrieved_chunks", models.JSONField(blank=True, default=list)),
|
|
("tool_calls", models.JSONField(blank=True, default=list)),
|
|
("structured_output", models.JSONField(blank=True, default=dict)),
|
|
("final_answer", models.TextField(blank=True)),
|
|
("raw_output", models.TextField(blank=True)),
|
|
("model_name", models.CharField(blank=True, max_length=100)),
|
|
("latency_ms", models.PositiveIntegerField(default=0)),
|
|
(
|
|
"status",
|
|
models.CharField(db_index=True, default="success", max_length=20),
|
|
),
|
|
("error_message", models.TextField(blank=True)),
|
|
("created_at", models.DateTimeField(auto_now_add=True, db_index=True)),
|
|
],
|
|
options={
|
|
"ordering": ["-created_at"],
|
|
},
|
|
),
|
|
]
|