truefoundry 0.5.10rc2__py3-none-any.whl → 0.6.1__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.
- truefoundry/__init__.py +19 -0
- truefoundry/_client.py +36 -0
- truefoundry/common/constants.py +16 -2
- truefoundry/common/utils.py +9 -0
- truefoundry/deploy/__init__.py +2 -2
- truefoundry/deploy/_autogen/models.py +1591 -0
- truefoundry/deploy/builder/__init__.py +1 -1
- truefoundry/deploy/builder/builders/dockerfile.py +1 -1
- truefoundry/deploy/builder/builders/tfy_notebook_buildpack/__init__.py +1 -1
- truefoundry/deploy/builder/builders/tfy_python_buildpack/__init__.py +1 -1
- truefoundry/deploy/builder/builders/tfy_python_buildpack/dockerfile_template.py +1 -1
- truefoundry/deploy/lib/clients/servicefoundry_client.py +41 -35
- truefoundry/deploy/v2/lib/deploy.py +7 -7
- truefoundry/deploy/v2/lib/deploy_workflow.py +9 -9
- truefoundry/deploy/v2/lib/deployable_patched_models.py +1 -1
- truefoundry/deploy/v2/lib/patched_models.py +7 -7
- truefoundry/deploy/v2/lib/source.py +1 -1
- truefoundry/ml/__init__.py +2 -2
- truefoundry/ml/_autogen/client/__init__.py +457 -0
- truefoundry/ml/_autogen/client/api/__init__.py +16 -0
- truefoundry/ml/{autogen → _autogen}/client/api/auth_api.py +4 -4
- truefoundry/ml/{autogen → _autogen}/client/api/deprecated_api.py +7 -7
- truefoundry/ml/{autogen → _autogen}/client/api/experiments_api.py +12 -12
- truefoundry/ml/{autogen → _autogen}/client/api/generate_code_snippet_api.py +8 -8
- truefoundry/ml/{autogen → _autogen}/client/api/health_api.py +3 -3
- truefoundry/ml/{autogen → _autogen}/client/api/metrics_api.py +6 -6
- truefoundry/ml/{autogen → _autogen}/client/api/mlfoundry_artifacts_api.py +61 -59
- truefoundry/ml/{autogen → _autogen}/client/api/run_artifacts_api.py +4 -4
- truefoundry/ml/{autogen → _autogen}/client/api/runs_api.py +21 -21
- truefoundry/ml/{autogen → _autogen}/client/api_client.py +6 -6
- truefoundry/ml/{autogen → _autogen}/client/configuration.py +1 -1
- truefoundry/ml/_autogen/client/models/__init__.py +428 -0
- truefoundry/ml/{autogen → _autogen}/client/models/agent_app.py +5 -6
- truefoundry/ml/{autogen → _autogen}/client/models/agent_manifest.py +10 -17
- truefoundry/ml/{autogen → _autogen}/client/models/agent_open_api_tool_manifest.py +12 -18
- truefoundry/ml/{autogen → _autogen}/client/models/agent_open_api_tool_with_fqn.py +15 -23
- truefoundry/ml/{autogen → _autogen}/client/models/agent_with_fqn.py +13 -22
- truefoundry/ml/{autogen → _autogen}/client/models/apply_request_dto.py +1 -1
- truefoundry/ml/{autogen → _autogen}/client/models/apply_response_dto.py +1 -1
- truefoundry/ml/{autogen → _autogen}/client/models/artifact_dto.py +5 -3
- truefoundry/ml/{autogen/client/models/artifact_version_manifest.py → _autogen/client/models/artifact_manifest.py} +16 -21
- truefoundry/ml/{autogen → _autogen}/client/models/artifact_path.py +2 -4
- truefoundry/ml/{autogen → _autogen}/client/models/artifact_response_dto.py +1 -1
- truefoundry/ml/{autogen → _autogen}/client/models/artifact_version_dto.py +4 -4
- truefoundry/ml/{autogen → _autogen}/client/models/artifact_version_response_dto.py +3 -1
- truefoundry/ml/{autogen → _autogen}/client/models/assistant_message.py +4 -8
- truefoundry/ml/{autogen → _autogen}/client/models/blob_storage_reference.py +5 -8
- truefoundry/ml/{autogen → _autogen}/client/models/chat_prompt_manifest.py +10 -15
- truefoundry/ml/{autogen → _autogen}/client/models/chat_prompt_manifest_messages_inner.py +3 -3
- truefoundry/ml/{autogen → _autogen}/client/models/content.py +2 -2
- truefoundry/ml/{autogen → _autogen}/client/models/content1.py +2 -2
- truefoundry/ml/{autogen → _autogen}/client/models/content2.py +3 -3
- truefoundry/ml/{autogen → _autogen}/client/models/content2_any_of_inner.py +2 -2
- truefoundry/ml/{autogen → _autogen}/client/models/create_artifact_request_dto.py +1 -1
- truefoundry/ml/{autogen → _autogen}/client/models/create_artifact_version_request_dto.py +1 -1
- truefoundry/ml/{autogen → _autogen}/client/models/create_dataset_request_dto.py +1 -1
- truefoundry/ml/{autogen → _autogen}/client/models/create_experiment_request_dto.py +1 -1
- truefoundry/ml/{autogen → _autogen}/client/models/create_multi_part_upload_for_dataset_response_dto.py +1 -1
- truefoundry/ml/{autogen → _autogen}/client/models/create_run_request_dto.py +1 -1
- truefoundry/ml/{autogen → _autogen}/client/models/create_run_response_dto.py +1 -1
- truefoundry/ml/{autogen → _autogen}/client/models/data_directory_manifest.py +5 -7
- truefoundry/ml/{autogen → _autogen}/client/models/dataset_dto.py +3 -3
- truefoundry/ml/{autogen → _autogen}/client/models/dataset_response_dto.py +1 -1
- truefoundry/ml/{autogen → _autogen}/client/models/experiment_dto.py +2 -2
- truefoundry/ml/{autogen → _autogen}/client/models/experiment_response_dto.py +1 -1
- truefoundry/ml/{autogen → _autogen}/client/models/export_deployment_files_request_dto.py +1 -1
- truefoundry/ml/{autogen → _autogen}/client/models/external_blob_storage_source.py +14 -7
- truefoundry/ml/{autogen → _autogen}/client/models/fast_ai_framework.py +2 -5
- truefoundry/ml/{autogen → _autogen}/client/models/file_info_dto.py +4 -1
- truefoundry/ml/{autogen → _autogen}/client/models/finalize_artifact_version_request_dto.py +1 -1
- truefoundry/ml/{autogen → _autogen}/client/models/framework.py +15 -15
- truefoundry/ml/{autogen → _autogen}/client/models/get_experiment_response_dto.py +2 -2
- truefoundry/ml/{autogen → _autogen}/client/models/get_latest_run_log_response_dto.py +1 -1
- truefoundry/ml/{autogen → _autogen}/client/models/get_metric_history_response.py +1 -1
- truefoundry/ml/{autogen → _autogen}/client/models/get_signed_urls_for_artifact_version_read_response_dto.py +1 -1
- truefoundry/ml/{autogen → _autogen}/client/models/get_signed_urls_for_artifact_version_write_response_dto.py +1 -1
- truefoundry/ml/{autogen → _autogen}/client/models/get_signed_urls_for_dataset_read_response_dto.py +1 -1
- truefoundry/ml/{autogen → _autogen}/client/models/get_signed_urls_for_dataset_write_response_dto.py +1 -1
- truefoundry/ml/{autogen → _autogen}/client/models/gluon_framework.py +2 -4
- truefoundry/ml/{autogen → _autogen}/client/models/h2_o_framework.py +2 -4
- truefoundry/ml/{autogen → _autogen}/client/models/http_validation_error.py +1 -1
- truefoundry/ml/{autogen → _autogen}/client/models/image_content_part.py +4 -7
- truefoundry/ml/{autogen → _autogen}/client/models/image_url.py +2 -2
- truefoundry/ml/{autogen → _autogen}/client/models/infer_method_name.py +1 -1
- truefoundry/ml/{autogen → _autogen}/client/models/keras_framework.py +2 -4
- truefoundry/ml/{autogen → _autogen}/client/models/latest_run_log_dto.py +1 -1
- truefoundry/ml/{autogen → _autogen}/client/models/library_name.py +1 -1
- truefoundry/ml/{autogen → _autogen}/client/models/light_gbm_framework.py +2 -5
- truefoundry/ml/{autogen → _autogen}/client/models/list_artifact_versions_request_dto.py +2 -2
- truefoundry/ml/{autogen → _autogen}/client/models/list_artifact_versions_response_dto.py +3 -1
- truefoundry/ml/{autogen → _autogen}/client/models/list_artifacts_request_dto.py +1 -1
- truefoundry/ml/{autogen → _autogen}/client/models/list_artifacts_response_dto.py +1 -1
- truefoundry/ml/{autogen → _autogen}/client/models/list_colums_response_dto.py +1 -1
- truefoundry/ml/{autogen → _autogen}/client/models/list_datasets_response_dto.py +1 -1
- truefoundry/ml/{autogen → _autogen}/client/models/list_experiments_response_dto.py +1 -1
- truefoundry/ml/{autogen → _autogen}/client/models/list_files_for_artifact_versions_response_dto.py +1 -1
- truefoundry/ml/{autogen → _autogen}/client/models/list_files_for_dataset_response_dto.py +1 -1
- truefoundry/ml/{autogen → _autogen}/client/models/list_latest_run_logs_response_dto.py +1 -1
- truefoundry/ml/{autogen → _autogen}/client/models/list_metric_history_response_dto.py +1 -1
- truefoundry/ml/{autogen → _autogen}/client/models/list_model_version_response_dto.py +1 -1
- truefoundry/ml/{autogen → _autogen}/client/models/list_model_versions_request_dto.py +1 -1
- truefoundry/ml/{autogen → _autogen}/client/models/list_models_response_dto.py +1 -1
- truefoundry/ml/{autogen → _autogen}/client/models/list_run_artifacts_response_dto.py +1 -1
- truefoundry/ml/{autogen → _autogen}/client/models/list_run_logs_response_dto.py +1 -1
- truefoundry/ml/{autogen → _autogen}/client/models/local_artifact_source.py +3 -5
- truefoundry/ml/{autogen → _autogen}/client/models/local_model_source.py +2 -5
- truefoundry/ml/{autogen → _autogen}/client/models/log_batch_request_dto.py +3 -3
- truefoundry/ml/{autogen → _autogen}/client/models/manifest.py +28 -30
- truefoundry/ml/{autogen → _autogen}/client/models/manifest1.py +26 -28
- truefoundry/ml/{autogen → _autogen}/client/models/manifest2.py +16 -16
- truefoundry/ml/{autogen → _autogen}/client/models/method.py +1 -1
- truefoundry/ml/{autogen → _autogen}/client/models/metric_collection_dto.py +1 -1
- truefoundry/ml/{autogen → _autogen}/client/models/mime_type.py +1 -1
- truefoundry/ml/{autogen → _autogen}/client/models/model_configuration.py +6 -7
- truefoundry/ml/{autogen → _autogen}/client/models/model_dto.py +4 -4
- truefoundry/ml/{autogen/client/models/model_version_manifest.py → _autogen/client/models/model_manifest.py} +18 -23
- truefoundry/ml/{autogen → _autogen}/client/models/model_response_dto.py +1 -1
- truefoundry/ml/{autogen → _autogen}/client/models/model_version_dto.py +7 -9
- truefoundry/ml/{autogen → _autogen}/client/models/model_version_environment.py +3 -5
- truefoundry/ml/{autogen → _autogen}/client/models/model_version_response_dto.py +1 -1
- truefoundry/ml/{autogen → _autogen}/client/models/multi_part_upload_dto.py +2 -2
- truefoundry/ml/{autogen → _autogen}/client/models/multi_part_upload_response_dto.py +1 -1
- truefoundry/ml/{autogen → _autogen}/client/models/onnx_framework.py +2 -4
- truefoundry/ml/{autogen → _autogen}/client/models/openapi_spec.py +2 -2
- truefoundry/ml/{autogen → _autogen}/client/models/paddle_framework.py +2 -5
- truefoundry/ml/{autogen → _autogen}/client/models/parameters.py +2 -2
- truefoundry/ml/{autogen → _autogen}/client/models/py_torch_framework.py +2 -5
- truefoundry/ml/{autogen → _autogen}/client/models/resolve_agent_app_response_dto.py +1 -1
- truefoundry/ml/{autogen → _autogen}/client/models/run_data_dto.py +3 -3
- truefoundry/ml/{autogen → _autogen}/client/models/run_dto.py +2 -2
- truefoundry/ml/{autogen → _autogen}/client/models/run_info_dto.py +1 -1
- truefoundry/ml/{autogen → _autogen}/client/models/run_response_dto.py +1 -1
- truefoundry/ml/{autogen → _autogen}/client/models/search_runs_response_dto.py +1 -1
- truefoundry/ml/{autogen → _autogen}/client/models/signed_url_dto.py +1 -2
- truefoundry/ml/{autogen → _autogen}/client/models/sklearn_framework.py +7 -8
- truefoundry/ml/{autogen → _autogen}/client/models/sklearn_model_schema.py +5 -8
- truefoundry/ml/{autogen → _autogen}/client/models/sklearn_serialization_format.py +1 -1
- truefoundry/ml/{autogen → _autogen}/client/models/source.py +4 -4
- truefoundry/ml/{autogen → _autogen}/client/models/source1.py +3 -3
- truefoundry/ml/{autogen → _autogen}/client/models/source2.py +4 -4
- truefoundry/ml/{autogen → _autogen}/client/models/spa_cy_framework.py +2 -4
- truefoundry/ml/{autogen → _autogen}/client/models/stats_models_framework.py +2 -5
- truefoundry/ml/{autogen → _autogen}/client/models/store_run_logs_request_dto.py +1 -1
- truefoundry/ml/{autogen → _autogen}/client/models/subject.py +1 -1
- truefoundry/ml/{autogen → _autogen}/client/models/system_message.py +4 -9
- truefoundry/ml/{autogen → _autogen}/client/models/tensor_flow_framework.py +2 -5
- truefoundry/ml/{autogen → _autogen}/client/models/text.py +2 -2
- truefoundry/ml/{autogen → _autogen}/client/models/text_content_part.py +3 -5
- truefoundry/ml/{autogen → _autogen}/client/models/transformers_framework.py +6 -10
- truefoundry/ml/{autogen → _autogen}/client/models/trigger_job_run_config_request_dto.py +1 -1
- truefoundry/ml/{autogen → _autogen}/client/models/true_foundry_managed_source.py +16 -10
- truefoundry/ml/{autogen → _autogen}/client/models/update_artifact_version_request_dto.py +1 -1
- truefoundry/ml/{autogen → _autogen}/client/models/update_dataset_request_dto.py +1 -1
- truefoundry/ml/{autogen → _autogen}/client/models/update_model_version_request_dto.py +3 -5
- truefoundry/ml/{autogen → _autogen}/client/models/update_run_response_dto.py +1 -1
- truefoundry/ml/{autogen → _autogen}/client/models/url.py +2 -2
- truefoundry/ml/{autogen → _autogen}/client/models/user_message.py +4 -7
- truefoundry/ml/{autogen → _autogen}/client/models/validation_error.py +1 -1
- truefoundry/ml/{autogen → _autogen}/client/models/xg_boost_framework.py +5 -8
- truefoundry/ml/{autogen → _autogen}/client/models/xg_boost_model_schema.py +4 -7
- truefoundry/ml/{autogen → _autogen}/client/models/xg_boost_serialization_format.py +1 -1
- truefoundry/ml/{autogen → _autogen}/client/rest.py +1 -1
- truefoundry/ml/_autogen/client_README.md +359 -0
- truefoundry/ml/_autogen/entities/artifacts.py +558 -0
- truefoundry/ml/artifact/truefoundry_artifact_repo.py +1 -1
- truefoundry/ml/cli/commands/model_init.py +1 -1
- truefoundry/ml/clients/servicefoundry_client.py +4 -0
- truefoundry/ml/entities.py +1 -1
- truefoundry/ml/log_types/artifacts/artifact.py +9 -9
- truefoundry/ml/log_types/artifacts/dataset.py +5 -5
- truefoundry/ml/log_types/artifacts/general_artifact.py +1 -1
- truefoundry/ml/log_types/artifacts/model.py +9 -9
- truefoundry/ml/log_types/image/image.py +1 -1
- truefoundry/ml/log_types/plot.py +1 -1
- truefoundry/ml/mlfoundry_api.py +2 -2
- truefoundry/ml/mlfoundry_run.py +1 -1
- truefoundry/ml/model_framework.py +3 -3
- truefoundry/ml/session.py +7 -4
- truefoundry/ml/validation_utils.py +1 -1
- truefoundry/workflow/map_task.py +5 -2
- {truefoundry-0.5.10rc2.dist-info → truefoundry-0.6.1.dist-info}/METADATA +2 -1
- truefoundry-0.6.1.dist-info/RECORD +377 -0
- truefoundry/deploy/auto_gen/models.py +0 -1915
- truefoundry/ml/autogen/client/__init__.py +0 -453
- truefoundry/ml/autogen/client/api/__init__.py +0 -16
- truefoundry/ml/autogen/client/models/__init__.py +0 -424
- truefoundry/ml/autogen/client_README.md +0 -359
- truefoundry/ml/autogen/entities/artifacts.py +0 -795
- truefoundry-0.5.10rc2.dist-info/RECORD +0 -376
- /truefoundry/ml/{autogen → _autogen}/__init__.py +0 -0
- /truefoundry/ml/{autogen → _autogen}/client/api_response.py +0 -0
- /truefoundry/ml/{autogen → _autogen}/client/exceptions.py +0 -0
- /truefoundry/ml/{autogen → _autogen}/client/models/artifact_type.py +0 -0
- /truefoundry/ml/{autogen → _autogen}/client/models/artifact_version_serialization_format.py +0 -0
- /truefoundry/ml/{autogen → _autogen}/client/models/artifact_version_status.py +0 -0
- /truefoundry/ml/{autogen → _autogen}/client/models/authorize_user_for_model_request_dto.py +0 -0
- /truefoundry/ml/{autogen → _autogen}/client/models/authorize_user_for_model_version_request_dto.py +0 -0
- /truefoundry/ml/{autogen → _autogen}/client/models/body_get_search_runs_get.py +0 -0
- /truefoundry/ml/{autogen → _autogen}/client/models/columns_dto.py +0 -0
- /truefoundry/ml/{autogen → _autogen}/client/models/command.py +0 -0
- /truefoundry/ml/{autogen → _autogen}/client/models/create_artifact_response_dto.py +0 -0
- /truefoundry/ml/{autogen → _autogen}/client/models/create_artifact_version_response_dto.py +0 -0
- /truefoundry/ml/{autogen → _autogen}/client/models/create_experiment_response_dto.py +0 -0
- /truefoundry/ml/{autogen → _autogen}/client/models/create_model_version_request_dto.py +0 -0
- /truefoundry/ml/{autogen → _autogen}/client/models/create_multi_part_upload_for_dataset_request_dto.py +0 -0
- /truefoundry/ml/{autogen → _autogen}/client/models/create_multi_part_upload_request_dto.py +0 -0
- /truefoundry/ml/{autogen → _autogen}/client/models/create_python_deployment_config_request_dto.py +0 -0
- /truefoundry/ml/{autogen → _autogen}/client/models/create_python_deployment_config_response_dto.py +0 -0
- /truefoundry/ml/{autogen → _autogen}/client/models/create_workflow_task_config_request_dto.py +0 -0
- /truefoundry/ml/{autogen → _autogen}/client/models/delete_artifact_versions_request_dto.py +0 -0
- /truefoundry/ml/{autogen → _autogen}/client/models/delete_dataset_request_dto.py +0 -0
- /truefoundry/ml/{autogen → _autogen}/client/models/delete_files_for_dataset_request_dto.py +0 -0
- /truefoundry/ml/{autogen → _autogen}/client/models/delete_model_version_request_dto.py +0 -0
- /truefoundry/ml/{autogen → _autogen}/client/models/delete_run_request.py +0 -0
- /truefoundry/ml/{autogen → _autogen}/client/models/delete_tag_request_dto.py +0 -0
- /truefoundry/ml/{autogen → _autogen}/client/models/experiment_id_request_dto.py +0 -0
- /truefoundry/ml/{autogen → _autogen}/client/models/experiment_tag_dto.py +0 -0
- /truefoundry/ml/{autogen → _autogen}/client/models/get_artifact_version_aliases_response_dto.py +0 -0
- /truefoundry/ml/{autogen → _autogen}/client/models/get_signed_url_for_dataset_write_request_dto.py +0 -0
- /truefoundry/ml/{autogen → _autogen}/client/models/get_signed_urls_for_artifact_version_read_request_dto.py +0 -0
- /truefoundry/ml/{autogen → _autogen}/client/models/get_signed_urls_for_artifact_version_write_request_dto.py +0 -0
- /truefoundry/ml/{autogen → _autogen}/client/models/get_signed_urls_for_dataset_read_request_dto.py +0 -0
- /truefoundry/ml/{autogen → _autogen}/client/models/get_tenant_id_response_dto.py +0 -0
- /truefoundry/ml/{autogen → _autogen}/client/models/list_datasets_request_dto.py +0 -0
- /truefoundry/ml/{autogen → _autogen}/client/models/list_files_for_artifact_version_request_dto.py +0 -0
- /truefoundry/ml/{autogen → _autogen}/client/models/list_files_for_dataset_request_dto.py +0 -0
- /truefoundry/ml/{autogen → _autogen}/client/models/list_metric_history_request_dto.py +0 -0
- /truefoundry/ml/{autogen → _autogen}/client/models/list_models_request_dto.py +0 -0
- /truefoundry/ml/{autogen → _autogen}/client/models/log_metric_request_dto.py +0 -0
- /truefoundry/ml/{autogen → _autogen}/client/models/log_param_request_dto.py +0 -0
- /truefoundry/ml/{autogen → _autogen}/client/models/metric_dto.py +0 -0
- /truefoundry/ml/{autogen → _autogen}/client/models/model_server.py +0 -0
- /truefoundry/ml/{autogen → _autogen}/client/models/multi_part_upload_storage_provider.py +0 -0
- /truefoundry/ml/{autogen → _autogen}/client/models/notify_artifact_version_failure_dto.py +0 -0
- /truefoundry/ml/{autogen → _autogen}/client/models/param_dto.py +0 -0
- /truefoundry/ml/{autogen → _autogen}/client/models/restore_run_request_dto.py +0 -0
- /truefoundry/ml/{autogen → _autogen}/client/models/run_log_dto.py +0 -0
- /truefoundry/ml/{autogen → _autogen}/client/models/run_log_input_dto.py +0 -0
- /truefoundry/ml/{autogen → _autogen}/client/models/run_tag_dto.py +0 -0
- /truefoundry/ml/{autogen → _autogen}/client/models/search_runs_request_dto.py +0 -0
- /truefoundry/ml/{autogen → _autogen}/client/models/set_experiment_tag_request_dto.py +0 -0
- /truefoundry/ml/{autogen → _autogen}/client/models/set_tag_request_dto.py +0 -0
- /truefoundry/ml/{autogen → _autogen}/client/models/stop.py +0 -0
- /truefoundry/ml/{autogen → _autogen}/client/models/subject_type.py +0 -0
- /truefoundry/ml/{autogen → _autogen}/client/models/trigger_job_run_config_response_dto.py +0 -0
- /truefoundry/ml/{autogen → _autogen}/client/models/update_experiment_request_dto.py +0 -0
- /truefoundry/ml/{autogen → _autogen}/client/models/update_run_request_dto.py +0 -0
- /truefoundry/ml/{autogen → _autogen}/client/models/validate_external_storage_root_request_dto.py +0 -0
- /truefoundry/ml/{autogen → _autogen}/client/models/validate_external_storage_root_response_dto.py +0 -0
- /truefoundry/ml/{autogen → _autogen}/client/models/validation_error_loc_inner.py +0 -0
- /truefoundry/ml/{autogen → _autogen}/models/__init__.py +0 -0
- /truefoundry/ml/{autogen → _autogen}/models/exceptions.py +0 -0
- /truefoundry/ml/{autogen → _autogen}/models/schema.py +0 -0
- /truefoundry/ml/{autogen → _autogen}/models/signature.py +0 -0
- /truefoundry/ml/{autogen → _autogen}/models/utils.py +0 -0
- {truefoundry-0.5.10rc2.dist-info → truefoundry-0.6.1.dist-info}/WHEEL +0 -0
- {truefoundry-0.5.10rc2.dist-info → truefoundry-0.6.1.dist-info}/entry_points.txt +0 -0
|
@@ -35,49 +35,40 @@ class AgentWithFQN(BaseModel):
|
|
|
35
35
|
"""
|
|
36
36
|
|
|
37
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
|
-
)
|
|
41
|
-
description: Optional[constr(strict=True, max_length=512)] = Field(
|
|
42
|
-
default=None, description="+sort=2 +label=Description"
|
|
38
|
+
default=None, description="Name of the entity"
|
|
43
39
|
)
|
|
40
|
+
description: Optional[constr(strict=True, max_length=512)] = None
|
|
44
41
|
metadata: Dict[str, Any] = Field(
|
|
45
42
|
default=...,
|
|
46
|
-
description='
|
|
43
|
+
description='Key value metadata. Should be valid JSON. For e.g. `{"business-unit": "sales", "quality": "good", "rating": 4.5}`',
|
|
47
44
|
)
|
|
48
45
|
version_alias: Optional[constr(strict=True, max_length=128)] = Field(
|
|
49
46
|
default=None,
|
|
50
|
-
description=
|
|
47
|
+
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)",
|
|
51
48
|
)
|
|
52
49
|
ml_repo: Optional[constr(strict=True)] = Field(
|
|
53
|
-
default=None,
|
|
54
|
-
description="+label=ML Repo +usage=Name of the ML Repo +uiType=Hidden",
|
|
50
|
+
default=None, description="Name of the ML Repo"
|
|
55
51
|
)
|
|
56
52
|
version: Optional[conint(strict=True, ge=1)] = Field(
|
|
57
|
-
default=None,
|
|
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"
|
|
53
|
+
default=None, description="Version of the entity"
|
|
62
54
|
)
|
|
55
|
+
type: StrictStr = Field(default=..., description="Type of the entity")
|
|
63
56
|
available_tools: conlist(constr(strict=True, min_length=1)) = Field(
|
|
64
|
-
default=...,
|
|
65
|
-
description='+sort=30 +uiType=Hidden +label=Tools +usage=Tools available to the agent +uiProps={"descriptionInline":true}',
|
|
57
|
+
default=..., description="Tools available to the agent"
|
|
66
58
|
)
|
|
67
59
|
goal: constr(strict=True, max_length=128, min_length=1) = Field(
|
|
68
60
|
default=...,
|
|
69
|
-
description=
|
|
61
|
+
description="Short form description. Will be used as `description` when this agent is used as a tool.",
|
|
70
62
|
)
|
|
71
63
|
instruction: constr(strict=True, max_length=2620, min_length=1) = Field(
|
|
72
64
|
default=...,
|
|
73
|
-
description=
|
|
65
|
+
description="Instructions for the agent to follow to achieve the goal",
|
|
74
66
|
)
|
|
75
67
|
model_id: constr(strict=True, min_length=1) = Field(
|
|
76
|
-
default=...,
|
|
77
|
-
description='+sort=40 +uiType=EnabledModelSelector +uiProps={"searchable":true,"modelType":"chat","providerType":"openai"} +label=Model +usage=Model to use when running the agent',
|
|
68
|
+
default=..., description="Model to use when running the agent"
|
|
78
69
|
)
|
|
79
|
-
id: StrictStr = Field(default=..., description="
|
|
80
|
-
fqn: StrictStr = Field(default=..., description="
|
|
70
|
+
id: StrictStr = Field(default=..., description="ID of the agent")
|
|
71
|
+
fqn: StrictStr = Field(default=..., description="FQN of the agent")
|
|
81
72
|
__properties = [
|
|
82
73
|
"name",
|
|
83
74
|
"description",
|
|
@@ -17,7 +17,7 @@ import json
|
|
|
17
17
|
import pprint
|
|
18
18
|
import re # noqa: F401
|
|
19
19
|
|
|
20
|
-
from truefoundry.ml.
|
|
20
|
+
from truefoundry.ml._autogen.client.models.manifest import Manifest
|
|
21
21
|
from truefoundry.pydantic_v1 import BaseModel, Field
|
|
22
22
|
|
|
23
23
|
|
|
@@ -17,7 +17,7 @@ import json
|
|
|
17
17
|
import pprint
|
|
18
18
|
import re # noqa: F401
|
|
19
19
|
|
|
20
|
-
from truefoundry.ml.
|
|
20
|
+
from truefoundry.ml._autogen.client.models.manifest import Manifest
|
|
21
21
|
from truefoundry.pydantic_v1 import BaseModel, Field, StrictStr
|
|
22
22
|
|
|
23
23
|
|
|
@@ -19,9 +19,11 @@ import re # noqa: F401
|
|
|
19
19
|
from datetime import datetime
|
|
20
20
|
from typing import Optional
|
|
21
21
|
|
|
22
|
-
from truefoundry.ml.
|
|
23
|
-
from truefoundry.ml.
|
|
24
|
-
|
|
22
|
+
from truefoundry.ml._autogen.client.models.artifact_type import ArtifactType
|
|
23
|
+
from truefoundry.ml._autogen.client.models.artifact_version_dto import (
|
|
24
|
+
ArtifactVersionDto,
|
|
25
|
+
)
|
|
26
|
+
from truefoundry.ml._autogen.client.models.subject import Subject
|
|
25
27
|
from truefoundry.pydantic_v1 import BaseModel, Field, StrictInt, StrictStr, conlist
|
|
26
28
|
|
|
27
29
|
|
|
@@ -18,7 +18,7 @@ import pprint
|
|
|
18
18
|
import re # noqa: F401
|
|
19
19
|
from typing import Any, Dict, Optional
|
|
20
20
|
|
|
21
|
-
from truefoundry.ml.
|
|
21
|
+
from truefoundry.ml._autogen.client.models.source import Source
|
|
22
22
|
from truefoundry.pydantic_v1 import (
|
|
23
23
|
BaseModel,
|
|
24
24
|
Field,
|
|
@@ -29,43 +29,38 @@ from truefoundry.pydantic_v1 import (
|
|
|
29
29
|
)
|
|
30
30
|
|
|
31
31
|
|
|
32
|
-
class
|
|
32
|
+
class ArtifactManifest(BaseModel):
|
|
33
33
|
"""
|
|
34
34
|
Artifact Version manifest. # noqa: E501
|
|
35
35
|
"""
|
|
36
36
|
|
|
37
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
|
-
)
|
|
41
|
-
description: Optional[constr(strict=True, max_length=512)] = Field(
|
|
42
|
-
default=None, description="+sort=2 +label=Description"
|
|
38
|
+
default=None, description="Name of the entity"
|
|
43
39
|
)
|
|
40
|
+
description: Optional[constr(strict=True, max_length=512)] = None
|
|
44
41
|
metadata: Dict[str, Any] = Field(
|
|
45
42
|
default=...,
|
|
46
|
-
description='
|
|
43
|
+
description='Key value metadata. Should be valid JSON. For e.g. `{"business-unit": "sales", "quality": "good", "rating": 4.5}`',
|
|
47
44
|
)
|
|
48
45
|
version_alias: Optional[constr(strict=True, max_length=128)] = Field(
|
|
49
46
|
default=None,
|
|
50
|
-
description=
|
|
47
|
+
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)",
|
|
51
48
|
)
|
|
52
49
|
ml_repo: Optional[constr(strict=True)] = Field(
|
|
53
|
-
default=None,
|
|
54
|
-
description="+label=ML Repo +usage=Name of the ML Repo +uiType=Hidden",
|
|
50
|
+
default=None, description="Name of the ML Repo"
|
|
55
51
|
)
|
|
56
52
|
version: Optional[conint(strict=True, ge=1)] = Field(
|
|
57
|
-
default=None,
|
|
58
|
-
description="+label=Version of the entity +usage=Version of the entity +uiType=Hidden",
|
|
53
|
+
default=None, description="Version of the entity"
|
|
59
54
|
)
|
|
60
55
|
type: Optional[StrictStr] = "artifact-version"
|
|
61
56
|
source: Source = Field(...)
|
|
62
57
|
step: Optional[conint(strict=True, ge=0)] = Field(
|
|
63
58
|
default=0,
|
|
64
|
-
description=
|
|
59
|
+
description="Step/Epoch number in an iterative training loop the artifact version was created. Generally useful when logging a model version from a MLRepo Run",
|
|
65
60
|
)
|
|
66
61
|
run_id: Optional[StrictStr] = Field(
|
|
67
62
|
default=None,
|
|
68
|
-
description="
|
|
63
|
+
description="ID of the MLRepo Run that generated the artifact version",
|
|
69
64
|
)
|
|
70
65
|
__properties = [
|
|
71
66
|
"name",
|
|
@@ -141,8 +136,8 @@ class ArtifactVersionManifest(BaseModel):
|
|
|
141
136
|
return json.dumps(self.to_dict())
|
|
142
137
|
|
|
143
138
|
@classmethod
|
|
144
|
-
def from_json(cls, json_str: str) ->
|
|
145
|
-
"""Create an instance of
|
|
139
|
+
def from_json(cls, json_str: str) -> ArtifactManifest:
|
|
140
|
+
"""Create an instance of ArtifactManifest from a JSON string"""
|
|
146
141
|
return cls.from_dict(json.loads(json_str))
|
|
147
142
|
|
|
148
143
|
def to_dict(self):
|
|
@@ -154,15 +149,15 @@ class ArtifactVersionManifest(BaseModel):
|
|
|
154
149
|
return _dict
|
|
155
150
|
|
|
156
151
|
@classmethod
|
|
157
|
-
def from_dict(cls, obj: dict) ->
|
|
158
|
-
"""Create an instance of
|
|
152
|
+
def from_dict(cls, obj: dict) -> ArtifactManifest:
|
|
153
|
+
"""Create an instance of ArtifactManifest from a dict"""
|
|
159
154
|
if obj is None:
|
|
160
155
|
return None
|
|
161
156
|
|
|
162
157
|
if not isinstance(obj, dict):
|
|
163
|
-
return
|
|
158
|
+
return ArtifactManifest.parse_obj(obj)
|
|
164
159
|
|
|
165
|
-
_obj =
|
|
160
|
+
_obj = ArtifactManifest.parse_obj(
|
|
166
161
|
{
|
|
167
162
|
"name": obj.get("name"),
|
|
168
163
|
"description": obj.get("description"),
|
|
@@ -26,12 +26,10 @@ class ArtifactPath(BaseModel):
|
|
|
26
26
|
ArtifactPath
|
|
27
27
|
"""
|
|
28
28
|
|
|
29
|
-
src: StrictStr = Field(
|
|
30
|
-
default=..., description="+label=Source path +usage=Local file or folder path"
|
|
31
|
-
)
|
|
29
|
+
src: StrictStr = Field(default=..., description="Local file or folder path")
|
|
32
30
|
dest: Optional[StrictStr] = Field(
|
|
33
31
|
default=None,
|
|
34
|
-
description="
|
|
32
|
+
description="Relative path where the file or folder will be uploaded to in the artifact",
|
|
35
33
|
)
|
|
36
34
|
__properties = ["src", "dest"]
|
|
37
35
|
|
|
@@ -17,7 +17,7 @@ import json
|
|
|
17
17
|
import pprint
|
|
18
18
|
import re # noqa: F401
|
|
19
19
|
|
|
20
|
-
from truefoundry.ml.
|
|
20
|
+
from truefoundry.ml._autogen.client.models.artifact_dto import ArtifactDto
|
|
21
21
|
from truefoundry.pydantic_v1 import BaseModel, Field
|
|
22
22
|
|
|
23
23
|
|
|
@@ -19,14 +19,14 @@ import re # noqa: F401
|
|
|
19
19
|
from datetime import datetime
|
|
20
20
|
from typing import Any, Dict, Optional
|
|
21
21
|
|
|
22
|
-
from truefoundry.ml.
|
|
22
|
+
from truefoundry.ml._autogen.client.models.artifact_version_serialization_format import (
|
|
23
23
|
ArtifactVersionSerializationFormat,
|
|
24
24
|
)
|
|
25
|
-
from truefoundry.ml.
|
|
25
|
+
from truefoundry.ml._autogen.client.models.artifact_version_status import (
|
|
26
26
|
ArtifactVersionStatus,
|
|
27
27
|
)
|
|
28
|
-
from truefoundry.ml.
|
|
29
|
-
from truefoundry.ml.
|
|
28
|
+
from truefoundry.ml._autogen.client.models.manifest1 import Manifest1
|
|
29
|
+
from truefoundry.ml._autogen.client.models.subject import Subject
|
|
30
30
|
from truefoundry.pydantic_v1 import BaseModel, Field, StrictInt, StrictStr
|
|
31
31
|
|
|
32
32
|
|
|
@@ -17,7 +17,9 @@ import json
|
|
|
17
17
|
import pprint
|
|
18
18
|
import re # noqa: F401
|
|
19
19
|
|
|
20
|
-
from truefoundry.ml.
|
|
20
|
+
from truefoundry.ml._autogen.client.models.artifact_version_dto import (
|
|
21
|
+
ArtifactVersionDto,
|
|
22
|
+
)
|
|
21
23
|
from truefoundry.pydantic_v1 import BaseModel, Field
|
|
22
24
|
|
|
23
25
|
|
|
@@ -18,23 +18,19 @@ import pprint
|
|
|
18
18
|
import re # noqa: F401
|
|
19
19
|
from typing import Optional
|
|
20
20
|
|
|
21
|
-
from truefoundry.ml.
|
|
21
|
+
from truefoundry.ml._autogen.client.models.content import Content
|
|
22
22
|
from truefoundry.pydantic_v1 import BaseModel, Field, StrictStr, validator
|
|
23
23
|
|
|
24
24
|
|
|
25
25
|
class AssistantMessage(BaseModel):
|
|
26
26
|
"""
|
|
27
|
-
|
|
27
|
+
Assistant message turn # noqa: E501
|
|
28
28
|
"""
|
|
29
29
|
|
|
30
|
-
role: StrictStr = Field(
|
|
31
|
-
default=...,
|
|
32
|
-
description="+value=assistant +label=Role +usage=Role of the message +uiType=Ignore",
|
|
33
|
-
)
|
|
30
|
+
role: StrictStr = Field(default=..., description="Role of the message")
|
|
34
31
|
content: Content = Field(...)
|
|
35
32
|
name: Optional[StrictStr] = Field(
|
|
36
|
-
default=None,
|
|
37
|
-
description="+label=Name +usage=Name of the assistant this message is from",
|
|
33
|
+
default=None, description="Name of the assistant this message is from"
|
|
38
34
|
)
|
|
39
35
|
__properties = ["role", "content", "name"]
|
|
40
36
|
|
|
@@ -17,23 +17,20 @@ import json
|
|
|
17
17
|
import pprint
|
|
18
18
|
import re # noqa: F401
|
|
19
19
|
|
|
20
|
-
from truefoundry.ml.
|
|
20
|
+
from truefoundry.ml._autogen.client.models.mime_type import MimeType
|
|
21
21
|
from truefoundry.pydantic_v1 import BaseModel, Field, StrictStr, constr, validator
|
|
22
22
|
|
|
23
23
|
|
|
24
24
|
class BlobStorageReference(BaseModel):
|
|
25
25
|
"""
|
|
26
|
-
|
|
26
|
+
A reference to content offloaded to blob storage # noqa: E501
|
|
27
27
|
"""
|
|
28
28
|
|
|
29
|
-
type: StrictStr = Field(
|
|
29
|
+
type: StrictStr = Field(...)
|
|
30
30
|
path: constr(strict=True) = Field(
|
|
31
|
-
default=...,
|
|
32
|
-
description="+label=Path +usage=Path to the content in blob storage",
|
|
33
|
-
)
|
|
34
|
-
mime_type: MimeType = Field(
|
|
35
|
-
default=..., description="+label=MIME Type +usage=MIME type of the content"
|
|
31
|
+
default=..., description="Path to the content in blob storage"
|
|
36
32
|
)
|
|
33
|
+
mime_type: MimeType = Field(default=..., description="MIME type of the content")
|
|
37
34
|
__properties = ["type", "path", "mime_type"]
|
|
38
35
|
|
|
39
36
|
@validator("type")
|
|
@@ -18,10 +18,10 @@ import pprint
|
|
|
18
18
|
import re # noqa: F401
|
|
19
19
|
from typing import Any, Dict, Optional
|
|
20
20
|
|
|
21
|
-
from truefoundry.ml.
|
|
21
|
+
from truefoundry.ml._autogen.client.models.chat_prompt_manifest_messages_inner import (
|
|
22
22
|
ChatPromptManifestMessagesInner,
|
|
23
23
|
)
|
|
24
|
-
from truefoundry.ml.
|
|
24
|
+
from truefoundry.ml._autogen.client.models.model_configuration import ModelConfiguration
|
|
25
25
|
from truefoundry.pydantic_v1 import (
|
|
26
26
|
BaseModel,
|
|
27
27
|
Field,
|
|
@@ -39,36 +39,31 @@ class ChatPromptManifest(BaseModel):
|
|
|
39
39
|
"""
|
|
40
40
|
|
|
41
41
|
name: Optional[constr(strict=True, max_length=256)] = Field(
|
|
42
|
-
default=None,
|
|
43
|
-
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",
|
|
44
|
-
)
|
|
45
|
-
description: Optional[constr(strict=True, max_length=512)] = Field(
|
|
46
|
-
default=None, description="+sort=2 +label=Description"
|
|
42
|
+
default=None, description="Name of the entity"
|
|
47
43
|
)
|
|
44
|
+
description: Optional[constr(strict=True, max_length=512)] = None
|
|
48
45
|
metadata: Dict[str, Any] = Field(
|
|
49
46
|
default=...,
|
|
50
|
-
description='
|
|
47
|
+
description='Key value metadata. Should be valid JSON. For e.g. `{"business-unit": "sales", "quality": "good", "rating": 4.5}`',
|
|
51
48
|
)
|
|
52
49
|
version_alias: Optional[constr(strict=True, max_length=128)] = Field(
|
|
53
50
|
default=None,
|
|
54
|
-
description=
|
|
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)",
|
|
55
52
|
)
|
|
56
53
|
ml_repo: Optional[constr(strict=True)] = Field(
|
|
57
|
-
default=None,
|
|
58
|
-
description="+label=ML Repo +usage=Name of the ML Repo +uiType=Hidden",
|
|
54
|
+
default=None, description="Name of the ML Repo"
|
|
59
55
|
)
|
|
60
56
|
version: Optional[conint(strict=True, ge=1)] = Field(
|
|
61
|
-
default=None,
|
|
62
|
-
description="+label=Version of the entity +usage=Version of the entity +uiType=Hidden",
|
|
57
|
+
default=None, description="Version of the entity"
|
|
63
58
|
)
|
|
64
59
|
type: Optional[StrictStr] = "chat_prompt"
|
|
65
60
|
messages: conlist(ChatPromptManifestMessagesInner) = Field(
|
|
66
61
|
default=...,
|
|
67
|
-
description="
|
|
62
|
+
description="List of messages in the chat conversation, must be non-empty",
|
|
68
63
|
)
|
|
69
64
|
variables: Optional[Dict[str, StrictStr]] = Field(
|
|
70
65
|
default=None,
|
|
71
|
-
description="
|
|
66
|
+
description="Variables referenced in messages and that can be replaced when running generation",
|
|
72
67
|
)
|
|
73
68
|
model_configuration: ModelConfiguration = Field(...)
|
|
74
69
|
__properties = [
|
|
@@ -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.
|
|
22
|
-
from truefoundry.ml.
|
|
23
|
-
from truefoundry.ml.
|
|
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,
|
|
@@ -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.
|
|
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
|
-
|
|
37
|
+
Text content for the assistant message
|
|
38
38
|
"""
|
|
39
39
|
|
|
40
40
|
# data type: str
|
|
@@ -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.
|
|
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
|
-
|
|
37
|
+
Text content for the system message
|
|
38
38
|
"""
|
|
39
39
|
|
|
40
40
|
# data type: str
|
|
@@ -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.
|
|
21
|
+
from truefoundry.ml._autogen.client.models.blob_storage_reference import (
|
|
22
22
|
BlobStorageReference,
|
|
23
23
|
)
|
|
24
|
-
from truefoundry.ml.
|
|
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
|
-
|
|
41
|
+
Content of the user message. can be a mix of text and images
|
|
42
42
|
"""
|
|
43
43
|
|
|
44
44
|
# data type: str
|
|
@@ -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.
|
|
22
|
-
from truefoundry.ml.
|
|
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,
|
|
@@ -17,7 +17,7 @@ import json
|
|
|
17
17
|
import pprint
|
|
18
18
|
import re # noqa: F401
|
|
19
19
|
|
|
20
|
-
from truefoundry.ml.
|
|
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
|
|
|
@@ -17,7 +17,7 @@ import json
|
|
|
17
17
|
import pprint
|
|
18
18
|
import re # noqa: F401
|
|
19
19
|
|
|
20
|
-
from truefoundry.ml.
|
|
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
|
|
|
@@ -18,7 +18,7 @@ import pprint
|
|
|
18
18
|
import re # noqa: F401
|
|
19
19
|
from typing import Any, Dict, Optional
|
|
20
20
|
|
|
21
|
-
from truefoundry.ml.
|
|
21
|
+
from truefoundry.ml._autogen.client.models.data_directory_manifest import (
|
|
22
22
|
DataDirectoryManifest,
|
|
23
23
|
)
|
|
24
24
|
from truefoundry.pydantic_v1 import BaseModel, StrictStr
|
|
@@ -18,7 +18,7 @@ import pprint
|
|
|
18
18
|
import re # noqa: F401
|
|
19
19
|
from typing import Optional
|
|
20
20
|
|
|
21
|
-
from truefoundry.ml.
|
|
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
|
|
|
@@ -17,7 +17,7 @@ import json
|
|
|
17
17
|
import pprint
|
|
18
18
|
import re # noqa: F401
|
|
19
19
|
|
|
20
|
-
from truefoundry.ml.
|
|
20
|
+
from truefoundry.ml._autogen.client.models.multi_part_upload_dto import (
|
|
21
21
|
MultiPartUploadDto,
|
|
22
22
|
)
|
|
23
23
|
from truefoundry.pydantic_v1 import BaseModel, Field
|
|
@@ -18,7 +18,7 @@ import pprint
|
|
|
18
18
|
import re # noqa: F401
|
|
19
19
|
from typing import Optional
|
|
20
20
|
|
|
21
|
-
from truefoundry.ml.
|
|
21
|
+
from truefoundry.ml._autogen.client.models.run_tag_dto import RunTagDto
|
|
22
22
|
from truefoundry.pydantic_v1 import BaseModel, Field, StrictInt, StrictStr, conlist
|
|
23
23
|
|
|
24
24
|
|
|
@@ -18,7 +18,7 @@ import pprint
|
|
|
18
18
|
import re # noqa: F401
|
|
19
19
|
from typing import Any, Dict, Optional
|
|
20
20
|
|
|
21
|
-
from truefoundry.ml.
|
|
21
|
+
from truefoundry.ml._autogen.client.models.source1 import Source1
|
|
22
22
|
from truefoundry.pydantic_v1 import BaseModel, Field, StrictStr, constr, validator
|
|
23
23
|
|
|
24
24
|
|
|
@@ -29,20 +29,18 @@ class DataDirectoryManifest(BaseModel):
|
|
|
29
29
|
|
|
30
30
|
type: Optional[StrictStr] = "data-dir"
|
|
31
31
|
name: constr(strict=True, max_length=256) = Field(
|
|
32
|
-
default=...,
|
|
33
|
-
description="+sort=1 +label=Name +usage=Name of the data directory +message=The data directory name should start with lowercase alphabets and can contain alphanumeric and can include '-' in between",
|
|
32
|
+
default=..., description="Name of the data directory"
|
|
34
33
|
)
|
|
35
34
|
ml_repo: constr(strict=True) = Field(
|
|
36
35
|
default=...,
|
|
37
|
-
description="
|
|
36
|
+
description="Name of the ML Repo to create the data directory under",
|
|
38
37
|
)
|
|
39
38
|
description: Optional[constr(strict=True, max_length=512)] = Field(
|
|
40
|
-
default=None,
|
|
41
|
-
description="+sort=2 +label=Description +usage=Description for the data directory",
|
|
39
|
+
default=None, description="Description for the data directory"
|
|
42
40
|
)
|
|
43
41
|
metadata: Dict[str, Any] = Field(
|
|
44
42
|
default=...,
|
|
45
|
-
description='
|
|
43
|
+
description='Key Value metadata. Should be valid JSON. For e.g. `{"business-unit": "sales", "quality": "good", "rating": 4.5}`',
|
|
46
44
|
)
|
|
47
45
|
source: Source1 = Field(...)
|
|
48
46
|
__properties = ["type", "name", "ml_repo", "description", "metadata", "source"]
|
|
@@ -19,11 +19,11 @@ import re # noqa: F401
|
|
|
19
19
|
from datetime import datetime
|
|
20
20
|
from typing import Any, Dict, Optional
|
|
21
21
|
|
|
22
|
-
from truefoundry.ml.
|
|
22
|
+
from truefoundry.ml._autogen.client.models.data_directory_manifest import (
|
|
23
23
|
DataDirectoryManifest,
|
|
24
24
|
)
|
|
25
|
-
from truefoundry.ml.
|
|
26
|
-
from truefoundry.ml.
|
|
25
|
+
from truefoundry.ml._autogen.client.models.experiment_dto import ExperimentDto
|
|
26
|
+
from truefoundry.ml._autogen.client.models.subject import Subject
|
|
27
27
|
from truefoundry.pydantic_v1 import BaseModel, Field, StrictStr
|
|
28
28
|
|
|
29
29
|
|
|
@@ -17,7 +17,7 @@ import json
|
|
|
17
17
|
import pprint
|
|
18
18
|
import re # noqa: F401
|
|
19
19
|
|
|
20
|
-
from truefoundry.ml.
|
|
20
|
+
from truefoundry.ml._autogen.client.models.dataset_dto import DatasetDto
|
|
21
21
|
from truefoundry.pydantic_v1 import BaseModel, Field
|
|
22
22
|
|
|
23
23
|
|
|
@@ -18,8 +18,8 @@ import pprint
|
|
|
18
18
|
import re # noqa: F401
|
|
19
19
|
from typing import Any, Dict, Optional
|
|
20
20
|
|
|
21
|
-
from truefoundry.ml.
|
|
22
|
-
from truefoundry.ml.
|
|
21
|
+
from truefoundry.ml._autogen.client.models.experiment_tag_dto import ExperimentTagDto
|
|
22
|
+
from truefoundry.ml._autogen.client.models.subject import Subject
|
|
23
23
|
from truefoundry.pydantic_v1 import BaseModel, Field, StrictInt, StrictStr, conlist
|
|
24
24
|
|
|
25
25
|
|
|
@@ -17,7 +17,7 @@ import json
|
|
|
17
17
|
import pprint
|
|
18
18
|
import re # noqa: F401
|
|
19
19
|
|
|
20
|
-
from truefoundry.ml.
|
|
20
|
+
from truefoundry.ml._autogen.client.models.experiment_dto import ExperimentDto
|
|
21
21
|
from truefoundry.pydantic_v1 import BaseModel, Field
|
|
22
22
|
|
|
23
23
|
|
|
@@ -18,7 +18,7 @@ import pprint
|
|
|
18
18
|
import re # noqa: F401
|
|
19
19
|
from typing import Optional
|
|
20
20
|
|
|
21
|
-
from truefoundry.ml.
|
|
21
|
+
from truefoundry.ml._autogen.client.models.model_server import ModelServer
|
|
22
22
|
from truefoundry.pydantic_v1 import BaseModel, Field, StrictStr
|
|
23
23
|
|
|
24
24
|
|