truefoundry 0.5.10rc1__py3-none-any.whl → 0.5.11rc1__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 truefoundry might be problematic. Click here for more details.

Files changed (266) hide show
  1. truefoundry/__init__.py +19 -0
  2. truefoundry/_client.py +36 -0
  3. truefoundry/cli/display_util.py +1 -1
  4. truefoundry/common/utils.py +9 -0
  5. truefoundry/deploy/__init__.py +2 -2
  6. truefoundry/deploy/_autogen/models.py +1591 -0
  7. truefoundry/deploy/builder/__init__.py +1 -1
  8. truefoundry/deploy/builder/builders/dockerfile.py +1 -1
  9. truefoundry/deploy/builder/builders/tfy_notebook_buildpack/__init__.py +1 -1
  10. truefoundry/deploy/builder/builders/tfy_python_buildpack/__init__.py +1 -1
  11. truefoundry/deploy/builder/builders/tfy_python_buildpack/dockerfile_template.py +1 -1
  12. truefoundry/deploy/io/output_callback.py +13 -6
  13. truefoundry/deploy/io/rich_output_callback.py +8 -4
  14. truefoundry/deploy/lib/clients/servicefoundry_client.py +117 -138
  15. truefoundry/deploy/lib/dao/apply.py +2 -2
  16. truefoundry/deploy/lib/dao/delete.py +2 -2
  17. truefoundry/deploy/lib/model/entity.py +37 -24
  18. truefoundry/deploy/v2/lib/deploy.py +7 -7
  19. truefoundry/deploy/v2/lib/deploy_workflow.py +9 -9
  20. truefoundry/deploy/v2/lib/deployable_patched_models.py +1 -1
  21. truefoundry/deploy/v2/lib/patched_models.py +7 -7
  22. truefoundry/deploy/v2/lib/source.py +1 -1
  23. truefoundry/ml/__init__.py +2 -2
  24. truefoundry/ml/_autogen/client/__init__.py +457 -0
  25. truefoundry/ml/_autogen/client/api/__init__.py +16 -0
  26. truefoundry/ml/{autogen → _autogen}/client/api/auth_api.py +6 -6
  27. truefoundry/ml/{autogen → _autogen}/client/api/deprecated_api.py +12 -345
  28. truefoundry/ml/{autogen → _autogen}/client/api/experiments_api.py +89 -44
  29. truefoundry/ml/{autogen → _autogen}/client/api/generate_code_snippet_api.py +10 -10
  30. truefoundry/ml/{autogen → _autogen}/client/api/health_api.py +5 -5
  31. truefoundry/ml/{autogen → _autogen}/client/api/metrics_api.py +10 -10
  32. truefoundry/ml/{autogen → _autogen}/client/api/mlfoundry_artifacts_api.py +589 -197
  33. truefoundry/ml/{autogen → _autogen}/client/api/run_artifacts_api.py +14 -9
  34. truefoundry/ml/{autogen → _autogen}/client/api/runs_api.py +41 -41
  35. truefoundry/ml/{autogen → _autogen}/client/api_client.py +8 -8
  36. truefoundry/ml/{autogen → _autogen}/client/configuration.py +30 -58
  37. truefoundry/ml/{autogen → _autogen}/client/exceptions.py +2 -2
  38. truefoundry/ml/_autogen/client/models/__init__.py +428 -0
  39. truefoundry/ml/{autogen → _autogen}/client/models/agent_app.py +14 -7
  40. truefoundry/ml/{autogen/client/models/agent.py → _autogen/client/models/agent_manifest.py} +37 -35
  41. truefoundry/ml/{autogen/client/models/agent_open_api_tool.py → _autogen/client/models/agent_open_api_tool_manifest.py} +50 -37
  42. truefoundry/ml/{autogen → _autogen}/client/models/agent_open_api_tool_with_fqn.py +45 -32
  43. truefoundry/ml/{autogen → _autogen}/client/models/agent_with_fqn.py +32 -30
  44. truefoundry/ml/_autogen/client/models/apply_request_dto.py +75 -0
  45. truefoundry/ml/_autogen/client/models/apply_response_dto.py +79 -0
  46. truefoundry/ml/{autogen → _autogen}/client/models/artifact_dto.py +7 -5
  47. truefoundry/ml/{autogen/client/models/artifact_version_manifest.py → _autogen/client/models/artifact_manifest.py} +39 -31
  48. truefoundry/ml/_autogen/client/models/artifact_path.py +70 -0
  49. truefoundry/ml/{autogen → _autogen}/client/models/artifact_response_dto.py +3 -3
  50. truefoundry/ml/{autogen → _autogen}/client/models/artifact_type.py +3 -3
  51. truefoundry/ml/{autogen → _autogen}/client/models/artifact_version_dto.py +10 -18
  52. truefoundry/ml/{autogen → _autogen}/client/models/artifact_version_response_dto.py +5 -3
  53. truefoundry/ml/{autogen → _autogen}/client/models/artifact_version_serialization_format.py +2 -2
  54. truefoundry/ml/{autogen → _autogen}/client/models/artifact_version_status.py +2 -2
  55. truefoundry/ml/{autogen → _autogen}/client/models/assistant_message.py +6 -6
  56. truefoundry/ml/{autogen → _autogen}/client/models/authorize_user_for_model_request_dto.py +2 -2
  57. truefoundry/ml/{autogen → _autogen}/client/models/authorize_user_for_model_version_request_dto.py +2 -2
  58. truefoundry/ml/{autogen → _autogen}/client/models/blob_storage_reference.py +6 -9
  59. truefoundry/ml/{autogen → _autogen}/client/models/body_get_search_runs_get.py +2 -2
  60. truefoundry/ml/{autogen/client/models/chat_prompt.py → _autogen/client/models/chat_prompt_manifest.py} +39 -37
  61. truefoundry/ml/{autogen/client/models/chat_prompt_messages_inner.py → _autogen/client/models/chat_prompt_manifest_messages_inner.py} +15 -15
  62. truefoundry/ml/{autogen → _autogen}/client/models/columns_dto.py +2 -2
  63. truefoundry/ml/{autogen → _autogen}/client/models/command.py +2 -2
  64. truefoundry/ml/{autogen → _autogen}/client/models/content.py +4 -4
  65. truefoundry/ml/{autogen → _autogen}/client/models/content1.py +4 -4
  66. truefoundry/ml/{autogen → _autogen}/client/models/content2.py +5 -5
  67. truefoundry/ml/{autogen → _autogen}/client/models/content2_any_of_inner.py +4 -4
  68. truefoundry/ml/{autogen → _autogen}/client/models/create_artifact_request_dto.py +3 -3
  69. truefoundry/ml/{autogen → _autogen}/client/models/create_artifact_response_dto.py +2 -2
  70. truefoundry/ml/{autogen → _autogen}/client/models/create_artifact_version_request_dto.py +3 -3
  71. truefoundry/ml/{autogen → _autogen}/client/models/create_artifact_version_response_dto.py +2 -2
  72. truefoundry/ml/{autogen → _autogen}/client/models/create_dataset_request_dto.py +21 -5
  73. truefoundry/ml/{autogen → _autogen}/client/models/create_experiment_request_dto.py +3 -3
  74. truefoundry/ml/{autogen → _autogen}/client/models/create_experiment_response_dto.py +2 -2
  75. truefoundry/ml/{autogen → _autogen}/client/models/create_model_version_request_dto.py +4 -12
  76. truefoundry/ml/{autogen → _autogen}/client/models/create_multi_part_upload_for_dataset_request_dto.py +2 -2
  77. truefoundry/ml/{autogen → _autogen}/client/models/create_multi_part_upload_for_dataset_response_dto.py +3 -3
  78. truefoundry/ml/{autogen → _autogen}/client/models/create_multi_part_upload_request_dto.py +2 -2
  79. truefoundry/ml/{autogen → _autogen}/client/models/create_python_deployment_config_request_dto.py +2 -2
  80. truefoundry/ml/{autogen → _autogen}/client/models/create_python_deployment_config_response_dto.py +2 -2
  81. truefoundry/ml/{autogen → _autogen}/client/models/create_run_request_dto.py +3 -3
  82. truefoundry/ml/{autogen → _autogen}/client/models/create_run_response_dto.py +3 -3
  83. truefoundry/ml/{autogen → _autogen}/client/models/create_workflow_task_config_request_dto.py +2 -2
  84. truefoundry/ml/_autogen/client/models/data_directory_manifest.py +124 -0
  85. truefoundry/ml/{autogen → _autogen}/client/models/dataset_dto.py +15 -4
  86. truefoundry/ml/{autogen → _autogen}/client/models/dataset_response_dto.py +3 -3
  87. truefoundry/ml/{autogen → _autogen}/client/models/delete_artifact_versions_request_dto.py +2 -2
  88. truefoundry/ml/{autogen → _autogen}/client/models/delete_dataset_request_dto.py +2 -2
  89. truefoundry/ml/{autogen → _autogen}/client/models/delete_files_for_dataset_request_dto.py +2 -2
  90. truefoundry/ml/{autogen → _autogen}/client/models/delete_model_version_request_dto.py +2 -2
  91. truefoundry/ml/{autogen → _autogen}/client/models/delete_run_request.py +2 -2
  92. truefoundry/ml/{autogen → _autogen}/client/models/delete_tag_request_dto.py +2 -2
  93. truefoundry/ml/{autogen → _autogen}/client/models/experiment_dto.py +5 -5
  94. truefoundry/ml/{autogen → _autogen}/client/models/experiment_id_request_dto.py +2 -2
  95. truefoundry/ml/{autogen → _autogen}/client/models/experiment_response_dto.py +3 -3
  96. truefoundry/ml/{autogen → _autogen}/client/models/experiment_tag_dto.py +2 -2
  97. truefoundry/ml/{autogen → _autogen}/client/models/export_deployment_files_request_dto.py +3 -3
  98. truefoundry/ml/{autogen → _autogen}/client/models/external_blob_storage_source.py +17 -9
  99. truefoundry/ml/{autogen → _autogen}/client/models/fast_ai_framework.py +4 -7
  100. truefoundry/ml/{autogen → _autogen}/client/models/file_info_dto.py +6 -3
  101. truefoundry/ml/{autogen → _autogen}/client/models/finalize_artifact_version_request_dto.py +7 -15
  102. truefoundry/ml/{autogen → _autogen}/client/models/framework.py +17 -17
  103. truefoundry/ml/{autogen → _autogen}/client/models/get_artifact_version_aliases_response_dto.py +2 -2
  104. truefoundry/ml/{autogen → _autogen}/client/models/get_experiment_response_dto.py +4 -4
  105. truefoundry/ml/{autogen → _autogen}/client/models/get_latest_run_log_response_dto.py +3 -3
  106. truefoundry/ml/{autogen → _autogen}/client/models/get_metric_history_response.py +3 -3
  107. truefoundry/ml/{autogen → _autogen}/client/models/get_signed_url_for_dataset_write_request_dto.py +2 -2
  108. truefoundry/ml/{autogen → _autogen}/client/models/get_signed_urls_for_artifact_version_read_request_dto.py +2 -2
  109. truefoundry/ml/{autogen → _autogen}/client/models/get_signed_urls_for_artifact_version_read_response_dto.py +3 -3
  110. truefoundry/ml/{autogen → _autogen}/client/models/get_signed_urls_for_artifact_version_write_request_dto.py +2 -2
  111. truefoundry/ml/{autogen → _autogen}/client/models/get_signed_urls_for_artifact_version_write_response_dto.py +3 -3
  112. truefoundry/ml/{autogen → _autogen}/client/models/get_signed_urls_for_dataset_read_request_dto.py +2 -2
  113. truefoundry/ml/{autogen → _autogen}/client/models/get_signed_urls_for_dataset_read_response_dto.py +3 -3
  114. truefoundry/ml/{autogen → _autogen}/client/models/get_signed_urls_for_dataset_write_response_dto.py +3 -3
  115. truefoundry/ml/{autogen → _autogen}/client/models/get_tenant_id_response_dto.py +2 -2
  116. truefoundry/ml/{autogen → _autogen}/client/models/gluon_framework.py +4 -6
  117. truefoundry/ml/{autogen → _autogen}/client/models/h2_o_framework.py +4 -6
  118. truefoundry/ml/{autogen → _autogen}/client/models/http_validation_error.py +3 -3
  119. truefoundry/ml/{autogen → _autogen}/client/models/image_content_part.py +6 -7
  120. truefoundry/ml/{autogen → _autogen}/client/models/image_url.py +4 -4
  121. truefoundry/ml/{autogen → _autogen}/client/models/infer_method_name.py +3 -3
  122. truefoundry/ml/{autogen → _autogen}/client/models/keras_framework.py +4 -6
  123. truefoundry/ml/{autogen → _autogen}/client/models/latest_run_log_dto.py +3 -3
  124. truefoundry/ml/{autogen → _autogen}/client/models/library_name.py +3 -3
  125. truefoundry/ml/{autogen → _autogen}/client/models/light_gbm_framework.py +4 -7
  126. truefoundry/ml/{autogen → _autogen}/client/models/list_artifact_versions_request_dto.py +4 -4
  127. truefoundry/ml/{autogen → _autogen}/client/models/list_artifact_versions_response_dto.py +5 -3
  128. truefoundry/ml/{autogen → _autogen}/client/models/list_artifacts_request_dto.py +3 -3
  129. truefoundry/ml/{autogen → _autogen}/client/models/list_artifacts_response_dto.py +3 -3
  130. truefoundry/ml/{autogen → _autogen}/client/models/list_colums_response_dto.py +3 -3
  131. truefoundry/ml/{autogen → _autogen}/client/models/list_datasets_request_dto.py +2 -2
  132. truefoundry/ml/{autogen → _autogen}/client/models/list_datasets_response_dto.py +3 -3
  133. truefoundry/ml/{autogen → _autogen}/client/models/list_experiments_response_dto.py +3 -3
  134. truefoundry/ml/{autogen → _autogen}/client/models/list_files_for_artifact_version_request_dto.py +2 -2
  135. truefoundry/ml/{autogen → _autogen}/client/models/list_files_for_artifact_versions_response_dto.py +3 -3
  136. truefoundry/ml/{autogen → _autogen}/client/models/list_files_for_dataset_request_dto.py +2 -2
  137. truefoundry/ml/{autogen → _autogen}/client/models/list_files_for_dataset_response_dto.py +3 -3
  138. truefoundry/ml/{autogen → _autogen}/client/models/list_latest_run_logs_response_dto.py +3 -3
  139. truefoundry/ml/{autogen → _autogen}/client/models/list_metric_history_request_dto.py +2 -2
  140. truefoundry/ml/{autogen → _autogen}/client/models/list_metric_history_response_dto.py +3 -3
  141. truefoundry/ml/{autogen → _autogen}/client/models/list_model_version_response_dto.py +3 -3
  142. truefoundry/ml/{autogen → _autogen}/client/models/list_model_versions_request_dto.py +3 -3
  143. truefoundry/ml/{autogen → _autogen}/client/models/list_models_request_dto.py +2 -2
  144. truefoundry/ml/{autogen → _autogen}/client/models/list_models_response_dto.py +3 -3
  145. truefoundry/ml/{autogen → _autogen}/client/models/list_run_artifacts_response_dto.py +3 -3
  146. truefoundry/ml/{autogen → _autogen}/client/models/list_run_logs_response_dto.py +3 -3
  147. truefoundry/ml/_autogen/client/models/local_artifact_source.py +91 -0
  148. truefoundry/ml/_autogen/client/models/local_model_source.py +77 -0
  149. truefoundry/ml/{autogen → _autogen}/client/models/log_batch_request_dto.py +5 -5
  150. truefoundry/ml/{autogen → _autogen}/client/models/log_metric_request_dto.py +2 -2
  151. truefoundry/ml/{autogen → _autogen}/client/models/log_param_request_dto.py +2 -2
  152. truefoundry/ml/_autogen/client/models/manifest.py +229 -0
  153. truefoundry/ml/_autogen/client/models/manifest1.py +217 -0
  154. truefoundry/ml/{autogen/client/models/internal_metadata.py → _autogen/client/models/manifest2.py} +68 -50
  155. truefoundry/ml/{autogen → _autogen}/client/models/method.py +3 -3
  156. truefoundry/ml/{autogen → _autogen}/client/models/metric_collection_dto.py +3 -3
  157. truefoundry/ml/{autogen → _autogen}/client/models/metric_dto.py +2 -2
  158. truefoundry/ml/{autogen → _autogen}/client/models/mime_type.py +3 -3
  159. truefoundry/ml/{autogen → _autogen}/client/models/model_configuration.py +8 -9
  160. truefoundry/ml/{autogen → _autogen}/client/models/model_dto.py +6 -6
  161. truefoundry/ml/{autogen/client/models/model_version_manifest.py → _autogen/client/models/model_manifest.py} +43 -35
  162. truefoundry/ml/{autogen → _autogen}/client/models/model_response_dto.py +3 -3
  163. truefoundry/ml/{autogen → _autogen}/client/models/model_server.py +2 -2
  164. truefoundry/ml/{autogen → _autogen}/client/models/model_version_dto.py +9 -11
  165. truefoundry/ml/{autogen → _autogen}/client/models/model_version_environment.py +5 -7
  166. truefoundry/ml/{autogen → _autogen}/client/models/model_version_response_dto.py +3 -3
  167. truefoundry/ml/{autogen → _autogen}/client/models/multi_part_upload_dto.py +4 -4
  168. truefoundry/ml/{autogen → _autogen}/client/models/multi_part_upload_response_dto.py +3 -3
  169. truefoundry/ml/{autogen → _autogen}/client/models/multi_part_upload_storage_provider.py +2 -2
  170. truefoundry/ml/{autogen → _autogen}/client/models/notify_artifact_version_failure_dto.py +2 -2
  171. truefoundry/ml/{autogen → _autogen}/client/models/onnx_framework.py +4 -6
  172. truefoundry/ml/{autogen → _autogen}/client/models/openapi_spec.py +4 -4
  173. truefoundry/ml/{autogen → _autogen}/client/models/paddle_framework.py +4 -7
  174. truefoundry/ml/{autogen → _autogen}/client/models/param_dto.py +2 -2
  175. truefoundry/ml/{autogen → _autogen}/client/models/parameters.py +4 -4
  176. truefoundry/ml/{autogen → _autogen}/client/models/py_torch_framework.py +4 -7
  177. truefoundry/ml/{autogen → _autogen}/client/models/resolve_agent_app_response_dto.py +3 -3
  178. truefoundry/ml/{autogen → _autogen}/client/models/restore_run_request_dto.py +2 -2
  179. truefoundry/ml/{autogen → _autogen}/client/models/run_data_dto.py +5 -5
  180. truefoundry/ml/{autogen → _autogen}/client/models/run_dto.py +4 -4
  181. truefoundry/ml/{autogen → _autogen}/client/models/run_info_dto.py +3 -3
  182. truefoundry/ml/{autogen → _autogen}/client/models/run_log_dto.py +2 -2
  183. truefoundry/ml/{autogen → _autogen}/client/models/run_log_input_dto.py +2 -2
  184. truefoundry/ml/{autogen → _autogen}/client/models/run_response_dto.py +3 -3
  185. truefoundry/ml/{autogen → _autogen}/client/models/run_tag_dto.py +2 -2
  186. truefoundry/ml/{autogen → _autogen}/client/models/search_runs_request_dto.py +2 -2
  187. truefoundry/ml/{autogen → _autogen}/client/models/search_runs_response_dto.py +3 -3
  188. truefoundry/ml/{autogen → _autogen}/client/models/set_experiment_tag_request_dto.py +2 -2
  189. truefoundry/ml/{autogen → _autogen}/client/models/set_tag_request_dto.py +2 -2
  190. truefoundry/ml/{autogen → _autogen}/client/models/signed_url_dto.py +3 -4
  191. truefoundry/ml/{autogen → _autogen}/client/models/sklearn_framework.py +9 -10
  192. truefoundry/ml/{autogen → _autogen}/client/models/sklearn_model_schema.py +7 -8
  193. truefoundry/ml/{autogen → _autogen}/client/models/sklearn_serialization_format.py +3 -3
  194. truefoundry/ml/{autogen → _autogen}/client/models/source.py +34 -9
  195. truefoundry/ml/{autogen → _autogen}/client/models/source1.py +5 -5
  196. truefoundry/ml/_autogen/client/models/source2.py +177 -0
  197. truefoundry/ml/{autogen → _autogen}/client/models/spa_cy_framework.py +4 -6
  198. truefoundry/ml/{autogen → _autogen}/client/models/stats_models_framework.py +4 -7
  199. truefoundry/ml/{autogen → _autogen}/client/models/stop.py +2 -2
  200. truefoundry/ml/{autogen → _autogen}/client/models/store_run_logs_request_dto.py +3 -3
  201. truefoundry/ml/{autogen → _autogen}/client/models/subject.py +3 -3
  202. truefoundry/ml/{autogen → _autogen}/client/models/subject_type.py +2 -2
  203. truefoundry/ml/{autogen → _autogen}/client/models/system_message.py +6 -8
  204. truefoundry/ml/{autogen → _autogen}/client/models/tensor_flow_framework.py +4 -7
  205. truefoundry/ml/{autogen → _autogen}/client/models/text.py +4 -4
  206. truefoundry/ml/{autogen → _autogen}/client/models/text_content_part.py +5 -5
  207. truefoundry/ml/{autogen → _autogen}/client/models/transformers_framework.py +8 -12
  208. truefoundry/ml/{autogen → _autogen}/client/models/trigger_job_run_config_request_dto.py +3 -3
  209. truefoundry/ml/{autogen → _autogen}/client/models/trigger_job_run_config_response_dto.py +2 -2
  210. truefoundry/ml/{autogen → _autogen}/client/models/true_foundry_managed_source.py +18 -12
  211. truefoundry/ml/{autogen → _autogen}/client/models/update_artifact_version_request_dto.py +5 -7
  212. truefoundry/ml/{autogen → _autogen}/client/models/update_dataset_request_dto.py +13 -3
  213. truefoundry/ml/{autogen → _autogen}/client/models/update_experiment_request_dto.py +2 -2
  214. truefoundry/ml/{autogen → _autogen}/client/models/update_model_version_request_dto.py +5 -7
  215. truefoundry/ml/{autogen → _autogen}/client/models/update_run_request_dto.py +2 -2
  216. truefoundry/ml/{autogen → _autogen}/client/models/update_run_response_dto.py +3 -3
  217. truefoundry/ml/{autogen → _autogen}/client/models/url.py +4 -4
  218. truefoundry/ml/{autogen → _autogen}/client/models/user_message.py +6 -6
  219. truefoundry/ml/{autogen → _autogen}/client/models/validate_external_storage_root_request_dto.py +2 -2
  220. truefoundry/ml/{autogen → _autogen}/client/models/validate_external_storage_root_response_dto.py +2 -2
  221. truefoundry/ml/{autogen → _autogen}/client/models/validation_error.py +3 -3
  222. truefoundry/ml/{autogen → _autogen}/client/models/validation_error_loc_inner.py +2 -2
  223. truefoundry/ml/{autogen → _autogen}/client/models/xg_boost_framework.py +7 -10
  224. truefoundry/ml/{autogen → _autogen}/client/models/xg_boost_model_schema.py +6 -7
  225. truefoundry/ml/{autogen → _autogen}/client/models/xg_boost_serialization_format.py +3 -3
  226. truefoundry/ml/{autogen → _autogen}/client/rest.py +3 -3
  227. truefoundry/ml/_autogen/client_README.md +359 -0
  228. truefoundry/ml/_autogen/entities/artifacts.py +558 -0
  229. truefoundry/ml/artifact/truefoundry_artifact_repo.py +1 -1
  230. truefoundry/ml/cli/commands/model_init.py +1 -1
  231. truefoundry/ml/clients/servicefoundry_client.py +7 -2
  232. truefoundry/ml/entities.py +1 -1
  233. truefoundry/ml/log_types/artifacts/artifact.py +22 -85
  234. truefoundry/ml/log_types/artifacts/dataset.py +5 -5
  235. truefoundry/ml/log_types/artifacts/general_artifact.py +1 -1
  236. truefoundry/ml/log_types/artifacts/model.py +12 -13
  237. truefoundry/ml/log_types/artifacts/utils.py +18 -2
  238. truefoundry/ml/log_types/image/image.py +1 -1
  239. truefoundry/ml/log_types/plot.py +1 -1
  240. truefoundry/ml/mlfoundry_api.py +2 -42
  241. truefoundry/ml/mlfoundry_run.py +1 -1
  242. truefoundry/ml/model_framework.py +3 -3
  243. truefoundry/ml/session.py +7 -4
  244. truefoundry/ml/validation_utils.py +1 -1
  245. truefoundry/workflow/map_task.py +5 -2
  246. {truefoundry-0.5.10rc1.dist-info → truefoundry-0.5.11rc1.dist-info}/METADATA +2 -1
  247. truefoundry-0.5.11rc1.dist-info/RECORD +377 -0
  248. truefoundry/deploy/auto_gen/models.py +0 -1915
  249. truefoundry/ml/autogen/client/__init__.py +0 -445
  250. truefoundry/ml/autogen/client/api/__init__.py +0 -16
  251. truefoundry/ml/autogen/client/models/__init__.py +0 -416
  252. truefoundry/ml/autogen/client/models/add_custom_metrics_to_model_version_request_dto.py +0 -69
  253. truefoundry/ml/autogen/client/models/add_features_to_model_version_request_dto.py +0 -69
  254. truefoundry/ml/autogen/client/models/manifest.py +0 -154
  255. truefoundry/ml/autogen/client_README.md +0 -361
  256. truefoundry/ml/autogen/entities/artifacts.py +0 -670
  257. truefoundry-0.5.10rc1.dist-info/RECORD +0 -370
  258. /truefoundry/ml/{autogen → _autogen}/__init__.py +0 -0
  259. /truefoundry/ml/{autogen → _autogen}/client/api_response.py +0 -0
  260. /truefoundry/ml/{autogen → _autogen}/models/__init__.py +0 -0
  261. /truefoundry/ml/{autogen → _autogen}/models/exceptions.py +0 -0
  262. /truefoundry/ml/{autogen → _autogen}/models/schema.py +0 -0
  263. /truefoundry/ml/{autogen → _autogen}/models/signature.py +0 -0
  264. /truefoundry/ml/{autogen → _autogen}/models/utils.py +0 -0
  265. {truefoundry-0.5.10rc1.dist-info → truefoundry-0.5.11rc1.dist-info}/WHEEL +0 -0
  266. {truefoundry-0.5.10rc1.dist-info → truefoundry-0.5.11rc1.dist-info}/entry_points.txt +0 -0
@@ -1,11 +1,11 @@
1
1
  # coding: utf-8
2
2
 
3
3
  """
4
- FastAPI
4
+ TrueFoundry ML API
5
5
 
6
6
  No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
7
7
 
8
- The version of the OpenAPI document: 0.1.0
8
+ The version of the OpenAPI document: 1.0.0
9
9
  Generated by OpenAPI Generator (https://openapi-generator.tech)
10
10
 
11
11
  Do not edit the class manually.
@@ -18,87 +18,88 @@ import pprint
18
18
  import re # noqa: F401
19
19
  from typing import Any, Dict, Optional
20
20
 
21
- from truefoundry.ml.autogen.client.models.chat_prompt_messages_inner import (
22
- ChatPromptMessagesInner,
21
+ from truefoundry.ml._autogen.client.models.chat_prompt_manifest_messages_inner import (
22
+ ChatPromptManifestMessagesInner,
23
23
  )
24
- from truefoundry.ml.autogen.client.models.model_configuration import ModelConfiguration
24
+ from truefoundry.ml._autogen.client.models.model_configuration import ModelConfiguration
25
25
  from truefoundry.pydantic_v1 import (
26
26
  BaseModel,
27
27
  Field,
28
28
  StrictStr,
29
+ conint,
29
30
  conlist,
30
31
  constr,
31
32
  validator,
32
33
  )
33
34
 
34
35
 
35
- class ChatPrompt(BaseModel):
36
+ class ChatPromptManifest(BaseModel):
36
37
  """
37
- Chat Prompt artifact. # noqa: E501
38
+ Chat Prompt manifest. # noqa: E501
38
39
  """
39
40
 
40
- description: Optional[constr(strict=True, max_length=512)] = Field(
41
- default=None, description="+sort=2 +label=Description"
41
+ name: Optional[constr(strict=True, max_length=256)] = Field(
42
+ default=None, description="Name of the entity"
42
43
  )
44
+ description: Optional[constr(strict=True, max_length=512)] = None
43
45
  metadata: Dict[str, Any] = Field(
44
46
  default=...,
45
- description="+label=Metadata +docs=Key value pairs to store additional metadata +usage=Key value pairs to store additional metadata +uiType=JsonInput",
47
+ description='Key value metadata. Should be valid JSON. For e.g. `{"business-unit": "sales", "quality": "good", "rating": 4.5}`',
46
48
  )
47
49
  version_alias: Optional[constr(strict=True, max_length=128)] = Field(
48
50
  default=None,
49
- description="+label=Version Alias +usage=The version alias should start with 'v' followed by alphanumeric and it can include '.' and '-' in between (e.g. v1.0.0, v1-prod, v3-dev, etc) +docs=The version alias should start with 'v' followed by alphanumeric and it can include '.' and '-' in between (e.g. v1.0.0, v1-prod, v3-dev, etc) +message=The version alias should start with 'v' followed by alphanumeric and it can include '.' and '-' in between (e.g. v1.0.0, v1-prod, v3-dev, etc)",
50
- )
51
- name: Optional[constr(strict=True, max_length=256)] = Field(
52
- default=None,
53
- description="+sort=1 +label=Name +message=The name should start with lowercase alphabets and can contain alphanumeric and can include '-' in between",
51
+ description="Version alias is alternate, ideally human readable, version string to reference an artifact version. It should start with `v` followed by alphanumeric and it can include `.` and `-` in between (e.g. `v1.0.0`, `v1-prod`, `v3-dev`, etc)",
54
52
  )
55
53
  ml_repo: Optional[constr(strict=True)] = Field(
56
- default=None,
57
- description="+label=ML Repo +usage=name of the ML Repo +docs=name of the ML Repo +uiType=Hidden",
54
+ default=None, description="Name of the ML Repo"
55
+ )
56
+ version: Optional[conint(strict=True, ge=1)] = Field(
57
+ default=None, description="Version of the entity"
58
58
  )
59
59
  type: Optional[StrictStr] = "chat_prompt"
60
- messages: conlist(ChatPromptMessagesInner) = Field(
60
+ messages: conlist(ChatPromptManifestMessagesInner) = Field(
61
61
  default=...,
62
- description="+sort=4000 +usage=Chat completion messages +label=Messages in the chat conversation +message=Chat completion messages +usage=List of messages in the chat conversation, must be non-empty +docs=Messages that define the chat conversation, including system, assistant, and user messages.",
62
+ description="List of messages in the chat conversation, must be non-empty",
63
63
  )
64
64
  variables: Optional[Dict[str, StrictStr]] = Field(
65
65
  default=None,
66
- description="+label=Variables +usage=Variables for the chat completion messages to be used in the prompt messages +sort=5000",
66
+ description="Variables referenced in messages and that can be replaced when running generation",
67
67
  )
68
68
  model_configuration: ModelConfiguration = Field(...)
69
69
  __properties = [
70
+ "name",
70
71
  "description",
71
72
  "metadata",
72
73
  "version_alias",
73
- "name",
74
74
  "ml_repo",
75
+ "version",
75
76
  "type",
76
77
  "messages",
77
78
  "variables",
78
79
  "model_configuration",
79
80
  ]
80
81
 
81
- @validator("version_alias")
82
- def version_alias_validate_regular_expression(cls, value):
82
+ @validator("name")
83
+ def name_validate_regular_expression(cls, value):
83
84
  """Validates the regular expression"""
84
85
  if value is None:
85
86
  return value
86
87
 
87
- if not re.match(r"^v[a-zA-Z0-9.-]*([a-zA-Z0-9]+)$", value):
88
+ if not re.match(r"^[A-Za-z0-9_\-]+$", value):
88
89
  raise ValueError(
89
- r"must validate the regular expression /^v[a-zA-Z0-9.-]*([a-zA-Z0-9]+)$/"
90
+ r"must validate the regular expression /^[A-Za-z0-9_\-]+$/"
90
91
  )
91
92
  return value
92
93
 
93
- @validator("name")
94
- def name_validate_regular_expression(cls, value):
94
+ @validator("version_alias")
95
+ def version_alias_validate_regular_expression(cls, value):
95
96
  """Validates the regular expression"""
96
97
  if value is None:
97
98
  return value
98
99
 
99
- if not re.match(r"^[A-Za-z0-9_\-]+$", value):
100
+ if not re.match(r"^v[a-zA-Z0-9.-]*([a-zA-Z0-9]+)$", value):
100
101
  raise ValueError(
101
- r"must validate the regular expression /^[A-Za-z0-9_\-]+$/"
102
+ r"must validate the regular expression /^v[a-zA-Z0-9.-]*([a-zA-Z0-9]+)$/"
102
103
  )
103
104
  return value
104
105
 
@@ -139,8 +140,8 @@ class ChatPrompt(BaseModel):
139
140
  return json.dumps(self.to_dict())
140
141
 
141
142
  @classmethod
142
- def from_json(cls, json_str: str) -> ChatPrompt:
143
- """Create an instance of ChatPrompt from a JSON string"""
143
+ def from_json(cls, json_str: str) -> ChatPromptManifest:
144
+ """Create an instance of ChatPromptManifest from a JSON string"""
144
145
  return cls.from_dict(json.loads(json_str))
145
146
 
146
147
  def to_dict(self):
@@ -159,26 +160,27 @@ class ChatPrompt(BaseModel):
159
160
  return _dict
160
161
 
161
162
  @classmethod
162
- def from_dict(cls, obj: dict) -> ChatPrompt:
163
- """Create an instance of ChatPrompt from a dict"""
163
+ def from_dict(cls, obj: dict) -> ChatPromptManifest:
164
+ """Create an instance of ChatPromptManifest from a dict"""
164
165
  if obj is None:
165
166
  return None
166
167
 
167
168
  if not isinstance(obj, dict):
168
- return ChatPrompt.parse_obj(obj)
169
+ return ChatPromptManifest.parse_obj(obj)
169
170
 
170
- _obj = ChatPrompt.parse_obj(
171
+ _obj = ChatPromptManifest.parse_obj(
171
172
  {
173
+ "name": obj.get("name"),
172
174
  "description": obj.get("description"),
173
175
  "metadata": obj.get("metadata"),
174
176
  "version_alias": obj.get("version_alias"),
175
- "name": obj.get("name"),
176
177
  "ml_repo": obj.get("ml_repo"),
178
+ "version": obj.get("version"),
177
179
  "type": obj.get("type")
178
180
  if obj.get("type") is not None
179
181
  else "chat_prompt",
180
182
  "messages": [
181
- ChatPromptMessagesInner.from_dict(_item)
183
+ ChatPromptManifestMessagesInner.from_dict(_item)
182
184
  for _item in obj.get("messages")
183
185
  ]
184
186
  if obj.get("messages") is not None
@@ -1,11 +1,11 @@
1
1
  # coding: utf-8
2
2
 
3
3
  """
4
- FastAPI
4
+ TrueFoundry ML API
5
5
 
6
6
  No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
7
7
 
8
- The version of the OpenAPI document: 0.1.0
8
+ The version of the OpenAPI document: 1.0.0
9
9
  Generated by OpenAPI Generator (https://openapi-generator.tech)
10
10
 
11
11
  Do not edit the class manually.
@@ -18,9 +18,9 @@ import pprint
18
18
  import re # noqa: F401
19
19
  from typing import TYPE_CHECKING, Any, List, Optional, Union
20
20
 
21
- from truefoundry.ml.autogen.client.models.assistant_message import AssistantMessage
22
- from truefoundry.ml.autogen.client.models.system_message import SystemMessage
23
- from truefoundry.ml.autogen.client.models.user_message import UserMessage
21
+ from truefoundry.ml._autogen.client.models.assistant_message import AssistantMessage
22
+ from truefoundry.ml._autogen.client.models.system_message import SystemMessage
23
+ from truefoundry.ml._autogen.client.models.user_message import UserMessage
24
24
  from truefoundry.pydantic_v1 import (
25
25
  BaseModel,
26
26
  Field,
@@ -28,16 +28,16 @@ from truefoundry.pydantic_v1 import (
28
28
  validator,
29
29
  )
30
30
 
31
- CHATPROMPTMESSAGESINNER_ANY_OF_SCHEMAS = [
31
+ CHATPROMPTMANIFESTMESSAGESINNER_ANY_OF_SCHEMAS = [
32
32
  "AssistantMessage",
33
33
  "SystemMessage",
34
34
  "UserMessage",
35
35
  ]
36
36
 
37
37
 
38
- class ChatPromptMessagesInner(BaseModel):
38
+ class ChatPromptManifestMessagesInner(BaseModel):
39
39
  """
40
- ChatPromptMessagesInner
40
+ ChatPromptManifestMessagesInner
41
41
  """
42
42
 
43
43
  # data type: SystemMessage
@@ -51,7 +51,7 @@ class ChatPromptMessagesInner(BaseModel):
51
51
  else:
52
52
  actual_instance: Any
53
53
  any_of_schemas: List[str] = Field(
54
- CHATPROMPTMESSAGESINNER_ANY_OF_SCHEMAS, const=True
54
+ CHATPROMPTMANIFESTMESSAGESINNER_ANY_OF_SCHEMAS, const=True
55
55
  )
56
56
 
57
57
  class Config:
@@ -73,7 +73,7 @@ class ChatPromptMessagesInner(BaseModel):
73
73
 
74
74
  @validator("actual_instance")
75
75
  def actual_instance_must_validate_anyof(cls, v):
76
- instance = ChatPromptMessagesInner.construct()
76
+ instance = ChatPromptManifestMessagesInner.construct()
77
77
  error_messages = []
78
78
  # validate data type: SystemMessage
79
79
  if not isinstance(v, SystemMessage):
@@ -100,20 +100,20 @@ class ChatPromptMessagesInner(BaseModel):
100
100
  if error_messages:
101
101
  # no match
102
102
  raise ValueError(
103
- "No match found when setting the actual_instance in ChatPromptMessagesInner with anyOf schemas: AssistantMessage, SystemMessage, UserMessage. Details: "
103
+ "No match found when setting the actual_instance in ChatPromptManifestMessagesInner with anyOf schemas: AssistantMessage, SystemMessage, UserMessage. Details: "
104
104
  + ", ".join(error_messages)
105
105
  )
106
106
  else:
107
107
  return v
108
108
 
109
109
  @classmethod
110
- def from_dict(cls, obj: dict) -> ChatPromptMessagesInner:
110
+ def from_dict(cls, obj: dict) -> ChatPromptManifestMessagesInner:
111
111
  return cls.from_json(json.dumps(obj))
112
112
 
113
113
  @classmethod
114
- def from_json(cls, json_str: str) -> ChatPromptMessagesInner:
114
+ def from_json(cls, json_str: str) -> ChatPromptManifestMessagesInner:
115
115
  """Returns the object represented by the json string"""
116
- instance = ChatPromptMessagesInner.construct()
116
+ instance = ChatPromptManifestMessagesInner.construct()
117
117
  error_messages = []
118
118
  # anyof_schema_1_validator: Optional[SystemMessage] = None
119
119
  try:
@@ -137,7 +137,7 @@ class ChatPromptMessagesInner(BaseModel):
137
137
  if error_messages:
138
138
  # no match
139
139
  raise ValueError(
140
- "No match found when deserializing the JSON string into ChatPromptMessagesInner with anyOf schemas: AssistantMessage, SystemMessage, UserMessage. Details: "
140
+ "No match found when deserializing the JSON string into ChatPromptManifestMessagesInner with anyOf schemas: AssistantMessage, SystemMessage, UserMessage. Details: "
141
141
  + ", ".join(error_messages)
142
142
  )
143
143
  else:
@@ -1,11 +1,11 @@
1
1
  # coding: utf-8
2
2
 
3
3
  """
4
- FastAPI
4
+ TrueFoundry ML API
5
5
 
6
6
  No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
7
7
 
8
- The version of the OpenAPI document: 0.1.0
8
+ The version of the OpenAPI document: 1.0.0
9
9
  Generated by OpenAPI Generator (https://openapi-generator.tech)
10
10
 
11
11
  Do not edit the class manually.
@@ -1,11 +1,11 @@
1
1
  # coding: utf-8
2
2
 
3
3
  """
4
- FastAPI
4
+ TrueFoundry ML API
5
5
 
6
6
  No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
7
7
 
8
- The version of the OpenAPI document: 0.1.0
8
+ The version of the OpenAPI document: 1.0.0
9
9
  Generated by OpenAPI Generator (https://openapi-generator.tech)
10
10
 
11
11
  Do not edit the class manually.
@@ -1,11 +1,11 @@
1
1
  # coding: utf-8
2
2
 
3
3
  """
4
- FastAPI
4
+ TrueFoundry ML API
5
5
 
6
6
  No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
7
7
 
8
- The version of the OpenAPI document: 0.1.0
8
+ The version of the OpenAPI document: 1.0.0
9
9
  Generated by OpenAPI Generator (https://openapi-generator.tech)
10
10
 
11
11
  Do not edit the class manually.
@@ -18,7 +18,7 @@ import pprint
18
18
  import re # noqa: F401
19
19
  from typing import TYPE_CHECKING, Any, List, Optional, Union
20
20
 
21
- from truefoundry.ml.autogen.client.models.blob_storage_reference import (
21
+ from truefoundry.ml._autogen.client.models.blob_storage_reference import (
22
22
  BlobStorageReference,
23
23
  )
24
24
  from truefoundry.pydantic_v1 import (
@@ -34,7 +34,7 @@ CONTENT_ANY_OF_SCHEMAS = ["BlobStorageReference", "str"]
34
34
 
35
35
  class Content(BaseModel):
36
36
  """
37
- +label=Content +usage=Text content for the assistant message
37
+ Text content for the assistant message
38
38
  """
39
39
 
40
40
  # data type: str
@@ -1,11 +1,11 @@
1
1
  # coding: utf-8
2
2
 
3
3
  """
4
- FastAPI
4
+ TrueFoundry ML API
5
5
 
6
6
  No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
7
7
 
8
- The version of the OpenAPI document: 0.1.0
8
+ The version of the OpenAPI document: 1.0.0
9
9
  Generated by OpenAPI Generator (https://openapi-generator.tech)
10
10
 
11
11
  Do not edit the class manually.
@@ -18,7 +18,7 @@ import pprint
18
18
  import re # noqa: F401
19
19
  from typing import TYPE_CHECKING, Any, List, Optional, Union
20
20
 
21
- from truefoundry.ml.autogen.client.models.blob_storage_reference import (
21
+ from truefoundry.ml._autogen.client.models.blob_storage_reference import (
22
22
  BlobStorageReference,
23
23
  )
24
24
  from truefoundry.pydantic_v1 import (
@@ -34,7 +34,7 @@ CONTENT1_ANY_OF_SCHEMAS = ["BlobStorageReference", "str"]
34
34
 
35
35
  class Content1(BaseModel):
36
36
  """
37
- +label=Content +usage=Text content for the system message
37
+ Text content for the system message
38
38
  """
39
39
 
40
40
  # data type: str
@@ -1,11 +1,11 @@
1
1
  # coding: utf-8
2
2
 
3
3
  """
4
- FastAPI
4
+ TrueFoundry ML API
5
5
 
6
6
  No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
7
7
 
8
- The version of the OpenAPI document: 0.1.0
8
+ The version of the OpenAPI document: 1.0.0
9
9
  Generated by OpenAPI Generator (https://openapi-generator.tech)
10
10
 
11
11
  Do not edit the class manually.
@@ -18,10 +18,10 @@ import pprint
18
18
  import re # noqa: F401
19
19
  from typing import TYPE_CHECKING, Any, List, Optional, Union
20
20
 
21
- from truefoundry.ml.autogen.client.models.blob_storage_reference import (
21
+ from truefoundry.ml._autogen.client.models.blob_storage_reference import (
22
22
  BlobStorageReference,
23
23
  )
24
- from truefoundry.ml.autogen.client.models.content2_any_of_inner import (
24
+ from truefoundry.ml._autogen.client.models.content2_any_of_inner import (
25
25
  Content2AnyOfInner,
26
26
  )
27
27
  from truefoundry.pydantic_v1 import (
@@ -38,7 +38,7 @@ CONTENT2_ANY_OF_SCHEMAS = ["BlobStorageReference", "List[Content2AnyOfInner]", "
38
38
 
39
39
  class Content2(BaseModel):
40
40
  """
41
- +label=Content +usage=Text content for the user message
41
+ Content of the user message. can be a mix of text and images
42
42
  """
43
43
 
44
44
  # data type: str
@@ -1,11 +1,11 @@
1
1
  # coding: utf-8
2
2
 
3
3
  """
4
- FastAPI
4
+ TrueFoundry ML API
5
5
 
6
6
  No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
7
7
 
8
- The version of the OpenAPI document: 0.1.0
8
+ The version of the OpenAPI document: 1.0.0
9
9
  Generated by OpenAPI Generator (https://openapi-generator.tech)
10
10
 
11
11
  Do not edit the class manually.
@@ -18,8 +18,8 @@ import pprint
18
18
  import re # noqa: F401
19
19
  from typing import TYPE_CHECKING, Any, List, Optional, Union
20
20
 
21
- from truefoundry.ml.autogen.client.models.image_content_part import ImageContentPart
22
- from truefoundry.ml.autogen.client.models.text_content_part import TextContentPart
21
+ from truefoundry.ml._autogen.client.models.image_content_part import ImageContentPart
22
+ from truefoundry.ml._autogen.client.models.text_content_part import TextContentPart
23
23
  from truefoundry.pydantic_v1 import (
24
24
  BaseModel,
25
25
  Field,
@@ -1,11 +1,11 @@
1
1
  # coding: utf-8
2
2
 
3
3
  """
4
- FastAPI
4
+ TrueFoundry ML API
5
5
 
6
6
  No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
7
7
 
8
- The version of the OpenAPI document: 0.1.0
8
+ The version of the OpenAPI document: 1.0.0
9
9
  Generated by OpenAPI Generator (https://openapi-generator.tech)
10
10
 
11
11
  Do not edit the class manually.
@@ -17,7 +17,7 @@ import json
17
17
  import pprint
18
18
  import re # noqa: F401
19
19
 
20
- from truefoundry.ml.autogen.client.models.artifact_type import ArtifactType
20
+ from truefoundry.ml._autogen.client.models.artifact_type import ArtifactType
21
21
  from truefoundry.pydantic_v1 import BaseModel, Field, StrictStr
22
22
 
23
23
 
@@ -1,11 +1,11 @@
1
1
  # coding: utf-8
2
2
 
3
3
  """
4
- FastAPI
4
+ TrueFoundry ML API
5
5
 
6
6
  No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
7
7
 
8
- The version of the OpenAPI document: 0.1.0
8
+ The version of the OpenAPI document: 1.0.0
9
9
  Generated by OpenAPI Generator (https://openapi-generator.tech)
10
10
 
11
11
  Do not edit the class manually.
@@ -1,11 +1,11 @@
1
1
  # coding: utf-8
2
2
 
3
3
  """
4
- FastAPI
4
+ TrueFoundry ML API
5
5
 
6
6
  No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
7
7
 
8
- The version of the OpenAPI document: 0.1.0
8
+ The version of the OpenAPI document: 1.0.0
9
9
  Generated by OpenAPI Generator (https://openapi-generator.tech)
10
10
 
11
11
  Do not edit the class manually.
@@ -17,7 +17,7 @@ import json
17
17
  import pprint
18
18
  import re # noqa: F401
19
19
 
20
- from truefoundry.ml.autogen.client.models.artifact_type import ArtifactType
20
+ from truefoundry.ml._autogen.client.models.artifact_type import ArtifactType
21
21
  from truefoundry.pydantic_v1 import BaseModel, Field, StrictInt, StrictStr
22
22
 
23
23
 
@@ -1,11 +1,11 @@
1
1
  # coding: utf-8
2
2
 
3
3
  """
4
- FastAPI
4
+ TrueFoundry ML API
5
5
 
6
6
  No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
7
7
 
8
- The version of the OpenAPI document: 0.1.0
8
+ The version of the OpenAPI document: 1.0.0
9
9
  Generated by OpenAPI Generator (https://openapi-generator.tech)
10
10
 
11
11
  Do not edit the class manually.
@@ -1,11 +1,11 @@
1
1
  # coding: utf-8
2
2
 
3
3
  """
4
- FastAPI
4
+ TrueFoundry ML API
5
5
 
6
6
  No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
7
7
 
8
- The version of the OpenAPI document: 0.1.0
8
+ The version of the OpenAPI document: 1.0.0
9
9
  Generated by OpenAPI Generator (https://openapi-generator.tech)
10
10
 
11
11
  Do not edit the class manually.
@@ -18,7 +18,10 @@ import pprint
18
18
  import re # noqa: F401
19
19
  from typing import Any, Dict, Optional
20
20
 
21
- from truefoundry.pydantic_v1 import BaseModel, Field, StrictStr
21
+ from truefoundry.ml._autogen.client.models.data_directory_manifest import (
22
+ DataDirectoryManifest,
23
+ )
24
+ from truefoundry.pydantic_v1 import BaseModel, StrictStr
22
25
 
23
26
 
24
27
  class CreateDatasetRequestDto(BaseModel):
@@ -26,11 +29,18 @@ class CreateDatasetRequestDto(BaseModel):
26
29
  CreateDatasetRequestDto
27
30
  """
28
31
 
29
- name: StrictStr = Field(...)
32
+ name: Optional[StrictStr] = None
30
33
  description: Optional[StrictStr] = None
31
34
  experiment_id: Optional[StrictStr] = None
32
35
  dataset_metadata: Optional[Dict[str, Any]] = None
33
- __properties = ["name", "description", "experiment_id", "dataset_metadata"]
36
+ manifest: Optional[DataDirectoryManifest] = None
37
+ __properties = [
38
+ "name",
39
+ "description",
40
+ "experiment_id",
41
+ "dataset_metadata",
42
+ "manifest",
43
+ ]
34
44
 
35
45
  class Config:
36
46
  """Pydantic configuration"""
@@ -54,6 +64,9 @@ class CreateDatasetRequestDto(BaseModel):
54
64
  def to_dict(self):
55
65
  """Returns the dictionary representation of the model using alias"""
56
66
  _dict = self.dict(by_alias=True, exclude={}, exclude_none=True)
67
+ # override the default output from truefoundry.pydantic_v1 by calling `to_dict()` of manifest
68
+ if self.manifest:
69
+ _dict["manifest"] = self.manifest.to_dict()
57
70
  return _dict
58
71
 
59
72
  @classmethod
@@ -71,6 +84,9 @@ class CreateDatasetRequestDto(BaseModel):
71
84
  "description": obj.get("description"),
72
85
  "experiment_id": obj.get("experiment_id"),
73
86
  "dataset_metadata": obj.get("dataset_metadata"),
87
+ "manifest": DataDirectoryManifest.from_dict(obj.get("manifest"))
88
+ if obj.get("manifest") is not None
89
+ else None,
74
90
  }
75
91
  )
76
92
  return _obj
@@ -1,11 +1,11 @@
1
1
  # coding: utf-8
2
2
 
3
3
  """
4
- FastAPI
4
+ TrueFoundry ML API
5
5
 
6
6
  No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
7
7
 
8
- The version of the OpenAPI document: 0.1.0
8
+ The version of the OpenAPI document: 1.0.0
9
9
  Generated by OpenAPI Generator (https://openapi-generator.tech)
10
10
 
11
11
  Do not edit the class manually.
@@ -18,7 +18,7 @@ import pprint
18
18
  import re # noqa: F401
19
19
  from typing import Optional
20
20
 
21
- from truefoundry.ml.autogen.client.models.experiment_tag_dto import ExperimentTagDto
21
+ from truefoundry.ml._autogen.client.models.experiment_tag_dto import ExperimentTagDto
22
22
  from truefoundry.pydantic_v1 import BaseModel, Field, StrictStr, conlist
23
23
 
24
24
 
@@ -1,11 +1,11 @@
1
1
  # coding: utf-8
2
2
 
3
3
  """
4
- FastAPI
4
+ TrueFoundry ML API
5
5
 
6
6
  No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
7
7
 
8
- The version of the OpenAPI document: 0.1.0
8
+ The version of the OpenAPI document: 1.0.0
9
9
  Generated by OpenAPI Generator (https://openapi-generator.tech)
10
10
 
11
11
  Do not edit the class manually.
@@ -1,11 +1,11 @@
1
1
  # coding: utf-8
2
2
 
3
3
  """
4
- FastAPI
4
+ TrueFoundry ML API
5
5
 
6
6
  No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
7
7
 
8
- The version of the OpenAPI document: 0.1.0
8
+ The version of the OpenAPI document: 1.0.0
9
9
  Generated by OpenAPI Generator (https://openapi-generator.tech)
10
10
 
11
11
  Do not edit the class manually.
@@ -18,7 +18,6 @@ import pprint
18
18
  import re # noqa: F401
19
19
  from typing import Any, Dict, Optional
20
20
 
21
- from truefoundry.ml.autogen.client.models.internal_metadata import InternalMetadata
22
21
  from truefoundry.pydantic_v1 import BaseModel, Field, StrictInt, StrictStr
23
22
 
24
23
 
@@ -32,7 +31,7 @@ class CreateModelVersionRequestDto(BaseModel):
32
31
  artifact_metadata: Optional[Dict[str, Any]] = None
33
32
  data_path: Optional[StrictStr] = None
34
33
  step: Optional[StrictInt] = None
35
- internal_metadata: Optional[InternalMetadata] = None
34
+ internal_metadata: Optional[Dict[str, Any]] = None
36
35
  __properties = [
37
36
  "artifact_version_id",
38
37
  "description",
@@ -64,9 +63,6 @@ class CreateModelVersionRequestDto(BaseModel):
64
63
  def to_dict(self):
65
64
  """Returns the dictionary representation of the model using alias"""
66
65
  _dict = self.dict(by_alias=True, exclude={}, exclude_none=True)
67
- # override the default output from truefoundry.pydantic_v1 by calling `to_dict()` of internal_metadata
68
- if self.internal_metadata:
69
- _dict["internal_metadata"] = self.internal_metadata.to_dict()
70
66
  return _dict
71
67
 
72
68
  @classmethod
@@ -85,11 +81,7 @@ class CreateModelVersionRequestDto(BaseModel):
85
81
  "artifact_metadata": obj.get("artifact_metadata"),
86
82
  "data_path": obj.get("data_path"),
87
83
  "step": obj.get("step"),
88
- "internal_metadata": InternalMetadata.from_dict(
89
- obj.get("internal_metadata")
90
- )
91
- if obj.get("internal_metadata") is not None
92
- else None,
84
+ "internal_metadata": obj.get("internal_metadata"),
93
85
  }
94
86
  )
95
87
  return _obj