Skip to content

LLM-Driven Extraction of Unstructured Data — Built for API Deployments & ETL Pipeline Workflows

added missing migration for v2 promptsudio enforce type (#766)

vishnuszipstack7721bfdea8e5
diff --git a/backend/prompt_studio/prompt_studio_v2/migrations/0002_alter_toolstudioprompt_enforce_type.py b/backend/prompt_studio/prompt_studio_v2/migrations/0002_alter_toolstudioprompt_enforce_type.py
new file mode 100644
index 000000000..86c53d99f
--- /dev/null
+++ b/backend/prompt_studio/prompt_studio_v2/migrations/0002_alter_toolstudioprompt_enforce_type.py
@@ -0,0 +1,35 @@
+# Generated by Django 4.2.1 on 2024-10-03 10:37
+
+from django.db import migrations, models
+
+
+class Migration(migrations.Migration):
+
+ dependencies = [
+ ("prompt_studio_v2", "0001_initial"),
+ ]
+
+ operations = [
+ migrations.AlterField(
+ model_name="toolstudioprompt",
+ name="enforce_type",
+ field=models.TextField(
+ blank=True,
+ choices=[
+ ("Text", "Response sent as Text"),
+ ("number", "Response sent as number"),
+ ("email", "Response sent as email"),
+ ("date", "Response sent as date"),
+ ("boolean", "Response sent as boolean"),
+ ("json", "Response sent as json"),
+ ("table", "Response sent as table"),
+ (
+ "record",
+ "Response sent for records. Entries of records are list of logical and organized individual entities with distint values",
+ ),
+ ],
+ db_comment="Field to store the type in which the response to be returned.",
+ default="Text",
+ ),
+ ),
+ ]