llama-cloud 0.0.2__py3-none-any.whl → 0.0.3__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.

Potentially problematic release.


This version of llama-cloud might be problematic. Click here for more details.

Files changed (101) hide show
  1. llama_cloud/core/jsonable_encoder.py +3 -0
  2. llama_cloud/resources/api_keys/client.py +11 -8
  3. llama_cloud/resources/billing/client.py +9 -6
  4. llama_cloud/resources/component_definitions/client.py +9 -6
  5. llama_cloud/resources/data_sinks/client.py +21 -18
  6. llama_cloud/resources/data_sources/client.py +21 -18
  7. llama_cloud/resources/deprecated/client.py +27 -24
  8. llama_cloud/resources/evals/client.py +27 -24
  9. llama_cloud/resources/files/client.py +15 -12
  10. llama_cloud/resources/parsing/client.py +27 -24
  11. llama_cloud/resources/pipelines/client.py +73 -70
  12. llama_cloud/resources/projects/client.py +43 -40
  13. llama_cloud/types/api_key.py +3 -0
  14. llama_cloud/types/azure_open_ai_embedding.py +3 -0
  15. llama_cloud/types/base.py +3 -0
  16. llama_cloud/types/base_prompt_template.py +3 -0
  17. llama_cloud/types/bedrock_embedding.py +3 -0
  18. llama_cloud/types/chat_message.py +3 -0
  19. llama_cloud/types/cloud_az_storage_blob_data_source.py +3 -0
  20. llama_cloud/types/cloud_chroma_vector_store.py +3 -0
  21. llama_cloud/types/cloud_document.py +3 -0
  22. llama_cloud/types/cloud_document_create.py +3 -0
  23. llama_cloud/types/cloud_gcs_data_source.py +3 -0
  24. llama_cloud/types/cloud_google_drive_data_source.py +3 -0
  25. llama_cloud/types/cloud_one_drive_data_source.py +3 -0
  26. llama_cloud/types/cloud_pinecone_vector_store.py +3 -0
  27. llama_cloud/types/cloud_postgres_vector_store.py +3 -0
  28. llama_cloud/types/cloud_qdrant_vector_store.py +3 -0
  29. llama_cloud/types/cloud_s_3_data_source.py +3 -0
  30. llama_cloud/types/cloud_sharepoint_data_source.py +3 -0
  31. llama_cloud/types/cloud_weaviate_vector_store.py +3 -0
  32. llama_cloud/types/code_splitter.py +3 -0
  33. llama_cloud/types/cohere_embedding.py +3 -0
  34. llama_cloud/types/configurable_transformation_definition.py +3 -0
  35. llama_cloud/types/configured_transformation_item.py +3 -0
  36. llama_cloud/types/data_sink.py +3 -0
  37. llama_cloud/types/data_sink_create.py +3 -0
  38. llama_cloud/types/data_sink_definition.py +3 -0
  39. llama_cloud/types/data_source.py +3 -0
  40. llama_cloud/types/data_source_create.py +3 -0
  41. llama_cloud/types/data_source_definition.py +3 -0
  42. llama_cloud/types/eval_dataset.py +3 -0
  43. llama_cloud/types/eval_dataset_job_params.py +3 -0
  44. llama_cloud/types/eval_dataset_job_record.py +3 -0
  45. llama_cloud/types/eval_execution_params.py +3 -0
  46. llama_cloud/types/eval_execution_params_override.py +3 -0
  47. llama_cloud/types/eval_llm_model_data.py +3 -0
  48. llama_cloud/types/eval_question.py +3 -0
  49. llama_cloud/types/eval_question_create.py +3 -0
  50. llama_cloud/types/eval_question_result.py +3 -0
  51. llama_cloud/types/file.py +3 -0
  52. llama_cloud/types/gemini_embedding.py +3 -0
  53. llama_cloud/types/html_node_parser.py +3 -0
  54. llama_cloud/types/http_validation_error.py +3 -0
  55. llama_cloud/types/hugging_face_inference_api_embedding.py +3 -0
  56. llama_cloud/types/json_node_parser.py +3 -0
  57. llama_cloud/types/llm.py +3 -0
  58. llama_cloud/types/local_eval.py +3 -0
  59. llama_cloud/types/local_eval_results.py +3 -0
  60. llama_cloud/types/local_eval_sets.py +3 -0
  61. llama_cloud/types/markdown_element_node_parser.py +3 -0
  62. llama_cloud/types/markdown_node_parser.py +3 -0
  63. llama_cloud/types/metadata_filter.py +3 -0
  64. llama_cloud/types/metadata_filters.py +3 -0
  65. llama_cloud/types/metric_result.py +3 -0
  66. llama_cloud/types/node_parser.py +3 -0
  67. llama_cloud/types/open_ai_embedding.py +3 -0
  68. llama_cloud/types/parsing_history_item.py +3 -0
  69. llama_cloud/types/parsing_job.py +3 -0
  70. llama_cloud/types/parsing_job_json_result.py +3 -0
  71. llama_cloud/types/parsing_job_markdown_result.py +3 -0
  72. llama_cloud/types/parsing_job_text_result.py +3 -0
  73. llama_cloud/types/parsing_usage.py +3 -0
  74. llama_cloud/types/pipeline.py +3 -0
  75. llama_cloud/types/pipeline_create.py +3 -0
  76. llama_cloud/types/pipeline_data_source.py +3 -0
  77. llama_cloud/types/pipeline_data_source_create.py +3 -0
  78. llama_cloud/types/pipeline_deployment.py +3 -0
  79. llama_cloud/types/pipeline_file.py +3 -0
  80. llama_cloud/types/pipeline_file_create.py +3 -0
  81. llama_cloud/types/pipeline_file_status_response.py +3 -0
  82. llama_cloud/types/preset_retrieval_params.py +3 -0
  83. llama_cloud/types/presigned_url.py +3 -0
  84. llama_cloud/types/project.py +3 -0
  85. llama_cloud/types/project_create.py +3 -0
  86. llama_cloud/types/prompt_mixin_prompts.py +3 -0
  87. llama_cloud/types/prompt_spec.py +3 -0
  88. llama_cloud/types/related_node_info.py +3 -0
  89. llama_cloud/types/retrieve_results.py +3 -0
  90. llama_cloud/types/sentence_splitter.py +3 -0
  91. llama_cloud/types/simple_file_node_parser.py +3 -0
  92. llama_cloud/types/supported_eval_llm_model.py +3 -0
  93. llama_cloud/types/text_node.py +3 -0
  94. llama_cloud/types/text_node_with_score.py +3 -0
  95. llama_cloud/types/token_text_splitter.py +3 -0
  96. llama_cloud/types/validation_error.py +3 -0
  97. {llama_cloud-0.0.2.dist-info → llama_cloud-0.0.3.dist-info}/METADATA +1 -1
  98. llama_cloud-0.0.3.dist-info/RECORD +173 -0
  99. llama_cloud-0.0.2.dist-info/RECORD +0 -173
  100. {llama_cloud-0.0.2.dist-info → llama_cloud-0.0.3.dist-info}/LICENSE +0 -0
  101. {llama_cloud-0.0.2.dist-info → llama_cloud-0.0.3.dist-info}/WHEEL +0 -0
@@ -19,6 +19,9 @@ from ...types.project_create import ProjectCreate
19
19
  from ...types.prompt_mixin_prompts import PromptMixinPrompts
20
20
 
21
21
  try:
22
+ import pydantic
23
+ if pydantic.__version__.startswith("1."):
24
+ raise ImportError
22
25
  import pydantic.v1 as pydantic # type: ignore
23
26
  except ImportError:
24
27
  import pydantic # type: ignore
@@ -38,7 +41,7 @@ class ProjectsClient:
38
41
  Parameters:
39
42
  - project_name: typing.Optional[str].
40
43
  ---
41
- from platform.client import LlamaCloud
44
+ from llama_cloud.client import LlamaCloud
42
45
 
43
46
  client = LlamaCloud(
44
47
  token="YOUR_TOKEN",
@@ -70,8 +73,8 @@ class ProjectsClient:
70
73
  Parameters:
71
74
  - request: ProjectCreate.
72
75
  ---
73
- from platform import ProjectCreate
74
- from platform.client import LlamaCloud
76
+ from llama_cloud import ProjectCreate
77
+ from llama_cloud.client import LlamaCloud
75
78
 
76
79
  client = LlamaCloud(
77
80
  token="YOUR_TOKEN",
@@ -108,8 +111,8 @@ class ProjectsClient:
108
111
  Parameters:
109
112
  - request: ProjectCreate.
110
113
  ---
111
- from platform import ProjectCreate
112
- from platform.client import LlamaCloud
114
+ from llama_cloud import ProjectCreate
115
+ from llama_cloud.client import LlamaCloud
113
116
 
114
117
  client = LlamaCloud(
115
118
  token="YOUR_TOKEN",
@@ -145,7 +148,7 @@ class ProjectsClient:
145
148
  Parameters:
146
149
  - project_id: str.
147
150
  ---
148
- from platform.client import LlamaCloud
151
+ from llama_cloud.client import LlamaCloud
149
152
 
150
153
  client = LlamaCloud(
151
154
  token="YOUR_TOKEN",
@@ -180,7 +183,7 @@ class ProjectsClient:
180
183
 
181
184
  - name: str.
182
185
  ---
183
- from platform.client import LlamaCloud
186
+ from llama_cloud.client import LlamaCloud
184
187
 
185
188
  client = LlamaCloud(
186
189
  token="YOUR_TOKEN",
@@ -215,7 +218,7 @@ class ProjectsClient:
215
218
  Parameters:
216
219
  - project_id: str.
217
220
  ---
218
- from platform.client import LlamaCloud
221
+ from llama_cloud.client import LlamaCloud
219
222
 
220
223
  client = LlamaCloud(
221
224
  token="YOUR_TOKEN",
@@ -248,7 +251,7 @@ class ProjectsClient:
248
251
  Parameters:
249
252
  - project_id: str.
250
253
  ---
251
- from platform.client import LlamaCloud
254
+ from llama_cloud.client import LlamaCloud
252
255
 
253
256
  client = LlamaCloud(
254
257
  token="YOUR_TOKEN",
@@ -285,7 +288,7 @@ class ProjectsClient:
285
288
 
286
289
  - name: str. The name of the EvalDataset.
287
290
  ---
288
- from platform.client import LlamaCloud
291
+ from llama_cloud.client import LlamaCloud
289
292
 
290
293
  client = LlamaCloud(
291
294
  token="YOUR_TOKEN",
@@ -328,7 +331,7 @@ class ProjectsClient:
328
331
 
329
332
  - results: typing.Dict[str, typing.List[LocalEval]]. The eval results.
330
333
  ---
331
- from platform.client import LlamaCloud
334
+ from llama_cloud.client import LlamaCloud
332
335
 
333
336
  client = LlamaCloud(
334
337
  token="YOUR_TOKEN",
@@ -366,7 +369,7 @@ class ProjectsClient:
366
369
  Parameters:
367
370
  - project_id: str.
368
371
  ---
369
- from platform.client import LlamaCloud
372
+ from llama_cloud.client import LlamaCloud
370
373
 
371
374
  client = LlamaCloud(
372
375
  token="YOUR_TOKEN",
@@ -399,7 +402,7 @@ class ProjectsClient:
399
402
  Parameters:
400
403
  - project_id: str.
401
404
  ---
402
- from platform.client import LlamaCloud
405
+ from llama_cloud.client import LlamaCloud
403
406
 
404
407
  client = LlamaCloud(
405
408
  token="YOUR_TOKEN",
@@ -436,7 +439,7 @@ class ProjectsClient:
436
439
 
437
440
  - local_eval_set_id: str.
438
441
  ---
439
- from platform.client import LlamaCloud
442
+ from llama_cloud.client import LlamaCloud
440
443
 
441
444
  client = LlamaCloud(
442
445
  token="YOUR_TOKEN",
@@ -473,7 +476,7 @@ class ProjectsClient:
473
476
  Parameters:
474
477
  - project_id: str.
475
478
  ---
476
- from platform.client import LlamaCloud
479
+ from llama_cloud.client import LlamaCloud
477
480
 
478
481
  client = LlamaCloud(
479
482
  token="YOUR_TOKEN",
@@ -508,8 +511,8 @@ class ProjectsClient:
508
511
 
509
512
  - request: PromptMixinPrompts.
510
513
  ---
511
- from platform import PromptMixinPrompts
512
- from platform.client import LlamaCloud
514
+ from llama_cloud import PromptMixinPrompts
515
+ from llama_cloud.client import LlamaCloud
513
516
 
514
517
  client = LlamaCloud(
515
518
  token="YOUR_TOKEN",
@@ -554,8 +557,8 @@ class ProjectsClient:
554
557
 
555
558
  - request: PromptMixinPrompts.
556
559
  ---
557
- from platform import PromptMixinPrompts
558
- from platform.client import LlamaCloud
560
+ from llama_cloud import PromptMixinPrompts
561
+ from llama_cloud.client import LlamaCloud
559
562
 
560
563
  client = LlamaCloud(
561
564
  token="YOUR_TOKEN",
@@ -599,7 +602,7 @@ class ProjectsClient:
599
602
 
600
603
  - prompt_set_id: str.
601
604
  ---
602
- from platform.client import LlamaCloud
605
+ from llama_cloud.client import LlamaCloud
603
606
 
604
607
  client = LlamaCloud(
605
608
  token="YOUR_TOKEN",
@@ -640,7 +643,7 @@ class AsyncProjectsClient:
640
643
  Parameters:
641
644
  - project_name: typing.Optional[str].
642
645
  ---
643
- from platform.client import AsyncLlamaCloud
646
+ from llama_cloud.client import AsyncLlamaCloud
644
647
 
645
648
  client = AsyncLlamaCloud(
646
649
  token="YOUR_TOKEN",
@@ -672,8 +675,8 @@ class AsyncProjectsClient:
672
675
  Parameters:
673
676
  - request: ProjectCreate.
674
677
  ---
675
- from platform import ProjectCreate
676
- from platform.client import AsyncLlamaCloud
678
+ from llama_cloud import ProjectCreate
679
+ from llama_cloud.client import AsyncLlamaCloud
677
680
 
678
681
  client = AsyncLlamaCloud(
679
682
  token="YOUR_TOKEN",
@@ -710,8 +713,8 @@ class AsyncProjectsClient:
710
713
  Parameters:
711
714
  - request: ProjectCreate.
712
715
  ---
713
- from platform import ProjectCreate
714
- from platform.client import AsyncLlamaCloud
716
+ from llama_cloud import ProjectCreate
717
+ from llama_cloud.client import AsyncLlamaCloud
715
718
 
716
719
  client = AsyncLlamaCloud(
717
720
  token="YOUR_TOKEN",
@@ -747,7 +750,7 @@ class AsyncProjectsClient:
747
750
  Parameters:
748
751
  - project_id: str.
749
752
  ---
750
- from platform.client import AsyncLlamaCloud
753
+ from llama_cloud.client import AsyncLlamaCloud
751
754
 
752
755
  client = AsyncLlamaCloud(
753
756
  token="YOUR_TOKEN",
@@ -782,7 +785,7 @@ class AsyncProjectsClient:
782
785
 
783
786
  - name: str.
784
787
  ---
785
- from platform.client import AsyncLlamaCloud
788
+ from llama_cloud.client import AsyncLlamaCloud
786
789
 
787
790
  client = AsyncLlamaCloud(
788
791
  token="YOUR_TOKEN",
@@ -817,7 +820,7 @@ class AsyncProjectsClient:
817
820
  Parameters:
818
821
  - project_id: str.
819
822
  ---
820
- from platform.client import AsyncLlamaCloud
823
+ from llama_cloud.client import AsyncLlamaCloud
821
824
 
822
825
  client = AsyncLlamaCloud(
823
826
  token="YOUR_TOKEN",
@@ -850,7 +853,7 @@ class AsyncProjectsClient:
850
853
  Parameters:
851
854
  - project_id: str.
852
855
  ---
853
- from platform.client import AsyncLlamaCloud
856
+ from llama_cloud.client import AsyncLlamaCloud
854
857
 
855
858
  client = AsyncLlamaCloud(
856
859
  token="YOUR_TOKEN",
@@ -887,7 +890,7 @@ class AsyncProjectsClient:
887
890
 
888
891
  - name: str. The name of the EvalDataset.
889
892
  ---
890
- from platform.client import AsyncLlamaCloud
893
+ from llama_cloud.client import AsyncLlamaCloud
891
894
 
892
895
  client = AsyncLlamaCloud(
893
896
  token="YOUR_TOKEN",
@@ -930,7 +933,7 @@ class AsyncProjectsClient:
930
933
 
931
934
  - results: typing.Dict[str, typing.List[LocalEval]]. The eval results.
932
935
  ---
933
- from platform.client import AsyncLlamaCloud
936
+ from llama_cloud.client import AsyncLlamaCloud
934
937
 
935
938
  client = AsyncLlamaCloud(
936
939
  token="YOUR_TOKEN",
@@ -968,7 +971,7 @@ class AsyncProjectsClient:
968
971
  Parameters:
969
972
  - project_id: str.
970
973
  ---
971
- from platform.client import AsyncLlamaCloud
974
+ from llama_cloud.client import AsyncLlamaCloud
972
975
 
973
976
  client = AsyncLlamaCloud(
974
977
  token="YOUR_TOKEN",
@@ -1001,7 +1004,7 @@ class AsyncProjectsClient:
1001
1004
  Parameters:
1002
1005
  - project_id: str.
1003
1006
  ---
1004
- from platform.client import AsyncLlamaCloud
1007
+ from llama_cloud.client import AsyncLlamaCloud
1005
1008
 
1006
1009
  client = AsyncLlamaCloud(
1007
1010
  token="YOUR_TOKEN",
@@ -1038,7 +1041,7 @@ class AsyncProjectsClient:
1038
1041
 
1039
1042
  - local_eval_set_id: str.
1040
1043
  ---
1041
- from platform.client import AsyncLlamaCloud
1044
+ from llama_cloud.client import AsyncLlamaCloud
1042
1045
 
1043
1046
  client = AsyncLlamaCloud(
1044
1047
  token="YOUR_TOKEN",
@@ -1075,7 +1078,7 @@ class AsyncProjectsClient:
1075
1078
  Parameters:
1076
1079
  - project_id: str.
1077
1080
  ---
1078
- from platform.client import AsyncLlamaCloud
1081
+ from llama_cloud.client import AsyncLlamaCloud
1079
1082
 
1080
1083
  client = AsyncLlamaCloud(
1081
1084
  token="YOUR_TOKEN",
@@ -1110,8 +1113,8 @@ class AsyncProjectsClient:
1110
1113
 
1111
1114
  - request: PromptMixinPrompts.
1112
1115
  ---
1113
- from platform import PromptMixinPrompts
1114
- from platform.client import AsyncLlamaCloud
1116
+ from llama_cloud import PromptMixinPrompts
1117
+ from llama_cloud.client import AsyncLlamaCloud
1115
1118
 
1116
1119
  client = AsyncLlamaCloud(
1117
1120
  token="YOUR_TOKEN",
@@ -1156,8 +1159,8 @@ class AsyncProjectsClient:
1156
1159
 
1157
1160
  - request: PromptMixinPrompts.
1158
1161
  ---
1159
- from platform import PromptMixinPrompts
1160
- from platform.client import AsyncLlamaCloud
1162
+ from llama_cloud import PromptMixinPrompts
1163
+ from llama_cloud.client import AsyncLlamaCloud
1161
1164
 
1162
1165
  client = AsyncLlamaCloud(
1163
1166
  token="YOUR_TOKEN",
@@ -1201,7 +1204,7 @@ class AsyncProjectsClient:
1201
1204
 
1202
1205
  - prompt_set_id: str.
1203
1206
  ---
1204
- from platform.client import AsyncLlamaCloud
1207
+ from llama_cloud.client import AsyncLlamaCloud
1205
1208
 
1206
1209
  client = AsyncLlamaCloud(
1207
1210
  token="YOUR_TOKEN",
@@ -6,6 +6,9 @@ import typing
6
6
  from ..core.datetime_utils import serialize_datetime
7
7
 
8
8
  try:
9
+ import pydantic
10
+ if pydantic.__version__.startswith("1."):
11
+ raise ImportError
9
12
  import pydantic.v1 as pydantic # type: ignore
10
13
  except ImportError:
11
14
  import pydantic # type: ignore
@@ -6,6 +6,9 @@ import typing
6
6
  from ..core.datetime_utils import serialize_datetime
7
7
 
8
8
  try:
9
+ import pydantic
10
+ if pydantic.__version__.startswith("1."):
11
+ raise ImportError
9
12
  import pydantic.v1 as pydantic # type: ignore
10
13
  except ImportError:
11
14
  import pydantic # type: ignore
llama_cloud/types/base.py CHANGED
@@ -6,6 +6,9 @@ import typing
6
6
  from ..core.datetime_utils import serialize_datetime
7
7
 
8
8
  try:
9
+ import pydantic
10
+ if pydantic.__version__.startswith("1."):
11
+ raise ImportError
9
12
  import pydantic.v1 as pydantic # type: ignore
10
13
  except ImportError:
11
14
  import pydantic # type: ignore
@@ -6,6 +6,9 @@ import typing
6
6
  from ..core.datetime_utils import serialize_datetime
7
7
 
8
8
  try:
9
+ import pydantic
10
+ if pydantic.__version__.startswith("1."):
11
+ raise ImportError
9
12
  import pydantic.v1 as pydantic # type: ignore
10
13
  except ImportError:
11
14
  import pydantic # type: ignore
@@ -6,6 +6,9 @@ import typing
6
6
  from ..core.datetime_utils import serialize_datetime
7
7
 
8
8
  try:
9
+ import pydantic
10
+ if pydantic.__version__.startswith("1."):
11
+ raise ImportError
9
12
  import pydantic.v1 as pydantic # type: ignore
10
13
  except ImportError:
11
14
  import pydantic # type: ignore
@@ -7,6 +7,9 @@ from ..core.datetime_utils import serialize_datetime
7
7
  from .message_role import MessageRole
8
8
 
9
9
  try:
10
+ import pydantic
11
+ if pydantic.__version__.startswith("1."):
12
+ raise ImportError
10
13
  import pydantic.v1 as pydantic # type: ignore
11
14
  except ImportError:
12
15
  import pydantic # type: ignore
@@ -6,6 +6,9 @@ import typing
6
6
  from ..core.datetime_utils import serialize_datetime
7
7
 
8
8
  try:
9
+ import pydantic
10
+ if pydantic.__version__.startswith("1."):
11
+ raise ImportError
9
12
  import pydantic.v1 as pydantic # type: ignore
10
13
  except ImportError:
11
14
  import pydantic # type: ignore
@@ -6,6 +6,9 @@ import typing
6
6
  from ..core.datetime_utils import serialize_datetime
7
7
 
8
8
  try:
9
+ import pydantic
10
+ if pydantic.__version__.startswith("1."):
11
+ raise ImportError
9
12
  import pydantic.v1 as pydantic # type: ignore
10
13
  except ImportError:
11
14
  import pydantic # type: ignore
@@ -6,6 +6,9 @@ import typing
6
6
  from ..core.datetime_utils import serialize_datetime
7
7
 
8
8
  try:
9
+ import pydantic
10
+ if pydantic.__version__.startswith("1."):
11
+ raise ImportError
9
12
  import pydantic.v1 as pydantic # type: ignore
10
13
  except ImportError:
11
14
  import pydantic # type: ignore
@@ -6,6 +6,9 @@ import typing
6
6
  from ..core.datetime_utils import serialize_datetime
7
7
 
8
8
  try:
9
+ import pydantic
10
+ if pydantic.__version__.startswith("1."):
11
+ raise ImportError
9
12
  import pydantic.v1 as pydantic # type: ignore
10
13
  except ImportError:
11
14
  import pydantic # type: ignore
@@ -6,6 +6,9 @@ import typing
6
6
  from ..core.datetime_utils import serialize_datetime
7
7
 
8
8
  try:
9
+ import pydantic
10
+ if pydantic.__version__.startswith("1."):
11
+ raise ImportError
9
12
  import pydantic.v1 as pydantic # type: ignore
10
13
  except ImportError:
11
14
  import pydantic # type: ignore
@@ -6,6 +6,9 @@ import typing
6
6
  from ..core.datetime_utils import serialize_datetime
7
7
 
8
8
  try:
9
+ import pydantic
10
+ if pydantic.__version__.startswith("1."):
11
+ raise ImportError
9
12
  import pydantic.v1 as pydantic # type: ignore
10
13
  except ImportError:
11
14
  import pydantic # type: ignore
@@ -6,6 +6,9 @@ import typing
6
6
  from ..core.datetime_utils import serialize_datetime
7
7
 
8
8
  try:
9
+ import pydantic
10
+ if pydantic.__version__.startswith("1."):
11
+ raise ImportError
9
12
  import pydantic.v1 as pydantic # type: ignore
10
13
  except ImportError:
11
14
  import pydantic # type: ignore
@@ -6,6 +6,9 @@ import typing
6
6
  from ..core.datetime_utils import serialize_datetime
7
7
 
8
8
  try:
9
+ import pydantic
10
+ if pydantic.__version__.startswith("1."):
11
+ raise ImportError
9
12
  import pydantic.v1 as pydantic # type: ignore
10
13
  except ImportError:
11
14
  import pydantic # type: ignore
@@ -6,6 +6,9 @@ import typing
6
6
  from ..core.datetime_utils import serialize_datetime
7
7
 
8
8
  try:
9
+ import pydantic
10
+ if pydantic.__version__.startswith("1."):
11
+ raise ImportError
9
12
  import pydantic.v1 as pydantic # type: ignore
10
13
  except ImportError:
11
14
  import pydantic # type: ignore
@@ -6,6 +6,9 @@ import typing
6
6
  from ..core.datetime_utils import serialize_datetime
7
7
 
8
8
  try:
9
+ import pydantic
10
+ if pydantic.__version__.startswith("1."):
11
+ raise ImportError
9
12
  import pydantic.v1 as pydantic # type: ignore
10
13
  except ImportError:
11
14
  import pydantic # type: ignore
@@ -6,6 +6,9 @@ import typing
6
6
  from ..core.datetime_utils import serialize_datetime
7
7
 
8
8
  try:
9
+ import pydantic
10
+ if pydantic.__version__.startswith("1."):
11
+ raise ImportError
9
12
  import pydantic.v1 as pydantic # type: ignore
10
13
  except ImportError:
11
14
  import pydantic # type: ignore
@@ -6,6 +6,9 @@ import typing
6
6
  from ..core.datetime_utils import serialize_datetime
7
7
 
8
8
  try:
9
+ import pydantic
10
+ if pydantic.__version__.startswith("1."):
11
+ raise ImportError
9
12
  import pydantic.v1 as pydantic # type: ignore
10
13
  except ImportError:
11
14
  import pydantic # type: ignore
@@ -6,6 +6,9 @@ import typing
6
6
  from ..core.datetime_utils import serialize_datetime
7
7
 
8
8
  try:
9
+ import pydantic
10
+ if pydantic.__version__.startswith("1."):
11
+ raise ImportError
9
12
  import pydantic.v1 as pydantic # type: ignore
10
13
  except ImportError:
11
14
  import pydantic # type: ignore
@@ -6,6 +6,9 @@ import typing
6
6
  from ..core.datetime_utils import serialize_datetime
7
7
 
8
8
  try:
9
+ import pydantic
10
+ if pydantic.__version__.startswith("1."):
11
+ raise ImportError
9
12
  import pydantic.v1 as pydantic # type: ignore
10
13
  except ImportError:
11
14
  import pydantic # type: ignore
@@ -6,6 +6,9 @@ import typing
6
6
  from ..core.datetime_utils import serialize_datetime
7
7
 
8
8
  try:
9
+ import pydantic
10
+ if pydantic.__version__.startswith("1."):
11
+ raise ImportError
9
12
  import pydantic.v1 as pydantic # type: ignore
10
13
  except ImportError:
11
14
  import pydantic # type: ignore
@@ -8,6 +8,9 @@ from .configurable_transformation_names import ConfigurableTransformationNames
8
8
  from .transformation_category_names import TransformationCategoryNames
9
9
 
10
10
  try:
11
+ import pydantic
12
+ if pydantic.__version__.startswith("1."):
13
+ raise ImportError
11
14
  import pydantic.v1 as pydantic # type: ignore
12
15
  except ImportError:
13
16
  import pydantic # type: ignore
@@ -8,6 +8,9 @@ from .configurable_transformation_names import ConfigurableTransformationNames
8
8
  from .configured_transformation_item_component import ConfiguredTransformationItemComponent
9
9
 
10
10
  try:
11
+ import pydantic
12
+ if pydantic.__version__.startswith("1."):
13
+ raise ImportError
11
14
  import pydantic.v1 as pydantic # type: ignore
12
15
  except ImportError:
13
16
  import pydantic # type: ignore
@@ -8,6 +8,9 @@ from .configurable_data_sink_names import ConfigurableDataSinkNames
8
8
  from .data_sink_component import DataSinkComponent
9
9
 
10
10
  try:
11
+ import pydantic
12
+ if pydantic.__version__.startswith("1."):
13
+ raise ImportError
11
14
  import pydantic.v1 as pydantic # type: ignore
12
15
  except ImportError:
13
16
  import pydantic # type: ignore
@@ -8,6 +8,9 @@ from .configurable_data_sink_names import ConfigurableDataSinkNames
8
8
  from .data_sink_create_component import DataSinkCreateComponent
9
9
 
10
10
  try:
11
+ import pydantic
12
+ if pydantic.__version__.startswith("1."):
13
+ raise ImportError
11
14
  import pydantic.v1 as pydantic # type: ignore
12
15
  except ImportError:
13
16
  import pydantic # type: ignore
@@ -7,6 +7,9 @@ from ..core.datetime_utils import serialize_datetime
7
7
  from .configurable_data_sink_names import ConfigurableDataSinkNames
8
8
 
9
9
  try:
10
+ import pydantic
11
+ if pydantic.__version__.startswith("1."):
12
+ raise ImportError
10
13
  import pydantic.v1 as pydantic # type: ignore
11
14
  except ImportError:
12
15
  import pydantic # type: ignore
@@ -9,6 +9,9 @@ from .data_source_component import DataSourceComponent
9
9
  from .data_source_custom_metadata_value import DataSourceCustomMetadataValue
10
10
 
11
11
  try:
12
+ import pydantic
13
+ if pydantic.__version__.startswith("1."):
14
+ raise ImportError
12
15
  import pydantic.v1 as pydantic # type: ignore
13
16
  except ImportError:
14
17
  import pydantic # type: ignore
@@ -9,6 +9,9 @@ from .data_source_create_component import DataSourceCreateComponent
9
9
  from .data_source_create_custom_metadata_value import DataSourceCreateCustomMetadataValue
10
10
 
11
11
  try:
12
+ import pydantic
13
+ if pydantic.__version__.startswith("1."):
14
+ raise ImportError
12
15
  import pydantic.v1 as pydantic # type: ignore
13
16
  except ImportError:
14
17
  import pydantic # type: ignore
@@ -7,6 +7,9 @@ from ..core.datetime_utils import serialize_datetime
7
7
  from .configurable_data_source_names import ConfigurableDataSourceNames
8
8
 
9
9
  try:
10
+ import pydantic
11
+ if pydantic.__version__.startswith("1."):
12
+ raise ImportError
10
13
  import pydantic.v1 as pydantic # type: ignore
11
14
  except ImportError:
12
15
  import pydantic # type: ignore
@@ -6,6 +6,9 @@ import typing
6
6
  from ..core.datetime_utils import serialize_datetime
7
7
 
8
8
  try:
9
+ import pydantic
10
+ if pydantic.__version__.startswith("1."):
11
+ raise ImportError
9
12
  import pydantic.v1 as pydantic # type: ignore
10
13
  except ImportError:
11
14
  import pydantic # type: ignore
@@ -7,6 +7,9 @@ from ..core.datetime_utils import serialize_datetime
7
7
  from .eval_execution_params import EvalExecutionParams
8
8
 
9
9
  try:
10
+ import pydantic
11
+ if pydantic.__version__.startswith("1."):
12
+ raise ImportError
10
13
  import pydantic.v1 as pydantic # type: ignore
11
14
  except ImportError:
12
15
  import pydantic # type: ignore
@@ -11,6 +11,9 @@ from .eval_dataset_job_params import EvalDatasetJobParams
11
11
  from .status_enum import StatusEnum
12
12
 
13
13
  try:
14
+ import pydantic
15
+ if pydantic.__version__.startswith("1."):
16
+ raise ImportError
14
17
  import pydantic.v1 as pydantic # type: ignore
15
18
  except ImportError:
16
19
  import pydantic # type: ignore
@@ -7,6 +7,9 @@ from ..core.datetime_utils import serialize_datetime
7
7
  from .supported_eval_llm_model_names import SupportedEvalLlmModelNames
8
8
 
9
9
  try:
10
+ import pydantic
11
+ if pydantic.__version__.startswith("1."):
12
+ raise ImportError
10
13
  import pydantic.v1 as pydantic # type: ignore
11
14
  except ImportError:
12
15
  import pydantic # type: ignore