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.
- truefoundry/__init__.py +19 -0
- truefoundry/_client.py +36 -0
- truefoundry/cli/display_util.py +1 -1
- 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/io/output_callback.py +13 -6
- truefoundry/deploy/io/rich_output_callback.py +8 -4
- truefoundry/deploy/lib/clients/servicefoundry_client.py +117 -138
- truefoundry/deploy/lib/dao/apply.py +2 -2
- truefoundry/deploy/lib/dao/delete.py +2 -2
- truefoundry/deploy/lib/model/entity.py +37 -24
- 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 +6 -6
- truefoundry/ml/{autogen → _autogen}/client/api/deprecated_api.py +12 -345
- truefoundry/ml/{autogen → _autogen}/client/api/experiments_api.py +89 -44
- truefoundry/ml/{autogen → _autogen}/client/api/generate_code_snippet_api.py +10 -10
- truefoundry/ml/{autogen → _autogen}/client/api/health_api.py +5 -5
- truefoundry/ml/{autogen → _autogen}/client/api/metrics_api.py +10 -10
- truefoundry/ml/{autogen → _autogen}/client/api/mlfoundry_artifacts_api.py +589 -197
- truefoundry/ml/{autogen → _autogen}/client/api/run_artifacts_api.py +14 -9
- truefoundry/ml/{autogen → _autogen}/client/api/runs_api.py +41 -41
- truefoundry/ml/{autogen → _autogen}/client/api_client.py +8 -8
- truefoundry/ml/{autogen → _autogen}/client/configuration.py +30 -58
- truefoundry/ml/{autogen → _autogen}/client/exceptions.py +2 -2
- truefoundry/ml/_autogen/client/models/__init__.py +428 -0
- truefoundry/ml/{autogen → _autogen}/client/models/agent_app.py +14 -7
- truefoundry/ml/{autogen/client/models/agent.py → _autogen/client/models/agent_manifest.py} +37 -35
- truefoundry/ml/{autogen/client/models/agent_open_api_tool.py → _autogen/client/models/agent_open_api_tool_manifest.py} +50 -37
- truefoundry/ml/{autogen → _autogen}/client/models/agent_open_api_tool_with_fqn.py +45 -32
- truefoundry/ml/{autogen → _autogen}/client/models/agent_with_fqn.py +32 -30
- truefoundry/ml/_autogen/client/models/apply_request_dto.py +75 -0
- truefoundry/ml/_autogen/client/models/apply_response_dto.py +79 -0
- truefoundry/ml/{autogen → _autogen}/client/models/artifact_dto.py +7 -5
- truefoundry/ml/{autogen/client/models/artifact_version_manifest.py → _autogen/client/models/artifact_manifest.py} +39 -31
- truefoundry/ml/_autogen/client/models/artifact_path.py +70 -0
- truefoundry/ml/{autogen → _autogen}/client/models/artifact_response_dto.py +3 -3
- truefoundry/ml/{autogen → _autogen}/client/models/artifact_type.py +3 -3
- truefoundry/ml/{autogen → _autogen}/client/models/artifact_version_dto.py +10 -18
- truefoundry/ml/{autogen → _autogen}/client/models/artifact_version_response_dto.py +5 -3
- truefoundry/ml/{autogen → _autogen}/client/models/artifact_version_serialization_format.py +2 -2
- truefoundry/ml/{autogen → _autogen}/client/models/artifact_version_status.py +2 -2
- truefoundry/ml/{autogen → _autogen}/client/models/assistant_message.py +6 -6
- truefoundry/ml/{autogen → _autogen}/client/models/authorize_user_for_model_request_dto.py +2 -2
- truefoundry/ml/{autogen → _autogen}/client/models/authorize_user_for_model_version_request_dto.py +2 -2
- truefoundry/ml/{autogen → _autogen}/client/models/blob_storage_reference.py +6 -9
- truefoundry/ml/{autogen → _autogen}/client/models/body_get_search_runs_get.py +2 -2
- truefoundry/ml/{autogen/client/models/chat_prompt.py → _autogen/client/models/chat_prompt_manifest.py} +39 -37
- truefoundry/ml/{autogen/client/models/chat_prompt_messages_inner.py → _autogen/client/models/chat_prompt_manifest_messages_inner.py} +15 -15
- truefoundry/ml/{autogen → _autogen}/client/models/columns_dto.py +2 -2
- truefoundry/ml/{autogen → _autogen}/client/models/command.py +2 -2
- truefoundry/ml/{autogen → _autogen}/client/models/content.py +4 -4
- truefoundry/ml/{autogen → _autogen}/client/models/content1.py +4 -4
- truefoundry/ml/{autogen → _autogen}/client/models/content2.py +5 -5
- truefoundry/ml/{autogen → _autogen}/client/models/content2_any_of_inner.py +4 -4
- truefoundry/ml/{autogen → _autogen}/client/models/create_artifact_request_dto.py +3 -3
- truefoundry/ml/{autogen → _autogen}/client/models/create_artifact_response_dto.py +2 -2
- truefoundry/ml/{autogen → _autogen}/client/models/create_artifact_version_request_dto.py +3 -3
- truefoundry/ml/{autogen → _autogen}/client/models/create_artifact_version_response_dto.py +2 -2
- truefoundry/ml/{autogen → _autogen}/client/models/create_dataset_request_dto.py +21 -5
- truefoundry/ml/{autogen → _autogen}/client/models/create_experiment_request_dto.py +3 -3
- truefoundry/ml/{autogen → _autogen}/client/models/create_experiment_response_dto.py +2 -2
- truefoundry/ml/{autogen → _autogen}/client/models/create_model_version_request_dto.py +4 -12
- truefoundry/ml/{autogen → _autogen}/client/models/create_multi_part_upload_for_dataset_request_dto.py +2 -2
- truefoundry/ml/{autogen → _autogen}/client/models/create_multi_part_upload_for_dataset_response_dto.py +3 -3
- truefoundry/ml/{autogen → _autogen}/client/models/create_multi_part_upload_request_dto.py +2 -2
- truefoundry/ml/{autogen → _autogen}/client/models/create_python_deployment_config_request_dto.py +2 -2
- truefoundry/ml/{autogen → _autogen}/client/models/create_python_deployment_config_response_dto.py +2 -2
- truefoundry/ml/{autogen → _autogen}/client/models/create_run_request_dto.py +3 -3
- truefoundry/ml/{autogen → _autogen}/client/models/create_run_response_dto.py +3 -3
- truefoundry/ml/{autogen → _autogen}/client/models/create_workflow_task_config_request_dto.py +2 -2
- truefoundry/ml/_autogen/client/models/data_directory_manifest.py +124 -0
- truefoundry/ml/{autogen → _autogen}/client/models/dataset_dto.py +15 -4
- truefoundry/ml/{autogen → _autogen}/client/models/dataset_response_dto.py +3 -3
- truefoundry/ml/{autogen → _autogen}/client/models/delete_artifact_versions_request_dto.py +2 -2
- truefoundry/ml/{autogen → _autogen}/client/models/delete_dataset_request_dto.py +2 -2
- truefoundry/ml/{autogen → _autogen}/client/models/delete_files_for_dataset_request_dto.py +2 -2
- truefoundry/ml/{autogen → _autogen}/client/models/delete_model_version_request_dto.py +2 -2
- truefoundry/ml/{autogen → _autogen}/client/models/delete_run_request.py +2 -2
- truefoundry/ml/{autogen → _autogen}/client/models/delete_tag_request_dto.py +2 -2
- truefoundry/ml/{autogen → _autogen}/client/models/experiment_dto.py +5 -5
- truefoundry/ml/{autogen → _autogen}/client/models/experiment_id_request_dto.py +2 -2
- truefoundry/ml/{autogen → _autogen}/client/models/experiment_response_dto.py +3 -3
- truefoundry/ml/{autogen → _autogen}/client/models/experiment_tag_dto.py +2 -2
- truefoundry/ml/{autogen → _autogen}/client/models/export_deployment_files_request_dto.py +3 -3
- truefoundry/ml/{autogen → _autogen}/client/models/external_blob_storage_source.py +17 -9
- truefoundry/ml/{autogen → _autogen}/client/models/fast_ai_framework.py +4 -7
- truefoundry/ml/{autogen → _autogen}/client/models/file_info_dto.py +6 -3
- truefoundry/ml/{autogen → _autogen}/client/models/finalize_artifact_version_request_dto.py +7 -15
- truefoundry/ml/{autogen → _autogen}/client/models/framework.py +17 -17
- truefoundry/ml/{autogen → _autogen}/client/models/get_artifact_version_aliases_response_dto.py +2 -2
- truefoundry/ml/{autogen → _autogen}/client/models/get_experiment_response_dto.py +4 -4
- truefoundry/ml/{autogen → _autogen}/client/models/get_latest_run_log_response_dto.py +3 -3
- truefoundry/ml/{autogen → _autogen}/client/models/get_metric_history_response.py +3 -3
- truefoundry/ml/{autogen → _autogen}/client/models/get_signed_url_for_dataset_write_request_dto.py +2 -2
- truefoundry/ml/{autogen → _autogen}/client/models/get_signed_urls_for_artifact_version_read_request_dto.py +2 -2
- truefoundry/ml/{autogen → _autogen}/client/models/get_signed_urls_for_artifact_version_read_response_dto.py +3 -3
- truefoundry/ml/{autogen → _autogen}/client/models/get_signed_urls_for_artifact_version_write_request_dto.py +2 -2
- truefoundry/ml/{autogen → _autogen}/client/models/get_signed_urls_for_artifact_version_write_response_dto.py +3 -3
- truefoundry/ml/{autogen → _autogen}/client/models/get_signed_urls_for_dataset_read_request_dto.py +2 -2
- truefoundry/ml/{autogen → _autogen}/client/models/get_signed_urls_for_dataset_read_response_dto.py +3 -3
- truefoundry/ml/{autogen → _autogen}/client/models/get_signed_urls_for_dataset_write_response_dto.py +3 -3
- truefoundry/ml/{autogen → _autogen}/client/models/get_tenant_id_response_dto.py +2 -2
- truefoundry/ml/{autogen → _autogen}/client/models/gluon_framework.py +4 -6
- truefoundry/ml/{autogen → _autogen}/client/models/h2_o_framework.py +4 -6
- truefoundry/ml/{autogen → _autogen}/client/models/http_validation_error.py +3 -3
- truefoundry/ml/{autogen → _autogen}/client/models/image_content_part.py +6 -7
- truefoundry/ml/{autogen → _autogen}/client/models/image_url.py +4 -4
- truefoundry/ml/{autogen → _autogen}/client/models/infer_method_name.py +3 -3
- truefoundry/ml/{autogen → _autogen}/client/models/keras_framework.py +4 -6
- truefoundry/ml/{autogen → _autogen}/client/models/latest_run_log_dto.py +3 -3
- truefoundry/ml/{autogen → _autogen}/client/models/library_name.py +3 -3
- truefoundry/ml/{autogen → _autogen}/client/models/light_gbm_framework.py +4 -7
- truefoundry/ml/{autogen → _autogen}/client/models/list_artifact_versions_request_dto.py +4 -4
- truefoundry/ml/{autogen → _autogen}/client/models/list_artifact_versions_response_dto.py +5 -3
- truefoundry/ml/{autogen → _autogen}/client/models/list_artifacts_request_dto.py +3 -3
- truefoundry/ml/{autogen → _autogen}/client/models/list_artifacts_response_dto.py +3 -3
- truefoundry/ml/{autogen → _autogen}/client/models/list_colums_response_dto.py +3 -3
- truefoundry/ml/{autogen → _autogen}/client/models/list_datasets_request_dto.py +2 -2
- truefoundry/ml/{autogen → _autogen}/client/models/list_datasets_response_dto.py +3 -3
- truefoundry/ml/{autogen → _autogen}/client/models/list_experiments_response_dto.py +3 -3
- truefoundry/ml/{autogen → _autogen}/client/models/list_files_for_artifact_version_request_dto.py +2 -2
- truefoundry/ml/{autogen → _autogen}/client/models/list_files_for_artifact_versions_response_dto.py +3 -3
- truefoundry/ml/{autogen → _autogen}/client/models/list_files_for_dataset_request_dto.py +2 -2
- truefoundry/ml/{autogen → _autogen}/client/models/list_files_for_dataset_response_dto.py +3 -3
- truefoundry/ml/{autogen → _autogen}/client/models/list_latest_run_logs_response_dto.py +3 -3
- truefoundry/ml/{autogen → _autogen}/client/models/list_metric_history_request_dto.py +2 -2
- truefoundry/ml/{autogen → _autogen}/client/models/list_metric_history_response_dto.py +3 -3
- truefoundry/ml/{autogen → _autogen}/client/models/list_model_version_response_dto.py +3 -3
- truefoundry/ml/{autogen → _autogen}/client/models/list_model_versions_request_dto.py +3 -3
- truefoundry/ml/{autogen → _autogen}/client/models/list_models_request_dto.py +2 -2
- truefoundry/ml/{autogen → _autogen}/client/models/list_models_response_dto.py +3 -3
- truefoundry/ml/{autogen → _autogen}/client/models/list_run_artifacts_response_dto.py +3 -3
- truefoundry/ml/{autogen → _autogen}/client/models/list_run_logs_response_dto.py +3 -3
- truefoundry/ml/_autogen/client/models/local_artifact_source.py +91 -0
- truefoundry/ml/_autogen/client/models/local_model_source.py +77 -0
- truefoundry/ml/{autogen → _autogen}/client/models/log_batch_request_dto.py +5 -5
- truefoundry/ml/{autogen → _autogen}/client/models/log_metric_request_dto.py +2 -2
- truefoundry/ml/{autogen → _autogen}/client/models/log_param_request_dto.py +2 -2
- truefoundry/ml/_autogen/client/models/manifest.py +229 -0
- truefoundry/ml/_autogen/client/models/manifest1.py +217 -0
- truefoundry/ml/{autogen/client/models/internal_metadata.py → _autogen/client/models/manifest2.py} +68 -50
- truefoundry/ml/{autogen → _autogen}/client/models/method.py +3 -3
- truefoundry/ml/{autogen → _autogen}/client/models/metric_collection_dto.py +3 -3
- truefoundry/ml/{autogen → _autogen}/client/models/metric_dto.py +2 -2
- truefoundry/ml/{autogen → _autogen}/client/models/mime_type.py +3 -3
- truefoundry/ml/{autogen → _autogen}/client/models/model_configuration.py +8 -9
- truefoundry/ml/{autogen → _autogen}/client/models/model_dto.py +6 -6
- truefoundry/ml/{autogen/client/models/model_version_manifest.py → _autogen/client/models/model_manifest.py} +43 -35
- truefoundry/ml/{autogen → _autogen}/client/models/model_response_dto.py +3 -3
- truefoundry/ml/{autogen → _autogen}/client/models/model_server.py +2 -2
- truefoundry/ml/{autogen → _autogen}/client/models/model_version_dto.py +9 -11
- truefoundry/ml/{autogen → _autogen}/client/models/model_version_environment.py +5 -7
- truefoundry/ml/{autogen → _autogen}/client/models/model_version_response_dto.py +3 -3
- truefoundry/ml/{autogen → _autogen}/client/models/multi_part_upload_dto.py +4 -4
- truefoundry/ml/{autogen → _autogen}/client/models/multi_part_upload_response_dto.py +3 -3
- truefoundry/ml/{autogen → _autogen}/client/models/multi_part_upload_storage_provider.py +2 -2
- truefoundry/ml/{autogen → _autogen}/client/models/notify_artifact_version_failure_dto.py +2 -2
- truefoundry/ml/{autogen → _autogen}/client/models/onnx_framework.py +4 -6
- truefoundry/ml/{autogen → _autogen}/client/models/openapi_spec.py +4 -4
- truefoundry/ml/{autogen → _autogen}/client/models/paddle_framework.py +4 -7
- truefoundry/ml/{autogen → _autogen}/client/models/param_dto.py +2 -2
- truefoundry/ml/{autogen → _autogen}/client/models/parameters.py +4 -4
- truefoundry/ml/{autogen → _autogen}/client/models/py_torch_framework.py +4 -7
- truefoundry/ml/{autogen → _autogen}/client/models/resolve_agent_app_response_dto.py +3 -3
- truefoundry/ml/{autogen → _autogen}/client/models/restore_run_request_dto.py +2 -2
- truefoundry/ml/{autogen → _autogen}/client/models/run_data_dto.py +5 -5
- truefoundry/ml/{autogen → _autogen}/client/models/run_dto.py +4 -4
- truefoundry/ml/{autogen → _autogen}/client/models/run_info_dto.py +3 -3
- truefoundry/ml/{autogen → _autogen}/client/models/run_log_dto.py +2 -2
- truefoundry/ml/{autogen → _autogen}/client/models/run_log_input_dto.py +2 -2
- truefoundry/ml/{autogen → _autogen}/client/models/run_response_dto.py +3 -3
- truefoundry/ml/{autogen → _autogen}/client/models/run_tag_dto.py +2 -2
- truefoundry/ml/{autogen → _autogen}/client/models/search_runs_request_dto.py +2 -2
- truefoundry/ml/{autogen → _autogen}/client/models/search_runs_response_dto.py +3 -3
- truefoundry/ml/{autogen → _autogen}/client/models/set_experiment_tag_request_dto.py +2 -2
- truefoundry/ml/{autogen → _autogen}/client/models/set_tag_request_dto.py +2 -2
- truefoundry/ml/{autogen → _autogen}/client/models/signed_url_dto.py +3 -4
- truefoundry/ml/{autogen → _autogen}/client/models/sklearn_framework.py +9 -10
- truefoundry/ml/{autogen → _autogen}/client/models/sklearn_model_schema.py +7 -8
- truefoundry/ml/{autogen → _autogen}/client/models/sklearn_serialization_format.py +3 -3
- truefoundry/ml/{autogen → _autogen}/client/models/source.py +34 -9
- truefoundry/ml/{autogen → _autogen}/client/models/source1.py +5 -5
- truefoundry/ml/_autogen/client/models/source2.py +177 -0
- truefoundry/ml/{autogen → _autogen}/client/models/spa_cy_framework.py +4 -6
- truefoundry/ml/{autogen → _autogen}/client/models/stats_models_framework.py +4 -7
- truefoundry/ml/{autogen → _autogen}/client/models/stop.py +2 -2
- truefoundry/ml/{autogen → _autogen}/client/models/store_run_logs_request_dto.py +3 -3
- truefoundry/ml/{autogen → _autogen}/client/models/subject.py +3 -3
- truefoundry/ml/{autogen → _autogen}/client/models/subject_type.py +2 -2
- truefoundry/ml/{autogen → _autogen}/client/models/system_message.py +6 -8
- truefoundry/ml/{autogen → _autogen}/client/models/tensor_flow_framework.py +4 -7
- truefoundry/ml/{autogen → _autogen}/client/models/text.py +4 -4
- truefoundry/ml/{autogen → _autogen}/client/models/text_content_part.py +5 -5
- truefoundry/ml/{autogen → _autogen}/client/models/transformers_framework.py +8 -12
- truefoundry/ml/{autogen → _autogen}/client/models/trigger_job_run_config_request_dto.py +3 -3
- truefoundry/ml/{autogen → _autogen}/client/models/trigger_job_run_config_response_dto.py +2 -2
- truefoundry/ml/{autogen → _autogen}/client/models/true_foundry_managed_source.py +18 -12
- truefoundry/ml/{autogen → _autogen}/client/models/update_artifact_version_request_dto.py +5 -7
- truefoundry/ml/{autogen → _autogen}/client/models/update_dataset_request_dto.py +13 -3
- truefoundry/ml/{autogen → _autogen}/client/models/update_experiment_request_dto.py +2 -2
- truefoundry/ml/{autogen → _autogen}/client/models/update_model_version_request_dto.py +5 -7
- truefoundry/ml/{autogen → _autogen}/client/models/update_run_request_dto.py +2 -2
- truefoundry/ml/{autogen → _autogen}/client/models/update_run_response_dto.py +3 -3
- truefoundry/ml/{autogen → _autogen}/client/models/url.py +4 -4
- truefoundry/ml/{autogen → _autogen}/client/models/user_message.py +6 -6
- truefoundry/ml/{autogen → _autogen}/client/models/validate_external_storage_root_request_dto.py +2 -2
- truefoundry/ml/{autogen → _autogen}/client/models/validate_external_storage_root_response_dto.py +2 -2
- truefoundry/ml/{autogen → _autogen}/client/models/validation_error.py +3 -3
- truefoundry/ml/{autogen → _autogen}/client/models/validation_error_loc_inner.py +2 -2
- truefoundry/ml/{autogen → _autogen}/client/models/xg_boost_framework.py +7 -10
- truefoundry/ml/{autogen → _autogen}/client/models/xg_boost_model_schema.py +6 -7
- truefoundry/ml/{autogen → _autogen}/client/models/xg_boost_serialization_format.py +3 -3
- truefoundry/ml/{autogen → _autogen}/client/rest.py +3 -3
- 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 +7 -2
- truefoundry/ml/entities.py +1 -1
- truefoundry/ml/log_types/artifacts/artifact.py +22 -85
- 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 +12 -13
- truefoundry/ml/log_types/artifacts/utils.py +18 -2
- truefoundry/ml/log_types/image/image.py +1 -1
- truefoundry/ml/log_types/plot.py +1 -1
- truefoundry/ml/mlfoundry_api.py +2 -42
- 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.10rc1.dist-info → truefoundry-0.5.11rc1.dist-info}/METADATA +2 -1
- truefoundry-0.5.11rc1.dist-info/RECORD +377 -0
- truefoundry/deploy/auto_gen/models.py +0 -1915
- truefoundry/ml/autogen/client/__init__.py +0 -445
- truefoundry/ml/autogen/client/api/__init__.py +0 -16
- truefoundry/ml/autogen/client/models/__init__.py +0 -416
- truefoundry/ml/autogen/client/models/add_custom_metrics_to_model_version_request_dto.py +0 -69
- truefoundry/ml/autogen/client/models/add_features_to_model_version_request_dto.py +0 -69
- truefoundry/ml/autogen/client/models/manifest.py +0 -154
- truefoundry/ml/autogen/client_README.md +0 -361
- truefoundry/ml/autogen/entities/artifacts.py +0 -670
- truefoundry-0.5.10rc1.dist-info/RECORD +0 -370
- /truefoundry/ml/{autogen → _autogen}/__init__.py +0 -0
- /truefoundry/ml/{autogen → _autogen}/client/api_response.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.10rc1.dist-info → truefoundry-0.5.11rc1.dist-info}/WHEEL +0 -0
- {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
|
-
|
|
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:
|
|
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,53 +18,65 @@ 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.
|
|
23
|
-
from truefoundry.pydantic_v1 import
|
|
21
|
+
from truefoundry.ml._autogen.client.models.method import Method
|
|
22
|
+
from truefoundry.ml._autogen.client.models.openapi_spec import OpenapiSpec
|
|
23
|
+
from truefoundry.pydantic_v1 import (
|
|
24
|
+
BaseModel,
|
|
25
|
+
Field,
|
|
26
|
+
StrictStr,
|
|
27
|
+
conint,
|
|
28
|
+
constr,
|
|
29
|
+
validator,
|
|
30
|
+
)
|
|
24
31
|
|
|
25
32
|
|
|
26
|
-
class
|
|
33
|
+
class AgentOpenAPIToolManifest(BaseModel):
|
|
27
34
|
"""
|
|
28
|
-
OpenAPI Tool
|
|
35
|
+
Agent OpenAPI Tool manifest. # noqa: E501
|
|
29
36
|
"""
|
|
30
37
|
|
|
31
|
-
|
|
32
|
-
default=None, description="
|
|
38
|
+
name: Optional[constr(strict=True, max_length=256)] = Field(
|
|
39
|
+
default=None, description="Name of the entity"
|
|
33
40
|
)
|
|
41
|
+
description: Optional[constr(strict=True, max_length=512)] = None
|
|
34
42
|
metadata: Dict[str, Any] = Field(
|
|
35
43
|
default=...,
|
|
36
|
-
description=
|
|
44
|
+
description='Key value metadata. Should be valid JSON. For e.g. `{"business-unit": "sales", "quality": "good", "rating": 4.5}`',
|
|
37
45
|
)
|
|
38
46
|
version_alias: Optional[constr(strict=True, max_length=128)] = Field(
|
|
39
47
|
default=None,
|
|
40
|
-
description="
|
|
41
|
-
)
|
|
42
|
-
name: Optional[constr(strict=True, max_length=256)] = Field(
|
|
43
|
-
default=None,
|
|
44
|
-
description="+sort=1 +label=Name +message=The name should start with lowercase alphabets and can contain alphanumeric and can include '-' in between",
|
|
48
|
+
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)",
|
|
45
49
|
)
|
|
46
50
|
ml_repo: Optional[constr(strict=True)] = Field(
|
|
47
|
-
default=None,
|
|
48
|
-
|
|
51
|
+
default=None, description="Name of the ML Repo"
|
|
52
|
+
)
|
|
53
|
+
version: Optional[conint(strict=True, ge=1)] = Field(
|
|
54
|
+
default=None, description="Version of the entity"
|
|
49
55
|
)
|
|
50
56
|
type: Optional[StrictStr] = "openapi-tool"
|
|
51
57
|
openapi_spec: OpenapiSpec = Field(...)
|
|
52
|
-
base_url: constr(strict=True) = Field(
|
|
58
|
+
base_url: constr(strict=True) = Field(
|
|
59
|
+
default=...,
|
|
60
|
+
description="HTTP endpoint where the API is hosted for the tools. E.g. `https://api.example.com/v1`",
|
|
61
|
+
)
|
|
53
62
|
path: constr(strict=True, min_length=1) = Field(
|
|
54
63
|
default=...,
|
|
55
|
-
description="
|
|
64
|
+
description="API Route Path for the tool call HTTP request. E.g. `GET /weather`",
|
|
65
|
+
)
|
|
66
|
+
method: Method = Field(
|
|
67
|
+
default=..., description="HTTP Method for the tool call HTTP request"
|
|
56
68
|
)
|
|
57
|
-
method: Method = Field(default=..., description="+sort=50 +uiType=Hidden")
|
|
58
69
|
headers: Optional[Dict[str, StrictStr]] = Field(
|
|
59
70
|
default=None,
|
|
60
|
-
description=
|
|
71
|
+
description="HTTP Headers for the tool call HTTP request. E.g. `Authorization: Bearer <token>`",
|
|
61
72
|
)
|
|
62
73
|
__properties = [
|
|
74
|
+
"name",
|
|
63
75
|
"description",
|
|
64
76
|
"metadata",
|
|
65
77
|
"version_alias",
|
|
66
|
-
"name",
|
|
67
78
|
"ml_repo",
|
|
79
|
+
"version",
|
|
68
80
|
"type",
|
|
69
81
|
"openapi_spec",
|
|
70
82
|
"base_url",
|
|
@@ -73,27 +85,27 @@ class AgentOpenAPITool(BaseModel):
|
|
|
73
85
|
"headers",
|
|
74
86
|
]
|
|
75
87
|
|
|
76
|
-
@validator("
|
|
77
|
-
def
|
|
88
|
+
@validator("name")
|
|
89
|
+
def name_validate_regular_expression(cls, value):
|
|
78
90
|
"""Validates the regular expression"""
|
|
79
91
|
if value is None:
|
|
80
92
|
return value
|
|
81
93
|
|
|
82
|
-
if not re.match(r"^
|
|
94
|
+
if not re.match(r"^[A-Za-z0-9_\-]+$", value):
|
|
83
95
|
raise ValueError(
|
|
84
|
-
r"must validate the regular expression /^
|
|
96
|
+
r"must validate the regular expression /^[A-Za-z0-9_\-]+$/"
|
|
85
97
|
)
|
|
86
98
|
return value
|
|
87
99
|
|
|
88
|
-
@validator("
|
|
89
|
-
def
|
|
100
|
+
@validator("version_alias")
|
|
101
|
+
def version_alias_validate_regular_expression(cls, value):
|
|
90
102
|
"""Validates the regular expression"""
|
|
91
103
|
if value is None:
|
|
92
104
|
return value
|
|
93
105
|
|
|
94
|
-
if not re.match(r"^[
|
|
106
|
+
if not re.match(r"^v[a-zA-Z0-9.-]*([a-zA-Z0-9]+)$", value):
|
|
95
107
|
raise ValueError(
|
|
96
|
-
r"must validate the regular expression /^[
|
|
108
|
+
r"must validate the regular expression /^v[a-zA-Z0-9.-]*([a-zA-Z0-9]+)$/"
|
|
97
109
|
)
|
|
98
110
|
return value
|
|
99
111
|
|
|
@@ -146,8 +158,8 @@ class AgentOpenAPITool(BaseModel):
|
|
|
146
158
|
return json.dumps(self.to_dict())
|
|
147
159
|
|
|
148
160
|
@classmethod
|
|
149
|
-
def from_json(cls, json_str: str) ->
|
|
150
|
-
"""Create an instance of
|
|
161
|
+
def from_json(cls, json_str: str) -> AgentOpenAPIToolManifest:
|
|
162
|
+
"""Create an instance of AgentOpenAPIToolManifest from a JSON string"""
|
|
151
163
|
return cls.from_dict(json.loads(json_str))
|
|
152
164
|
|
|
153
165
|
def to_dict(self):
|
|
@@ -159,21 +171,22 @@ class AgentOpenAPITool(BaseModel):
|
|
|
159
171
|
return _dict
|
|
160
172
|
|
|
161
173
|
@classmethod
|
|
162
|
-
def from_dict(cls, obj: dict) ->
|
|
163
|
-
"""Create an instance of
|
|
174
|
+
def from_dict(cls, obj: dict) -> AgentOpenAPIToolManifest:
|
|
175
|
+
"""Create an instance of AgentOpenAPIToolManifest from a dict"""
|
|
164
176
|
if obj is None:
|
|
165
177
|
return None
|
|
166
178
|
|
|
167
179
|
if not isinstance(obj, dict):
|
|
168
|
-
return
|
|
180
|
+
return AgentOpenAPIToolManifest.parse_obj(obj)
|
|
169
181
|
|
|
170
|
-
_obj =
|
|
182
|
+
_obj = AgentOpenAPIToolManifest.parse_obj(
|
|
171
183
|
{
|
|
184
|
+
"name": obj.get("name"),
|
|
172
185
|
"description": obj.get("description"),
|
|
173
186
|
"metadata": obj.get("metadata"),
|
|
174
187
|
"version_alias": obj.get("version_alias"),
|
|
175
|
-
"name": obj.get("name"),
|
|
176
188
|
"ml_repo": obj.get("ml_repo"),
|
|
189
|
+
"version": obj.get("version"),
|
|
177
190
|
"type": obj.get("type")
|
|
178
191
|
if obj.get("type") is not None
|
|
179
192
|
else "openapi-tool",
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
# coding: utf-8
|
|
2
2
|
|
|
3
3
|
"""
|
|
4
|
-
|
|
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:
|
|
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,16 @@ 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.
|
|
23
|
-
from truefoundry.pydantic_v1 import
|
|
21
|
+
from truefoundry.ml._autogen.client.models.method import Method
|
|
22
|
+
from truefoundry.ml._autogen.client.models.openapi_spec import OpenapiSpec
|
|
23
|
+
from truefoundry.pydantic_v1 import (
|
|
24
|
+
BaseModel,
|
|
25
|
+
Field,
|
|
26
|
+
StrictStr,
|
|
27
|
+
conint,
|
|
28
|
+
constr,
|
|
29
|
+
validator,
|
|
30
|
+
)
|
|
24
31
|
|
|
25
32
|
|
|
26
33
|
class AgentOpenAPIToolWithFQN(BaseModel):
|
|
@@ -28,45 +35,50 @@ class AgentOpenAPIToolWithFQN(BaseModel):
|
|
|
28
35
|
AgentOpenAPIToolWithFQN
|
|
29
36
|
"""
|
|
30
37
|
|
|
31
|
-
|
|
32
|
-
default=None, description="
|
|
38
|
+
name: Optional[constr(strict=True, max_length=256)] = Field(
|
|
39
|
+
default=None, description="Name of the entity"
|
|
33
40
|
)
|
|
41
|
+
description: Optional[constr(strict=True, max_length=512)] = None
|
|
34
42
|
metadata: Dict[str, Any] = Field(
|
|
35
43
|
default=...,
|
|
36
|
-
description=
|
|
44
|
+
description='Key value metadata. Should be valid JSON. For e.g. `{"business-unit": "sales", "quality": "good", "rating": 4.5}`',
|
|
37
45
|
)
|
|
38
46
|
version_alias: Optional[constr(strict=True, max_length=128)] = Field(
|
|
39
47
|
default=None,
|
|
40
|
-
description="
|
|
41
|
-
)
|
|
42
|
-
name: Optional[constr(strict=True, max_length=256)] = Field(
|
|
43
|
-
default=None,
|
|
44
|
-
description="+sort=1 +label=Name +message=The name should start with lowercase alphabets and can contain alphanumeric and can include '-' in between",
|
|
48
|
+
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)",
|
|
45
49
|
)
|
|
46
50
|
ml_repo: Optional[constr(strict=True)] = Field(
|
|
47
|
-
default=None,
|
|
48
|
-
|
|
51
|
+
default=None, description="Name of the ML Repo"
|
|
52
|
+
)
|
|
53
|
+
version: Optional[conint(strict=True, ge=1)] = Field(
|
|
54
|
+
default=None, description="Version of the entity"
|
|
49
55
|
)
|
|
50
|
-
type: StrictStr = Field(default=..., description="
|
|
56
|
+
type: StrictStr = Field(default=..., description="Type of the agent")
|
|
51
57
|
openapi_spec: OpenapiSpec = Field(...)
|
|
52
|
-
base_url: constr(strict=True) = Field(
|
|
58
|
+
base_url: constr(strict=True) = Field(
|
|
59
|
+
default=...,
|
|
60
|
+
description="HTTP endpoint where the API is hosted for the tools. E.g. `https://api.example.com/v1`",
|
|
61
|
+
)
|
|
53
62
|
path: constr(strict=True, min_length=1) = Field(
|
|
54
63
|
default=...,
|
|
55
|
-
description="
|
|
64
|
+
description="API Route Path for the tool call HTTP request. E.g. `GET /weather`",
|
|
65
|
+
)
|
|
66
|
+
method: Method = Field(
|
|
67
|
+
default=..., description="HTTP Method for the tool call HTTP request"
|
|
56
68
|
)
|
|
57
|
-
method: Method = Field(default=..., description="+sort=50 +uiType=Hidden")
|
|
58
69
|
headers: Optional[Dict[str, StrictStr]] = Field(
|
|
59
70
|
default=None,
|
|
60
|
-
description=
|
|
71
|
+
description="HTTP Headers for the tool call HTTP request. E.g. `Authorization: Bearer <token>`",
|
|
61
72
|
)
|
|
62
|
-
id: StrictStr = Field(
|
|
63
|
-
fqn: StrictStr = Field(
|
|
73
|
+
id: StrictStr = Field(default=..., description="ID of the agent tool")
|
|
74
|
+
fqn: StrictStr = Field(default=..., description="FQN of the agent tool")
|
|
64
75
|
__properties = [
|
|
76
|
+
"name",
|
|
65
77
|
"description",
|
|
66
78
|
"metadata",
|
|
67
79
|
"version_alias",
|
|
68
|
-
"name",
|
|
69
80
|
"ml_repo",
|
|
81
|
+
"version",
|
|
70
82
|
"type",
|
|
71
83
|
"openapi_spec",
|
|
72
84
|
"base_url",
|
|
@@ -77,27 +89,27 @@ class AgentOpenAPIToolWithFQN(BaseModel):
|
|
|
77
89
|
"fqn",
|
|
78
90
|
]
|
|
79
91
|
|
|
80
|
-
@validator("
|
|
81
|
-
def
|
|
92
|
+
@validator("name")
|
|
93
|
+
def name_validate_regular_expression(cls, value):
|
|
82
94
|
"""Validates the regular expression"""
|
|
83
95
|
if value is None:
|
|
84
96
|
return value
|
|
85
97
|
|
|
86
|
-
if not re.match(r"^
|
|
98
|
+
if not re.match(r"^[A-Za-z0-9_\-]+$", value):
|
|
87
99
|
raise ValueError(
|
|
88
|
-
r"must validate the regular expression /^
|
|
100
|
+
r"must validate the regular expression /^[A-Za-z0-9_\-]+$/"
|
|
89
101
|
)
|
|
90
102
|
return value
|
|
91
103
|
|
|
92
|
-
@validator("
|
|
93
|
-
def
|
|
104
|
+
@validator("version_alias")
|
|
105
|
+
def version_alias_validate_regular_expression(cls, value):
|
|
94
106
|
"""Validates the regular expression"""
|
|
95
107
|
if value is None:
|
|
96
108
|
return value
|
|
97
109
|
|
|
98
|
-
if not re.match(r"^[
|
|
110
|
+
if not re.match(r"^v[a-zA-Z0-9.-]*([a-zA-Z0-9]+)$", value):
|
|
99
111
|
raise ValueError(
|
|
100
|
-
r"must validate the regular expression /^[
|
|
112
|
+
r"must validate the regular expression /^v[a-zA-Z0-9.-]*([a-zA-Z0-9]+)$/"
|
|
101
113
|
)
|
|
102
114
|
return value
|
|
103
115
|
|
|
@@ -170,11 +182,12 @@ class AgentOpenAPIToolWithFQN(BaseModel):
|
|
|
170
182
|
|
|
171
183
|
_obj = AgentOpenAPIToolWithFQN.parse_obj(
|
|
172
184
|
{
|
|
185
|
+
"name": obj.get("name"),
|
|
173
186
|
"description": obj.get("description"),
|
|
174
187
|
"metadata": obj.get("metadata"),
|
|
175
188
|
"version_alias": obj.get("version_alias"),
|
|
176
|
-
"name": obj.get("name"),
|
|
177
189
|
"ml_repo": obj.get("ml_repo"),
|
|
190
|
+
"version": obj.get("version"),
|
|
178
191
|
"type": obj.get("type"),
|
|
179
192
|
"openapi_spec": OpenapiSpec.from_dict(obj.get("openapi_spec"))
|
|
180
193
|
if obj.get("openapi_spec") is not None
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
# coding: utf-8
|
|
2
2
|
|
|
3
3
|
"""
|
|
4
|
-
|
|
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:
|
|
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,48 @@ class AgentWithFQN(BaseModel):
|
|
|
33
34
|
AgentWithFQN
|
|
34
35
|
"""
|
|
35
36
|
|
|
36
|
-
|
|
37
|
-
default=None, description="
|
|
37
|
+
name: Optional[constr(strict=True, max_length=256)] = Field(
|
|
38
|
+
default=None, description="Name of the entity"
|
|
38
39
|
)
|
|
40
|
+
description: Optional[constr(strict=True, max_length=512)] = None
|
|
39
41
|
metadata: Dict[str, Any] = Field(
|
|
40
42
|
default=...,
|
|
41
|
-
description=
|
|
43
|
+
description='Key value metadata. Should be valid JSON. For e.g. `{"business-unit": "sales", "quality": "good", "rating": 4.5}`',
|
|
42
44
|
)
|
|
43
45
|
version_alias: Optional[constr(strict=True, max_length=128)] = Field(
|
|
44
46
|
default=None,
|
|
45
|
-
description="
|
|
46
|
-
)
|
|
47
|
-
name: Optional[constr(strict=True, max_length=256)] = Field(
|
|
48
|
-
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",
|
|
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)",
|
|
50
48
|
)
|
|
51
49
|
ml_repo: Optional[constr(strict=True)] = Field(
|
|
52
|
-
default=None,
|
|
53
|
-
|
|
50
|
+
default=None, description="Name of the ML Repo"
|
|
51
|
+
)
|
|
52
|
+
version: Optional[conint(strict=True, ge=1)] = Field(
|
|
53
|
+
default=None, description="Version of the entity"
|
|
54
54
|
)
|
|
55
|
-
type: StrictStr = Field(default=..., description="
|
|
55
|
+
type: StrictStr = Field(default=..., description="Type of the entity")
|
|
56
56
|
available_tools: conlist(constr(strict=True, min_length=1)) = Field(
|
|
57
|
-
default=..., description="
|
|
57
|
+
default=..., description="Tools available to the agent"
|
|
58
58
|
)
|
|
59
59
|
goal: constr(strict=True, max_length=128, min_length=1) = Field(
|
|
60
|
-
default=...,
|
|
60
|
+
default=...,
|
|
61
|
+
description="Short form description. Will be used as `description` when this agent is used as a tool.",
|
|
61
62
|
)
|
|
62
63
|
instruction: constr(strict=True, max_length=2620, min_length=1) = Field(
|
|
63
64
|
default=...,
|
|
64
|
-
description=
|
|
65
|
+
description="Instructions for the agent to follow to achieve the goal",
|
|
65
66
|
)
|
|
66
67
|
model_id: constr(strict=True, min_length=1) = Field(
|
|
67
|
-
default=...,
|
|
68
|
-
description='+sort=40 +uiType=EnabledModelSelector +uiProps={"searchable":true,"modelType":"chat","providerType":"openai"}',
|
|
68
|
+
default=..., description="Model to use when running the agent"
|
|
69
69
|
)
|
|
70
|
-
id: StrictStr = Field(
|
|
71
|
-
fqn: StrictStr = Field(
|
|
70
|
+
id: StrictStr = Field(default=..., description="ID of the agent")
|
|
71
|
+
fqn: StrictStr = Field(default=..., description="FQN of the agent")
|
|
72
72
|
__properties = [
|
|
73
|
+
"name",
|
|
73
74
|
"description",
|
|
74
75
|
"metadata",
|
|
75
76
|
"version_alias",
|
|
76
|
-
"name",
|
|
77
77
|
"ml_repo",
|
|
78
|
+
"version",
|
|
78
79
|
"type",
|
|
79
80
|
"available_tools",
|
|
80
81
|
"goal",
|
|
@@ -84,27 +85,27 @@ class AgentWithFQN(BaseModel):
|
|
|
84
85
|
"fqn",
|
|
85
86
|
]
|
|
86
87
|
|
|
87
|
-
@validator("
|
|
88
|
-
def
|
|
88
|
+
@validator("name")
|
|
89
|
+
def name_validate_regular_expression(cls, value):
|
|
89
90
|
"""Validates the regular expression"""
|
|
90
91
|
if value is None:
|
|
91
92
|
return value
|
|
92
93
|
|
|
93
|
-
if not re.match(r"^
|
|
94
|
+
if not re.match(r"^[A-Za-z0-9_\-]+$", value):
|
|
94
95
|
raise ValueError(
|
|
95
|
-
r"must validate the regular expression /^
|
|
96
|
+
r"must validate the regular expression /^[A-Za-z0-9_\-]+$/"
|
|
96
97
|
)
|
|
97
98
|
return value
|
|
98
99
|
|
|
99
|
-
@validator("
|
|
100
|
-
def
|
|
100
|
+
@validator("version_alias")
|
|
101
|
+
def version_alias_validate_regular_expression(cls, value):
|
|
101
102
|
"""Validates the regular expression"""
|
|
102
103
|
if value is None:
|
|
103
104
|
return value
|
|
104
105
|
|
|
105
|
-
if not re.match(r"^[
|
|
106
|
+
if not re.match(r"^v[a-zA-Z0-9.-]*([a-zA-Z0-9]+)$", value):
|
|
106
107
|
raise ValueError(
|
|
107
|
-
r"must validate the regular expression /^[
|
|
108
|
+
r"must validate the regular expression /^v[a-zA-Z0-9.-]*([a-zA-Z0-9]+)$/"
|
|
108
109
|
)
|
|
109
110
|
return value
|
|
110
111
|
|
|
@@ -162,11 +163,12 @@ class AgentWithFQN(BaseModel):
|
|
|
162
163
|
|
|
163
164
|
_obj = AgentWithFQN.parse_obj(
|
|
164
165
|
{
|
|
166
|
+
"name": obj.get("name"),
|
|
165
167
|
"description": obj.get("description"),
|
|
166
168
|
"metadata": obj.get("metadata"),
|
|
167
169
|
"version_alias": obj.get("version_alias"),
|
|
168
|
-
"name": obj.get("name"),
|
|
169
170
|
"ml_repo": obj.get("ml_repo"),
|
|
171
|
+
"version": obj.get("version"),
|
|
170
172
|
"type": obj.get("type"),
|
|
171
173
|
"available_tools": obj.get("available_tools"),
|
|
172
174
|
"goal": obj.get("goal"),
|
|
@@ -0,0 +1,75 @@
|
|
|
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
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
class ApplyRequestDto(BaseModel):
|
|
25
|
+
"""
|
|
26
|
+
ApplyRequestDto
|
|
27
|
+
"""
|
|
28
|
+
|
|
29
|
+
manifest: Manifest = Field(...)
|
|
30
|
+
__properties = ["manifest"]
|
|
31
|
+
|
|
32
|
+
class Config:
|
|
33
|
+
"""Pydantic configuration"""
|
|
34
|
+
|
|
35
|
+
allow_population_by_field_name = True
|
|
36
|
+
validate_assignment = True
|
|
37
|
+
|
|
38
|
+
def to_str(self) -> str:
|
|
39
|
+
"""Returns the string representation of the model using alias"""
|
|
40
|
+
return pprint.pformat(self.dict(by_alias=True))
|
|
41
|
+
|
|
42
|
+
def to_json(self) -> str:
|
|
43
|
+
"""Returns the JSON representation of the model using alias"""
|
|
44
|
+
return json.dumps(self.to_dict())
|
|
45
|
+
|
|
46
|
+
@classmethod
|
|
47
|
+
def from_json(cls, json_str: str) -> ApplyRequestDto:
|
|
48
|
+
"""Create an instance of ApplyRequestDto from a JSON string"""
|
|
49
|
+
return cls.from_dict(json.loads(json_str))
|
|
50
|
+
|
|
51
|
+
def to_dict(self):
|
|
52
|
+
"""Returns the dictionary representation of the model using alias"""
|
|
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()
|
|
57
|
+
return _dict
|
|
58
|
+
|
|
59
|
+
@classmethod
|
|
60
|
+
def from_dict(cls, obj: dict) -> ApplyRequestDto:
|
|
61
|
+
"""Create an instance of ApplyRequestDto from a dict"""
|
|
62
|
+
if obj is None:
|
|
63
|
+
return None
|
|
64
|
+
|
|
65
|
+
if not isinstance(obj, dict):
|
|
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
|
+
}
|
|
74
|
+
)
|
|
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
|
-
|
|
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:
|
|
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.
|
|
@@ -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
|
|