truefoundry 0.5.10rc1__py3-none-any.whl → 0.5.10rc2__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 (221) hide show
  1. truefoundry/cli/display_util.py +1 -1
  2. truefoundry/deploy/auto_gen/models.py +1 -1
  3. truefoundry/deploy/io/output_callback.py +13 -6
  4. truefoundry/deploy/io/rich_output_callback.py +8 -4
  5. truefoundry/deploy/lib/clients/servicefoundry_client.py +78 -105
  6. truefoundry/deploy/lib/dao/apply.py +2 -2
  7. truefoundry/deploy/lib/dao/delete.py +2 -2
  8. truefoundry/deploy/lib/model/entity.py +37 -24
  9. truefoundry/ml/autogen/client/__init__.py +22 -14
  10. truefoundry/ml/autogen/client/api/auth_api.py +2 -2
  11. truefoundry/ml/autogen/client/api/deprecated_api.py +5 -338
  12. truefoundry/ml/autogen/client/api/experiments_api.py +77 -32
  13. truefoundry/ml/autogen/client/api/generate_code_snippet_api.py +2 -2
  14. truefoundry/ml/autogen/client/api/health_api.py +2 -2
  15. truefoundry/ml/autogen/client/api/metrics_api.py +4 -4
  16. truefoundry/ml/autogen/client/api/mlfoundry_artifacts_api.py +530 -140
  17. truefoundry/ml/autogen/client/api/run_artifacts_api.py +10 -5
  18. truefoundry/ml/autogen/client/api/runs_api.py +20 -20
  19. truefoundry/ml/autogen/client/api_client.py +2 -2
  20. truefoundry/ml/autogen/client/configuration.py +29 -57
  21. truefoundry/ml/autogen/client/exceptions.py +2 -2
  22. truefoundry/ml/autogen/client/models/__init__.py +22 -14
  23. truefoundry/ml/autogen/client/models/agent_app.py +13 -5
  24. truefoundry/ml/autogen/client/models/{agent.py → agent_manifest.py} +39 -30
  25. truefoundry/ml/autogen/client/models/{agent_open_api_tool.py → agent_open_api_tool_manifest.py} +50 -31
  26. truefoundry/ml/autogen/client/models/agent_open_api_tool_with_fqn.py +47 -26
  27. truefoundry/ml/autogen/client/models/agent_with_fqn.py +36 -25
  28. truefoundry/ml/autogen/client/models/{add_custom_metrics_to_model_version_request_dto.py → apply_request_dto.py} +23 -17
  29. truefoundry/ml/autogen/client/models/apply_response_dto.py +79 -0
  30. truefoundry/ml/autogen/client/models/artifact_dto.py +2 -2
  31. truefoundry/ml/autogen/client/models/{add_features_to_model_version_request_dto.py → artifact_path.py} +20 -17
  32. truefoundry/ml/autogen/client/models/artifact_response_dto.py +2 -2
  33. truefoundry/ml/autogen/client/models/artifact_type.py +3 -3
  34. truefoundry/ml/autogen/client/models/artifact_version_dto.py +7 -15
  35. truefoundry/ml/autogen/client/models/artifact_version_manifest.py +32 -19
  36. truefoundry/ml/autogen/client/models/artifact_version_response_dto.py +2 -2
  37. truefoundry/ml/autogen/client/models/artifact_version_serialization_format.py +2 -2
  38. truefoundry/ml/autogen/client/models/artifact_version_status.py +2 -2
  39. truefoundry/ml/autogen/client/models/assistant_message.py +9 -5
  40. truefoundry/ml/autogen/client/models/authorize_user_for_model_request_dto.py +2 -2
  41. truefoundry/ml/autogen/client/models/authorize_user_for_model_version_request_dto.py +2 -2
  42. truefoundry/ml/autogen/client/models/blob_storage_reference.py +4 -4
  43. truefoundry/ml/autogen/client/models/body_get_search_runs_get.py +2 -2
  44. truefoundry/ml/autogen/client/models/{chat_prompt.py → chat_prompt_manifest.py} +39 -32
  45. truefoundry/ml/autogen/client/models/{chat_prompt_messages_inner.py → chat_prompt_manifest_messages_inner.py} +12 -12
  46. truefoundry/ml/autogen/client/models/columns_dto.py +2 -2
  47. truefoundry/ml/autogen/client/models/command.py +2 -2
  48. truefoundry/ml/autogen/client/models/content.py +3 -3
  49. truefoundry/ml/autogen/client/models/content1.py +3 -3
  50. truefoundry/ml/autogen/client/models/content2.py +3 -3
  51. truefoundry/ml/autogen/client/models/content2_any_of_inner.py +2 -2
  52. truefoundry/ml/autogen/client/models/create_artifact_request_dto.py +2 -2
  53. truefoundry/ml/autogen/client/models/create_artifact_response_dto.py +2 -2
  54. truefoundry/ml/autogen/client/models/create_artifact_version_request_dto.py +2 -2
  55. truefoundry/ml/autogen/client/models/create_artifact_version_response_dto.py +2 -2
  56. truefoundry/ml/autogen/client/models/create_dataset_request_dto.py +21 -5
  57. truefoundry/ml/autogen/client/models/create_experiment_request_dto.py +2 -2
  58. truefoundry/ml/autogen/client/models/create_experiment_response_dto.py +2 -2
  59. truefoundry/ml/autogen/client/models/create_model_version_request_dto.py +4 -12
  60. truefoundry/ml/autogen/client/models/create_multi_part_upload_for_dataset_request_dto.py +2 -2
  61. truefoundry/ml/autogen/client/models/create_multi_part_upload_for_dataset_response_dto.py +2 -2
  62. truefoundry/ml/autogen/client/models/create_multi_part_upload_request_dto.py +2 -2
  63. truefoundry/ml/autogen/client/models/create_python_deployment_config_request_dto.py +2 -2
  64. truefoundry/ml/autogen/client/models/create_python_deployment_config_response_dto.py +2 -2
  65. truefoundry/ml/autogen/client/models/create_run_request_dto.py +2 -2
  66. truefoundry/ml/autogen/client/models/create_run_response_dto.py +2 -2
  67. truefoundry/ml/autogen/client/models/create_workflow_task_config_request_dto.py +2 -2
  68. truefoundry/ml/autogen/client/models/data_directory_manifest.py +126 -0
  69. truefoundry/ml/autogen/client/models/dataset_dto.py +13 -2
  70. truefoundry/ml/autogen/client/models/dataset_response_dto.py +2 -2
  71. truefoundry/ml/autogen/client/models/delete_artifact_versions_request_dto.py +2 -2
  72. truefoundry/ml/autogen/client/models/delete_dataset_request_dto.py +2 -2
  73. truefoundry/ml/autogen/client/models/delete_files_for_dataset_request_dto.py +2 -2
  74. truefoundry/ml/autogen/client/models/delete_model_version_request_dto.py +2 -2
  75. truefoundry/ml/autogen/client/models/delete_run_request.py +2 -2
  76. truefoundry/ml/autogen/client/models/delete_tag_request_dto.py +2 -2
  77. truefoundry/ml/autogen/client/models/experiment_dto.py +3 -3
  78. truefoundry/ml/autogen/client/models/experiment_id_request_dto.py +2 -2
  79. truefoundry/ml/autogen/client/models/experiment_response_dto.py +2 -2
  80. truefoundry/ml/autogen/client/models/experiment_tag_dto.py +2 -2
  81. truefoundry/ml/autogen/client/models/export_deployment_files_request_dto.py +2 -2
  82. truefoundry/ml/autogen/client/models/external_blob_storage_source.py +5 -4
  83. truefoundry/ml/autogen/client/models/fast_ai_framework.py +3 -3
  84. truefoundry/ml/autogen/client/models/file_info_dto.py +2 -2
  85. truefoundry/ml/autogen/client/models/finalize_artifact_version_request_dto.py +7 -15
  86. truefoundry/ml/autogen/client/models/framework.py +3 -3
  87. truefoundry/ml/autogen/client/models/get_artifact_version_aliases_response_dto.py +2 -2
  88. truefoundry/ml/autogen/client/models/get_experiment_response_dto.py +2 -2
  89. truefoundry/ml/autogen/client/models/get_latest_run_log_response_dto.py +2 -2
  90. truefoundry/ml/autogen/client/models/get_metric_history_response.py +2 -2
  91. truefoundry/ml/autogen/client/models/get_signed_url_for_dataset_write_request_dto.py +2 -2
  92. truefoundry/ml/autogen/client/models/get_signed_urls_for_artifact_version_read_request_dto.py +2 -2
  93. truefoundry/ml/autogen/client/models/get_signed_urls_for_artifact_version_read_response_dto.py +2 -2
  94. truefoundry/ml/autogen/client/models/get_signed_urls_for_artifact_version_write_request_dto.py +2 -2
  95. truefoundry/ml/autogen/client/models/get_signed_urls_for_artifact_version_write_response_dto.py +2 -2
  96. truefoundry/ml/autogen/client/models/get_signed_urls_for_dataset_read_request_dto.py +2 -2
  97. truefoundry/ml/autogen/client/models/get_signed_urls_for_dataset_read_response_dto.py +2 -2
  98. truefoundry/ml/autogen/client/models/get_signed_urls_for_dataset_write_response_dto.py +2 -2
  99. truefoundry/ml/autogen/client/models/get_tenant_id_response_dto.py +2 -2
  100. truefoundry/ml/autogen/client/models/gluon_framework.py +3 -3
  101. truefoundry/ml/autogen/client/models/h2_o_framework.py +3 -3
  102. truefoundry/ml/autogen/client/models/http_validation_error.py +2 -2
  103. truefoundry/ml/autogen/client/models/image_content_part.py +7 -5
  104. truefoundry/ml/autogen/client/models/image_url.py +3 -3
  105. truefoundry/ml/autogen/client/models/infer_method_name.py +2 -2
  106. truefoundry/ml/autogen/client/models/keras_framework.py +3 -3
  107. truefoundry/ml/autogen/client/models/latest_run_log_dto.py +2 -2
  108. truefoundry/ml/autogen/client/models/library_name.py +2 -2
  109. truefoundry/ml/autogen/client/models/light_gbm_framework.py +3 -3
  110. truefoundry/ml/autogen/client/models/list_artifact_versions_request_dto.py +2 -2
  111. truefoundry/ml/autogen/client/models/list_artifact_versions_response_dto.py +2 -2
  112. truefoundry/ml/autogen/client/models/list_artifacts_request_dto.py +2 -2
  113. truefoundry/ml/autogen/client/models/list_artifacts_response_dto.py +2 -2
  114. truefoundry/ml/autogen/client/models/list_colums_response_dto.py +2 -2
  115. truefoundry/ml/autogen/client/models/list_datasets_request_dto.py +2 -2
  116. truefoundry/ml/autogen/client/models/list_datasets_response_dto.py +2 -2
  117. truefoundry/ml/autogen/client/models/list_experiments_response_dto.py +2 -2
  118. truefoundry/ml/autogen/client/models/list_files_for_artifact_version_request_dto.py +2 -2
  119. truefoundry/ml/autogen/client/models/list_files_for_artifact_versions_response_dto.py +2 -2
  120. truefoundry/ml/autogen/client/models/list_files_for_dataset_request_dto.py +2 -2
  121. truefoundry/ml/autogen/client/models/list_files_for_dataset_response_dto.py +2 -2
  122. truefoundry/ml/autogen/client/models/list_latest_run_logs_response_dto.py +2 -2
  123. truefoundry/ml/autogen/client/models/list_metric_history_request_dto.py +2 -2
  124. truefoundry/ml/autogen/client/models/list_metric_history_response_dto.py +2 -2
  125. truefoundry/ml/autogen/client/models/list_model_version_response_dto.py +2 -2
  126. truefoundry/ml/autogen/client/models/list_model_versions_request_dto.py +2 -2
  127. truefoundry/ml/autogen/client/models/list_models_request_dto.py +2 -2
  128. truefoundry/ml/autogen/client/models/list_models_response_dto.py +2 -2
  129. truefoundry/ml/autogen/client/models/list_run_artifacts_response_dto.py +2 -2
  130. truefoundry/ml/autogen/client/models/list_run_logs_response_dto.py +2 -2
  131. truefoundry/ml/autogen/client/models/local_artifact_source.py +93 -0
  132. truefoundry/ml/autogen/client/models/local_model_source.py +80 -0
  133. truefoundry/ml/autogen/client/models/log_batch_request_dto.py +2 -2
  134. truefoundry/ml/autogen/client/models/log_metric_request_dto.py +2 -2
  135. truefoundry/ml/autogen/client/models/log_param_request_dto.py +2 -2
  136. truefoundry/ml/autogen/client/models/manifest.py +100 -23
  137. truefoundry/ml/autogen/client/models/manifest1.py +219 -0
  138. truefoundry/ml/autogen/client/models/manifest2.py +198 -0
  139. truefoundry/ml/autogen/client/models/method.py +3 -3
  140. truefoundry/ml/autogen/client/models/metric_collection_dto.py +2 -2
  141. truefoundry/ml/autogen/client/models/metric_dto.py +2 -2
  142. truefoundry/ml/autogen/client/models/mime_type.py +2 -2
  143. truefoundry/ml/autogen/client/models/model_configuration.py +7 -7
  144. truefoundry/ml/autogen/client/models/model_dto.py +2 -2
  145. truefoundry/ml/autogen/client/models/model_response_dto.py +2 -2
  146. truefoundry/ml/autogen/client/models/model_server.py +2 -2
  147. truefoundry/ml/autogen/client/models/model_version_dto.py +2 -2
  148. truefoundry/ml/autogen/client/models/model_version_environment.py +5 -5
  149. truefoundry/ml/autogen/client/models/model_version_manifest.py +35 -22
  150. truefoundry/ml/autogen/client/models/model_version_response_dto.py +2 -2
  151. truefoundry/ml/autogen/client/models/multi_part_upload_dto.py +2 -2
  152. truefoundry/ml/autogen/client/models/multi_part_upload_response_dto.py +2 -2
  153. truefoundry/ml/autogen/client/models/multi_part_upload_storage_provider.py +2 -2
  154. truefoundry/ml/autogen/client/models/notify_artifact_version_failure_dto.py +2 -2
  155. truefoundry/ml/autogen/client/models/onnx_framework.py +3 -3
  156. truefoundry/ml/autogen/client/models/openapi_spec.py +3 -3
  157. truefoundry/ml/autogen/client/models/paddle_framework.py +3 -3
  158. truefoundry/ml/autogen/client/models/param_dto.py +2 -2
  159. truefoundry/ml/autogen/client/models/parameters.py +3 -3
  160. truefoundry/ml/autogen/client/models/py_torch_framework.py +3 -3
  161. truefoundry/ml/autogen/client/models/resolve_agent_app_response_dto.py +2 -2
  162. truefoundry/ml/autogen/client/models/restore_run_request_dto.py +2 -2
  163. truefoundry/ml/autogen/client/models/run_data_dto.py +2 -2
  164. truefoundry/ml/autogen/client/models/run_dto.py +2 -2
  165. truefoundry/ml/autogen/client/models/run_info_dto.py +2 -2
  166. truefoundry/ml/autogen/client/models/run_log_dto.py +2 -2
  167. truefoundry/ml/autogen/client/models/run_log_input_dto.py +2 -2
  168. truefoundry/ml/autogen/client/models/run_response_dto.py +2 -2
  169. truefoundry/ml/autogen/client/models/run_tag_dto.py +2 -2
  170. truefoundry/ml/autogen/client/models/search_runs_request_dto.py +2 -2
  171. truefoundry/ml/autogen/client/models/search_runs_response_dto.py +2 -2
  172. truefoundry/ml/autogen/client/models/set_experiment_tag_request_dto.py +2 -2
  173. truefoundry/ml/autogen/client/models/set_tag_request_dto.py +2 -2
  174. truefoundry/ml/autogen/client/models/signed_url_dto.py +2 -2
  175. truefoundry/ml/autogen/client/models/sklearn_framework.py +4 -4
  176. truefoundry/ml/autogen/client/models/sklearn_model_schema.py +7 -5
  177. truefoundry/ml/autogen/client/models/sklearn_serialization_format.py +3 -3
  178. truefoundry/ml/autogen/client/models/source.py +32 -7
  179. truefoundry/ml/autogen/client/models/source1.py +3 -3
  180. truefoundry/ml/autogen/client/models/{internal_metadata.py → source2.py} +52 -55
  181. truefoundry/ml/autogen/client/models/spa_cy_framework.py +3 -3
  182. truefoundry/ml/autogen/client/models/stats_models_framework.py +3 -3
  183. truefoundry/ml/autogen/client/models/stop.py +2 -2
  184. truefoundry/ml/autogen/client/models/store_run_logs_request_dto.py +2 -2
  185. truefoundry/ml/autogen/client/models/subject.py +2 -2
  186. truefoundry/ml/autogen/client/models/subject_type.py +2 -2
  187. truefoundry/ml/autogen/client/models/system_message.py +7 -4
  188. truefoundry/ml/autogen/client/models/tensor_flow_framework.py +3 -3
  189. truefoundry/ml/autogen/client/models/text.py +3 -3
  190. truefoundry/ml/autogen/client/models/text_content_part.py +6 -4
  191. truefoundry/ml/autogen/client/models/transformers_framework.py +5 -5
  192. truefoundry/ml/autogen/client/models/trigger_job_run_config_request_dto.py +2 -2
  193. truefoundry/ml/autogen/client/models/trigger_job_run_config_response_dto.py +2 -2
  194. truefoundry/ml/autogen/client/models/true_foundry_managed_source.py +3 -3
  195. truefoundry/ml/autogen/client/models/update_artifact_version_request_dto.py +5 -7
  196. truefoundry/ml/autogen/client/models/update_dataset_request_dto.py +13 -3
  197. truefoundry/ml/autogen/client/models/update_experiment_request_dto.py +2 -2
  198. truefoundry/ml/autogen/client/models/update_model_version_request_dto.py +2 -2
  199. truefoundry/ml/autogen/client/models/update_run_request_dto.py +2 -2
  200. truefoundry/ml/autogen/client/models/update_run_response_dto.py +2 -2
  201. truefoundry/ml/autogen/client/models/url.py +3 -3
  202. truefoundry/ml/autogen/client/models/user_message.py +8 -5
  203. truefoundry/ml/autogen/client/models/validate_external_storage_root_request_dto.py +2 -2
  204. truefoundry/ml/autogen/client/models/validate_external_storage_root_response_dto.py +2 -2
  205. truefoundry/ml/autogen/client/models/validation_error.py +2 -2
  206. truefoundry/ml/autogen/client/models/validation_error_loc_inner.py +2 -2
  207. truefoundry/ml/autogen/client/models/xg_boost_framework.py +4 -4
  208. truefoundry/ml/autogen/client/models/xg_boost_model_schema.py +7 -5
  209. truefoundry/ml/autogen/client/models/xg_boost_serialization_format.py +3 -3
  210. truefoundry/ml/autogen/client/rest.py +2 -2
  211. truefoundry/ml/autogen/client_README.md +17 -19
  212. truefoundry/ml/autogen/entities/artifacts.py +264 -139
  213. truefoundry/ml/clients/servicefoundry_client.py +3 -2
  214. truefoundry/ml/log_types/artifacts/artifact.py +15 -78
  215. truefoundry/ml/log_types/artifacts/model.py +4 -5
  216. truefoundry/ml/log_types/artifacts/utils.py +18 -2
  217. truefoundry/ml/mlfoundry_api.py +0 -40
  218. {truefoundry-0.5.10rc1.dist-info → truefoundry-0.5.10rc2.dist-info}/METADATA +1 -1
  219. {truefoundry-0.5.10rc1.dist-info → truefoundry-0.5.10rc2.dist-info}/RECORD +221 -215
  220. {truefoundry-0.5.10rc1.dist-info → truefoundry-0.5.10rc2.dist-info}/WHEEL +0 -0
  221. {truefoundry-0.5.10rc1.dist-info → truefoundry-0.5.10rc2.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.
@@ -22,6 +22,7 @@ from truefoundry.pydantic_v1 import (
22
22
  BaseModel,
23
23
  Field,
24
24
  StrictStr,
25
+ conint,
25
26
  conlist,
26
27
  constr,
27
28
  validator,
@@ -33,48 +34,57 @@ class AgentWithFQN(BaseModel):
33
34
  AgentWithFQN
34
35
  """
35
36
 
37
+ name: Optional[constr(strict=True, max_length=256)] = Field(
38
+ default=None,
39
+ description="+sort=1 +label=Name +message=The name should start with lowercase alphabets and can contain alphanumeric and can include '-' in between +usage=Name of the entity",
40
+ )
36
41
  description: Optional[constr(strict=True, max_length=512)] = Field(
37
42
  default=None, description="+sort=2 +label=Description"
38
43
  )
39
44
  metadata: Dict[str, Any] = Field(
40
45
  default=...,
41
- description="+label=Metadata +docs=Key value pairs to store additional metadata +usage=Key value pairs to store additional metadata +uiType=JsonInput",
46
+ description='+label=Metadata +usage=Key value metadata. Should be valid JSON. For e.g. `{"business-unit": "sales", "quality": "good", "rating": 4.5}` +uiType=JsonInput +uiProps={"descriptionInline":true}',
42
47
  )
43
48
  version_alias: Optional[constr(strict=True, max_length=128)] = Field(
44
49
  default=None,
45
- 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
+ description='+label=Version Alias +usage=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) +message=The version alias should start with `v` followed by alphanumeric and can include `.` and `-` in between (e.g. `v1.0.0`, `v1-prod`, `v3-dev`, etc) +uiProps={"descriptionInline":true} +placeholder=v1.0.0',
46
51
  )
47
- name: Optional[constr(strict=True, max_length=256)] = Field(
52
+ ml_repo: Optional[constr(strict=True)] = Field(
48
53
  default=None,
49
- description="+sort=1 +label=Name +message=The name should start with lowercase alphabets and can contain alphanumeric and can include '-' in between",
54
+ description="+label=ML Repo +usage=Name of the ML Repo +uiType=Hidden",
50
55
  )
51
- ml_repo: Optional[constr(strict=True)] = Field(
56
+ version: Optional[conint(strict=True, ge=1)] = Field(
52
57
  default=None,
53
- description="+label=ML Repo +usage=name of the ML Repo +docs=name of the ML Repo +uiType=Hidden",
58
+ description="+label=Version of the entity +usage=Version of the entity +uiType=Hidden",
59
+ )
60
+ type: StrictStr = Field(
61
+ default=..., description="+value=agent +usage=Type of the entity"
54
62
  )
55
- type: StrictStr = Field(default=..., description="+value=agent")
56
63
  available_tools: conlist(constr(strict=True, min_length=1)) = Field(
57
- default=..., description="+sort=30 +uiType=Hidden"
64
+ default=...,
65
+ description='+sort=30 +uiType=Hidden +label=Tools +usage=Tools available to the agent +uiProps={"descriptionInline":true}',
58
66
  )
59
67
  goal: constr(strict=True, max_length=128, min_length=1) = Field(
60
- default=..., description="+sort=10 +uiType=TextArea"
68
+ default=...,
69
+ description='+sort=10 +uiType=TextArea +label=Goal +usage=Short form description. Will be used as `description` when this agent is used as a tool. +uiProps={"descriptionInline":true}',
61
70
  )
62
71
  instruction: constr(strict=True, max_length=2620, min_length=1) = Field(
63
72
  default=...,
64
- description='`instruction` is the system prompt for now. (2.5 * 1024) +sort=20 +uiType=AgentInstructions +uiProps={"helpText":"Use the syntax ${Tool FQN} to reference a tool, and ${AGENT FQN} to reference another agent"}',
73
+ description='`instruction` is the system prompt for now. (2.5 * 1024) +sort=20 +uiType=AgentInstructions +uiProps={"helpText":"Use the syntax ${Tool FQN} to reference a tool, and ${AGENT FQN} to reference another agent"} +label=Instructions +usage=Instructions for the agent to follow to achieve the goal +uiProps={"descriptionInline":true}',
65
74
  )
66
75
  model_id: constr(strict=True, min_length=1) = Field(
67
76
  default=...,
68
- description='+sort=40 +uiType=EnabledModelSelector +uiProps={"searchable":true,"modelType":"chat","providerType":"openai"}',
77
+ description='+sort=40 +uiType=EnabledModelSelector +uiProps={"searchable":true,"modelType":"chat","providerType":"openai"} +label=Model +usage=Model to use when running the agent',
69
78
  )
70
- id: StrictStr = Field(...)
71
- fqn: StrictStr = Field(...)
79
+ id: StrictStr = Field(default=..., description="+usage=ID of the agent")
80
+ fqn: StrictStr = Field(default=..., description="+usage=FQN of the agent")
72
81
  __properties = [
82
+ "name",
73
83
  "description",
74
84
  "metadata",
75
85
  "version_alias",
76
- "name",
77
86
  "ml_repo",
87
+ "version",
78
88
  "type",
79
89
  "available_tools",
80
90
  "goal",
@@ -84,27 +94,27 @@ class AgentWithFQN(BaseModel):
84
94
  "fqn",
85
95
  ]
86
96
 
87
- @validator("version_alias")
88
- def version_alias_validate_regular_expression(cls, value):
97
+ @validator("name")
98
+ def name_validate_regular_expression(cls, value):
89
99
  """Validates the regular expression"""
90
100
  if value is None:
91
101
  return value
92
102
 
93
- if not re.match(r"^v[a-zA-Z0-9.-]*([a-zA-Z0-9]+)$", value):
103
+ if not re.match(r"^[A-Za-z0-9_\-]+$", value):
94
104
  raise ValueError(
95
- r"must validate the regular expression /^v[a-zA-Z0-9.-]*([a-zA-Z0-9]+)$/"
105
+ r"must validate the regular expression /^[A-Za-z0-9_\-]+$/"
96
106
  )
97
107
  return value
98
108
 
99
- @validator("name")
100
- def name_validate_regular_expression(cls, value):
109
+ @validator("version_alias")
110
+ def version_alias_validate_regular_expression(cls, value):
101
111
  """Validates the regular expression"""
102
112
  if value is None:
103
113
  return value
104
114
 
105
- if not re.match(r"^[A-Za-z0-9_\-]+$", value):
115
+ if not re.match(r"^v[a-zA-Z0-9.-]*([a-zA-Z0-9]+)$", value):
106
116
  raise ValueError(
107
- r"must validate the regular expression /^[A-Za-z0-9_\-]+$/"
117
+ r"must validate the regular expression /^v[a-zA-Z0-9.-]*([a-zA-Z0-9]+)$/"
108
118
  )
109
119
  return value
110
120
 
@@ -162,11 +172,12 @@ class AgentWithFQN(BaseModel):
162
172
 
163
173
  _obj = AgentWithFQN.parse_obj(
164
174
  {
175
+ "name": obj.get("name"),
165
176
  "description": obj.get("description"),
166
177
  "metadata": obj.get("metadata"),
167
178
  "version_alias": obj.get("version_alias"),
168
- "name": obj.get("name"),
169
179
  "ml_repo": obj.get("ml_repo"),
180
+ "version": obj.get("version"),
170
181
  "type": obj.get("type"),
171
182
  "available_tools": obj.get("available_tools"),
172
183
  "goal": obj.get("goal"),
@@ -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.
@@ -16,19 +16,18 @@ from __future__ import annotations
16
16
  import json
17
17
  import pprint
18
18
  import re # noqa: F401
19
- from typing import Any, Dict, Optional
20
19
 
21
- from truefoundry.pydantic_v1 import BaseModel, Field, StrictStr, conlist
20
+ from truefoundry.ml.autogen.client.models.manifest import Manifest
21
+ from truefoundry.pydantic_v1 import BaseModel, Field
22
22
 
23
23
 
24
- class AddCustomMetricsToModelVersionRequestDto(BaseModel):
24
+ class ApplyRequestDto(BaseModel):
25
25
  """
26
- AddCustomMetricsToModelVersionRequestDto
26
+ ApplyRequestDto
27
27
  """
28
28
 
29
- id: StrictStr = Field(...)
30
- custom_metrics: Optional[conlist(Dict[str, Any])] = None
31
- __properties = ["id", "custom_metrics"]
29
+ manifest: Manifest = Field(...)
30
+ __properties = ["manifest"]
32
31
 
33
32
  class Config:
34
33
  """Pydantic configuration"""
@@ -45,25 +44,32 @@ class AddCustomMetricsToModelVersionRequestDto(BaseModel):
45
44
  return json.dumps(self.to_dict())
46
45
 
47
46
  @classmethod
48
- def from_json(cls, json_str: str) -> AddCustomMetricsToModelVersionRequestDto:
49
- """Create an instance of AddCustomMetricsToModelVersionRequestDto from a JSON string"""
47
+ def from_json(cls, json_str: str) -> ApplyRequestDto:
48
+ """Create an instance of ApplyRequestDto from a JSON string"""
50
49
  return cls.from_dict(json.loads(json_str))
51
50
 
52
51
  def to_dict(self):
53
52
  """Returns the dictionary representation of the model using alias"""
54
53
  _dict = self.dict(by_alias=True, exclude={}, exclude_none=True)
54
+ # override the default output from truefoundry.pydantic_v1 by calling `to_dict()` of manifest
55
+ if self.manifest:
56
+ _dict["manifest"] = self.manifest.to_dict()
55
57
  return _dict
56
58
 
57
59
  @classmethod
58
- def from_dict(cls, obj: dict) -> AddCustomMetricsToModelVersionRequestDto:
59
- """Create an instance of AddCustomMetricsToModelVersionRequestDto from a dict"""
60
+ def from_dict(cls, obj: dict) -> ApplyRequestDto:
61
+ """Create an instance of ApplyRequestDto from a dict"""
60
62
  if obj is None:
61
63
  return None
62
64
 
63
65
  if not isinstance(obj, dict):
64
- return AddCustomMetricsToModelVersionRequestDto.parse_obj(obj)
65
-
66
- _obj = AddCustomMetricsToModelVersionRequestDto.parse_obj(
67
- {"id": obj.get("id"), "custom_metrics": obj.get("custom_metrics")}
66
+ return ApplyRequestDto.parse_obj(obj)
67
+
68
+ _obj = ApplyRequestDto.parse_obj(
69
+ {
70
+ "manifest": Manifest.from_dict(obj.get("manifest"))
71
+ if obj.get("manifest") is not None
72
+ else None
73
+ }
68
74
  )
69
75
  return _obj
@@ -0,0 +1,79 @@
1
+ # coding: utf-8
2
+
3
+ """
4
+ TrueFoundry ML API
5
+
6
+ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
7
+
8
+ The version of the OpenAPI document: 1.0.0
9
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
10
+
11
+ Do not edit the class manually.
12
+ """ # noqa: E501
13
+
14
+ from __future__ import annotations
15
+
16
+ import json
17
+ import pprint
18
+ import re # noqa: F401
19
+
20
+ from truefoundry.ml.autogen.client.models.manifest import Manifest
21
+ from truefoundry.pydantic_v1 import BaseModel, Field, StrictStr
22
+
23
+
24
+ class ApplyResponseDto(BaseModel):
25
+ """
26
+ ApplyResponseDto
27
+ """
28
+
29
+ id: StrictStr = Field(...)
30
+ fqn: StrictStr = Field(...)
31
+ manifest: Manifest = Field(...)
32
+ __properties = ["id", "fqn", "manifest"]
33
+
34
+ class Config:
35
+ """Pydantic configuration"""
36
+
37
+ allow_population_by_field_name = True
38
+ validate_assignment = True
39
+
40
+ def to_str(self) -> str:
41
+ """Returns the string representation of the model using alias"""
42
+ return pprint.pformat(self.dict(by_alias=True))
43
+
44
+ def to_json(self) -> str:
45
+ """Returns the JSON representation of the model using alias"""
46
+ return json.dumps(self.to_dict())
47
+
48
+ @classmethod
49
+ def from_json(cls, json_str: str) -> ApplyResponseDto:
50
+ """Create an instance of ApplyResponseDto from a JSON string"""
51
+ return cls.from_dict(json.loads(json_str))
52
+
53
+ def to_dict(self):
54
+ """Returns the dictionary representation of the model using alias"""
55
+ _dict = self.dict(by_alias=True, exclude={}, exclude_none=True)
56
+ # override the default output from truefoundry.pydantic_v1 by calling `to_dict()` of manifest
57
+ if self.manifest:
58
+ _dict["manifest"] = self.manifest.to_dict()
59
+ return _dict
60
+
61
+ @classmethod
62
+ def from_dict(cls, obj: dict) -> ApplyResponseDto:
63
+ """Create an instance of ApplyResponseDto from a dict"""
64
+ if obj is None:
65
+ return None
66
+
67
+ if not isinstance(obj, dict):
68
+ return ApplyResponseDto.parse_obj(obj)
69
+
70
+ _obj = ApplyResponseDto.parse_obj(
71
+ {
72
+ "id": obj.get("id"),
73
+ "fqn": obj.get("fqn"),
74
+ "manifest": Manifest.from_dict(obj.get("manifest"))
75
+ if obj.get("manifest") is not None
76
+ else None,
77
+ }
78
+ )
79
+ 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.
@@ -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.
@@ -16,19 +16,24 @@ from __future__ import annotations
16
16
  import json
17
17
  import pprint
18
18
  import re # noqa: F401
19
- from typing import Any, Dict, Optional
19
+ from typing import Optional
20
20
 
21
- from truefoundry.pydantic_v1 import BaseModel, Field, StrictStr, conlist
21
+ from truefoundry.pydantic_v1 import BaseModel, Field, StrictStr
22
22
 
23
23
 
24
- class AddFeaturesToModelVersionRequestDto(BaseModel):
24
+ class ArtifactPath(BaseModel):
25
25
  """
26
- AddFeaturesToModelVersionRequestDto
26
+ ArtifactPath
27
27
  """
28
28
 
29
- id: StrictStr = Field(...)
30
- features: Optional[conlist(Dict[str, Any])] = None
31
- __properties = ["id", "features"]
29
+ src: StrictStr = Field(
30
+ default=..., description="+label=Source path +usage=Local file or folder path"
31
+ )
32
+ dest: Optional[StrictStr] = Field(
33
+ default=None,
34
+ description="+label=Destination path +usage=Relative path where the file or folder will be uploaded to in the artifact",
35
+ )
36
+ __properties = ["src", "dest"]
32
37
 
33
38
  class Config:
34
39
  """Pydantic configuration"""
@@ -45,8 +50,8 @@ class AddFeaturesToModelVersionRequestDto(BaseModel):
45
50
  return json.dumps(self.to_dict())
46
51
 
47
52
  @classmethod
48
- def from_json(cls, json_str: str) -> AddFeaturesToModelVersionRequestDto:
49
- """Create an instance of AddFeaturesToModelVersionRequestDto from a JSON string"""
53
+ def from_json(cls, json_str: str) -> ArtifactPath:
54
+ """Create an instance of ArtifactPath from a JSON string"""
50
55
  return cls.from_dict(json.loads(json_str))
51
56
 
52
57
  def to_dict(self):
@@ -55,15 +60,13 @@ class AddFeaturesToModelVersionRequestDto(BaseModel):
55
60
  return _dict
56
61
 
57
62
  @classmethod
58
- def from_dict(cls, obj: dict) -> AddFeaturesToModelVersionRequestDto:
59
- """Create an instance of AddFeaturesToModelVersionRequestDto from a dict"""
63
+ def from_dict(cls, obj: dict) -> ArtifactPath:
64
+ """Create an instance of ArtifactPath from a dict"""
60
65
  if obj is None:
61
66
  return None
62
67
 
63
68
  if not isinstance(obj, dict):
64
- return AddFeaturesToModelVersionRequestDto.parse_obj(obj)
69
+ return ArtifactPath.parse_obj(obj)
65
70
 
66
- _obj = AddFeaturesToModelVersionRequestDto.parse_obj(
67
- {"id": obj.get("id"), "features": obj.get("features")}
68
- )
71
+ _obj = ArtifactPath.parse_obj({"src": obj.get("src"), "dest": obj.get("dest")})
69
72
  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.
@@ -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.
@@ -30,7 +30,7 @@ class ArtifactType(str, Enum):
30
30
  PLOT = "plot"
31
31
  IMAGE = "image"
32
32
  CHAT_PROMPT = "chat_prompt"
33
- OPENAPI_TOOL = "openapi_tool"
33
+ OPENAPI_MINUS_TOOL = "openapi-tool"
34
34
  AGENT = "agent"
35
35
 
36
36
  @classmethod
@@ -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.
@@ -25,8 +25,7 @@ from truefoundry.ml.autogen.client.models.artifact_version_serialization_format
25
25
  from truefoundry.ml.autogen.client.models.artifact_version_status import (
26
26
  ArtifactVersionStatus,
27
27
  )
28
- from truefoundry.ml.autogen.client.models.internal_metadata import InternalMetadata
29
- from truefoundry.ml.autogen.client.models.manifest import Manifest
28
+ from truefoundry.ml.autogen.client.models.manifest1 import Manifest1
30
29
  from truefoundry.ml.autogen.client.models.subject import Subject
31
30
  from truefoundry.pydantic_v1 import BaseModel, Field, StrictInt, StrictStr
32
31
 
@@ -55,9 +54,9 @@ class ArtifactVersionDto(BaseModel):
55
54
  usage_code_snippet: Optional[StrictStr] = None
56
55
  run_id: Optional[StrictStr] = None
57
56
  artifact_name: Optional[StrictStr] = None
58
- internal_metadata: Optional[InternalMetadata] = None
57
+ internal_metadata: Optional[Dict[str, Any]] = None
59
58
  artifact_size: Optional[StrictInt] = None
60
- manifest: Optional[Manifest] = None
59
+ manifest: Optional[Manifest1] = None
61
60
  serialization_format: ArtifactVersionSerializationFormat = Field(...)
62
61
  __properties = [
63
62
  "id",
@@ -110,9 +109,6 @@ class ArtifactVersionDto(BaseModel):
110
109
  # override the default output from truefoundry.pydantic_v1 by calling `to_dict()` of created_by_subject
111
110
  if self.created_by_subject:
112
111
  _dict["created_by_subject"] = self.created_by_subject.to_dict()
113
- # override the default output from truefoundry.pydantic_v1 by calling `to_dict()` of internal_metadata
114
- if self.internal_metadata:
115
- _dict["internal_metadata"] = self.internal_metadata.to_dict()
116
112
  # override the default output from truefoundry.pydantic_v1 by calling `to_dict()` of manifest
117
113
  if self.manifest:
118
114
  _dict["manifest"] = self.manifest.to_dict()
@@ -150,13 +146,9 @@ class ArtifactVersionDto(BaseModel):
150
146
  "usage_code_snippet": obj.get("usage_code_snippet"),
151
147
  "run_id": obj.get("run_id"),
152
148
  "artifact_name": obj.get("artifact_name"),
153
- "internal_metadata": InternalMetadata.from_dict(
154
- obj.get("internal_metadata")
155
- )
156
- if obj.get("internal_metadata") is not None
157
- else None,
149
+ "internal_metadata": obj.get("internal_metadata"),
158
150
  "artifact_size": obj.get("artifact_size"),
159
- "manifest": Manifest.from_dict(obj.get("manifest"))
151
+ "manifest": Manifest1.from_dict(obj.get("manifest"))
160
152
  if obj.get("manifest") is not None
161
153
  else None,
162
154
  "serialization_format": obj.get("serialization_format"),
@@ -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.
@@ -34,62 +34,73 @@ class ArtifactVersionManifest(BaseModel):
34
34
  Artifact Version manifest. # noqa: E501
35
35
  """
36
36
 
37
+ name: Optional[constr(strict=True, max_length=256)] = Field(
38
+ default=None,
39
+ description="+sort=1 +label=Name +message=The name should start with lowercase alphabets and can contain alphanumeric and can include '-' in between +usage=Name of the entity",
40
+ )
37
41
  description: Optional[constr(strict=True, max_length=512)] = Field(
38
42
  default=None, description="+sort=2 +label=Description"
39
43
  )
40
44
  metadata: Dict[str, Any] = Field(
41
45
  default=...,
42
- description="+label=Metadata +docs=Key value pairs to store additional metadata +usage=Key value pairs to store additional metadata +uiType=JsonInput",
46
+ description='+label=Metadata +usage=Key value metadata. Should be valid JSON. For e.g. `{"business-unit": "sales", "quality": "good", "rating": 4.5}` +uiType=JsonInput +uiProps={"descriptionInline":true}',
43
47
  )
44
48
  version_alias: Optional[constr(strict=True, max_length=128)] = Field(
45
49
  default=None,
46
- 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
+ description='+label=Version Alias +usage=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) +message=The version alias should start with `v` followed by alphanumeric and can include `.` and `-` in between (e.g. `v1.0.0`, `v1-prod`, `v3-dev`, etc) +uiProps={"descriptionInline":true} +placeholder=v1.0.0',
47
51
  )
48
- name: Optional[constr(strict=True, max_length=256)] = Field(
52
+ ml_repo: Optional[constr(strict=True)] = Field(
49
53
  default=None,
50
- description="+sort=1 +label=Name +message=The name should start with lowercase alphabets and can contain alphanumeric and can include '-' in between",
54
+ description="+label=ML Repo +usage=Name of the ML Repo +uiType=Hidden",
51
55
  )
52
- ml_repo: Optional[constr(strict=True)] = Field(
56
+ version: Optional[conint(strict=True, ge=1)] = Field(
53
57
  default=None,
54
- description="+label=ML Repo +usage=name of the ML Repo +docs=name of the ML Repo +uiType=Hidden",
58
+ description="+label=Version of the entity +usage=Version of the entity +uiType=Hidden",
55
59
  )
56
60
  type: Optional[StrictStr] = "artifact-version"
57
61
  source: Source = Field(...)
58
62
  step: Optional[conint(strict=True, ge=0)] = Field(
59
- default=0, description="+label=Step"
63
+ default=0,
64
+ description='+label=Step +usage=Step/Epoch number in an iterative training loop the artifact version was created. Generally useful when logging a model version from a MLRepo Run +uiProps={"descriptionInline":true}',
65
+ )
66
+ run_id: Optional[StrictStr] = Field(
67
+ default=None,
68
+ description="+label=Run ID +usage=ID of the MLRepo Run that generated the artifact version +uiType=Hidden",
60
69
  )
61
70
  __properties = [
71
+ "name",
62
72
  "description",
63
73
  "metadata",
64
74
  "version_alias",
65
- "name",
66
75
  "ml_repo",
76
+ "version",
67
77
  "type",
68
78
  "source",
69
79
  "step",
80
+ "run_id",
70
81
  ]
71
82
 
72
- @validator("version_alias")
73
- def version_alias_validate_regular_expression(cls, value):
83
+ @validator("name")
84
+ def name_validate_regular_expression(cls, value):
74
85
  """Validates the regular expression"""
75
86
  if value is None:
76
87
  return value
77
88
 
78
- if not re.match(r"^v[a-zA-Z0-9.-]*([a-zA-Z0-9]+)$", value):
89
+ if not re.match(r"^[A-Za-z0-9_\-]+$", value):
79
90
  raise ValueError(
80
- r"must validate the regular expression /^v[a-zA-Z0-9.-]*([a-zA-Z0-9]+)$/"
91
+ r"must validate the regular expression /^[A-Za-z0-9_\-]+$/"
81
92
  )
82
93
  return value
83
94
 
84
- @validator("name")
85
- def name_validate_regular_expression(cls, value):
95
+ @validator("version_alias")
96
+ def version_alias_validate_regular_expression(cls, value):
86
97
  """Validates the regular expression"""
87
98
  if value is None:
88
99
  return value
89
100
 
90
- if not re.match(r"^[A-Za-z0-9_\-]+$", value):
101
+ if not re.match(r"^v[a-zA-Z0-9.-]*([a-zA-Z0-9]+)$", value):
91
102
  raise ValueError(
92
- r"must validate the regular expression /^[A-Za-z0-9_\-]+$/"
103
+ r"must validate the regular expression /^v[a-zA-Z0-9.-]*([a-zA-Z0-9]+)$/"
93
104
  )
94
105
  return value
95
106
 
@@ -153,11 +164,12 @@ class ArtifactVersionManifest(BaseModel):
153
164
 
154
165
  _obj = ArtifactVersionManifest.parse_obj(
155
166
  {
167
+ "name": obj.get("name"),
156
168
  "description": obj.get("description"),
157
169
  "metadata": obj.get("metadata"),
158
170
  "version_alias": obj.get("version_alias"),
159
- "name": obj.get("name"),
160
171
  "ml_repo": obj.get("ml_repo"),
172
+ "version": obj.get("version"),
161
173
  "type": obj.get("type")
162
174
  if obj.get("type") is not None
163
175
  else "artifact-version",
@@ -165,6 +177,7 @@ class ArtifactVersionManifest(BaseModel):
165
177
  if obj.get("source") is not None
166
178
  else None,
167
179
  "step": obj.get("step") if obj.get("step") is not None else 0,
180
+ "run_id": obj.get("run_id"),
168
181
  }
169
182
  )
170
183
  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.
@@ -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.