@@ -122,11 +122,35 @@ def text_data_row(rand_gen):
122122 }
123123
124124
125+ @pytest .fixture ()
126+ def llm_prompt_creation_data_row (rand_gen ):
127+ return {
128+ "row_data" : {
129+ "type" : "application/llm.prompt-creation" ,
130+ "version" : 1
131+ },
132+ "global_key" : rand_gen (str )
133+ }
134+
135+
136+ @pytest .fixture ()
137+ def llm_prompt_response_data_row (rand_gen ):
138+ return {
139+ "row_data" : {
140+ "type" : "application/llm.prompt-response-creation" ,
141+ "version" : 1
142+ },
143+ "global_key" : rand_gen (str )
144+ }
145+
146+
125147@pytest .fixture
126148def data_row_json_by_data_type (audio_data_row , conversation_data_row ,
127149 dicom_data_row , geospatial_data_row ,
128150 html_data_row , image_data_row , document_data_row ,
129- text_data_row , video_data_row ):
151+ text_data_row , video_data_row ,
152+ llm_prompt_creation_data_row ,
153+ llm_prompt_response_data_row ):
130154 return {
131155 'audio' : audio_data_row ,
132156 'conversation' : conversation_data_row ,
@@ -137,6 +161,9 @@ def data_row_json_by_data_type(audio_data_row, conversation_data_row,
137161 'document' : document_data_row ,
138162 'text' : text_data_row ,
139163 'video' : video_data_row ,
164+ 'llmpromptcreation' : llm_prompt_creation_data_row ,
165+ 'llmpromptresponsecreation' : llm_prompt_response_data_row ,
166+ 'llmresponsecreation' : text_data_row
140167 }
141168
142169
@@ -146,16 +173,33 @@ def exports_v2_by_data_type(expected_export_v2_image, expected_export_v2_audio,
146173 expected_export_v2_video ,
147174 expected_export_v2_conversation ,
148175 expected_export_v2_dicom ,
149- expected_export_v2_document ):
176+ expected_export_v2_document ,
177+ expected_export_v2_llm_prompt_creation ,
178+ expected_export_v2_llm_prompt_response_creation ,
179+ expected_export_v2_llm_response_creation ):
150180 return {
151- 'image' : expected_export_v2_image ,
152- 'audio' : expected_export_v2_audio ,
153- 'html' : expected_export_v2_html ,
154- 'text' : expected_export_v2_text ,
155- 'video' : expected_export_v2_video ,
156- 'conversation' : expected_export_v2_conversation ,
157- 'dicom' : expected_export_v2_dicom ,
158- 'document' : expected_export_v2_document ,
181+ 'image' :
182+ expected_export_v2_image ,
183+ 'audio' :
184+ expected_export_v2_audio ,
185+ 'html' :
186+ expected_export_v2_html ,
187+ 'text' :
188+ expected_export_v2_text ,
189+ 'video' :
190+ expected_export_v2_video ,
191+ 'conversation' :
192+ expected_export_v2_conversation ,
193+ 'dicom' :
194+ expected_export_v2_dicom ,
195+ 'document' :
196+ expected_export_v2_document ,
197+ 'llmpromptcreation' :
198+ expected_export_v2_llm_prompt_creation ,
199+ 'llmpromptresponsecreation' :
200+ expected_export_v2_llm_prompt_response_creation ,
201+ 'llmresponsecreation' :
202+ expected_export_v2_llm_response_creation
159203 }
160204
161205
@@ -179,7 +223,10 @@ def annotations_by_data_type(polygon_inference, rectangle_inference,
179223 checklist_inference , text_inference
180224 ],
181225 'text' : [entity_inference , checklist_inference , text_inference ],
182- 'video' : [video_checklist_inference ]
226+ 'video' : [video_checklist_inference ],
227+ 'llmpromptcreation' : [checklist_inference , text_inference ],
228+ 'llmpromptresponsecreation' : [checklist_inference , text_inference ],
229+ 'llmresponsecreation' : [checklist_inference , text_inference ]
183230 }
184231
185232
@@ -207,7 +254,10 @@ def annotations_by_data_type_v2(
207254 checklist_inference , text_inference
208255 ],
209256 'text' : [entity_inference , checklist_inference , text_inference ],
210- 'video' : [video_checklist_inference ]
257+ 'video' : [video_checklist_inference ],
258+ 'llmpromptcreation' : [checklist_inference , text_inference ],
259+ 'llmpromptresponsecreation' : [checklist_inference , text_inference ],
260+ 'llmresponsecreation' : [checklist_inference , text_inference ]
211261 }
212262
213263
0 commit comments