truefoundry 0.5.9__py3-none-any.whl → 0.5.10__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/cli/display_util.py +1 -1
- truefoundry/common/utils.py +9 -0
- truefoundry/deploy/auto_gen/models.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 +115 -136
- 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/ml/autogen/client/__init__.py +22 -14
- truefoundry/ml/autogen/client/api/auth_api.py +2 -2
- truefoundry/ml/autogen/client/api/deprecated_api.py +5 -338
- truefoundry/ml/autogen/client/api/experiments_api.py +77 -32
- truefoundry/ml/autogen/client/api/generate_code_snippet_api.py +2 -2
- truefoundry/ml/autogen/client/api/health_api.py +2 -2
- truefoundry/ml/autogen/client/api/metrics_api.py +4 -4
- truefoundry/ml/autogen/client/api/mlfoundry_artifacts_api.py +530 -140
- truefoundry/ml/autogen/client/api/run_artifacts_api.py +10 -5
- truefoundry/ml/autogen/client/api/runs_api.py +20 -20
- truefoundry/ml/autogen/client/api_client.py +2 -2
- truefoundry/ml/autogen/client/configuration.py +29 -57
- truefoundry/ml/autogen/client/exceptions.py +2 -2
- truefoundry/ml/autogen/client/models/__init__.py +22 -14
- truefoundry/ml/autogen/client/models/agent_app.py +13 -5
- truefoundry/ml/autogen/client/models/{agent.py → agent_manifest.py} +39 -30
- truefoundry/ml/autogen/client/models/{agent_open_api_tool.py → agent_open_api_tool_manifest.py} +50 -31
- truefoundry/ml/autogen/client/models/agent_open_api_tool_with_fqn.py +47 -26
- truefoundry/ml/autogen/client/models/agent_with_fqn.py +36 -25
- truefoundry/ml/autogen/client/models/{add_custom_metrics_to_model_version_request_dto.py → apply_request_dto.py} +23 -17
- truefoundry/ml/autogen/client/models/apply_response_dto.py +79 -0
- truefoundry/ml/autogen/client/models/artifact_dto.py +2 -2
- truefoundry/ml/autogen/client/models/{add_features_to_model_version_request_dto.py → artifact_path.py} +20 -17
- truefoundry/ml/autogen/client/models/artifact_response_dto.py +2 -2
- truefoundry/ml/autogen/client/models/artifact_type.py +3 -3
- truefoundry/ml/autogen/client/models/artifact_version_dto.py +7 -15
- truefoundry/ml/autogen/client/models/artifact_version_manifest.py +32 -19
- truefoundry/ml/autogen/client/models/artifact_version_response_dto.py +2 -2
- truefoundry/ml/autogen/client/models/artifact_version_serialization_format.py +2 -2
- truefoundry/ml/autogen/client/models/artifact_version_status.py +2 -2
- truefoundry/ml/autogen/client/models/assistant_message.py +9 -5
- truefoundry/ml/autogen/client/models/authorize_user_for_model_request_dto.py +2 -2
- truefoundry/ml/autogen/client/models/authorize_user_for_model_version_request_dto.py +2 -2
- truefoundry/ml/autogen/client/models/blob_storage_reference.py +4 -4
- truefoundry/ml/autogen/client/models/body_get_search_runs_get.py +2 -2
- truefoundry/ml/autogen/client/models/{chat_prompt.py → chat_prompt_manifest.py} +39 -32
- truefoundry/ml/autogen/client/models/{chat_prompt_messages_inner.py → chat_prompt_manifest_messages_inner.py} +12 -12
- truefoundry/ml/autogen/client/models/columns_dto.py +2 -2
- truefoundry/ml/autogen/client/models/command.py +2 -2
- truefoundry/ml/autogen/client/models/content.py +3 -3
- truefoundry/ml/autogen/client/models/content1.py +3 -3
- truefoundry/ml/autogen/client/models/content2.py +3 -3
- truefoundry/ml/autogen/client/models/content2_any_of_inner.py +2 -2
- truefoundry/ml/autogen/client/models/create_artifact_request_dto.py +2 -2
- truefoundry/ml/autogen/client/models/create_artifact_response_dto.py +2 -2
- truefoundry/ml/autogen/client/models/create_artifact_version_request_dto.py +2 -2
- truefoundry/ml/autogen/client/models/create_artifact_version_response_dto.py +2 -2
- truefoundry/ml/autogen/client/models/create_dataset_request_dto.py +21 -5
- truefoundry/ml/autogen/client/models/create_experiment_request_dto.py +2 -2
- truefoundry/ml/autogen/client/models/create_experiment_response_dto.py +2 -2
- truefoundry/ml/autogen/client/models/create_model_version_request_dto.py +4 -12
- truefoundry/ml/autogen/client/models/create_multi_part_upload_for_dataset_request_dto.py +2 -2
- truefoundry/ml/autogen/client/models/create_multi_part_upload_for_dataset_response_dto.py +2 -2
- truefoundry/ml/autogen/client/models/create_multi_part_upload_request_dto.py +2 -2
- truefoundry/ml/autogen/client/models/create_python_deployment_config_request_dto.py +2 -2
- truefoundry/ml/autogen/client/models/create_python_deployment_config_response_dto.py +2 -2
- truefoundry/ml/autogen/client/models/create_run_request_dto.py +2 -2
- truefoundry/ml/autogen/client/models/create_run_response_dto.py +2 -2
- truefoundry/ml/autogen/client/models/create_workflow_task_config_request_dto.py +2 -2
- truefoundry/ml/autogen/client/models/data_directory_manifest.py +126 -0
- truefoundry/ml/autogen/client/models/dataset_dto.py +13 -2
- truefoundry/ml/autogen/client/models/dataset_response_dto.py +2 -2
- truefoundry/ml/autogen/client/models/delete_artifact_versions_request_dto.py +2 -2
- truefoundry/ml/autogen/client/models/delete_dataset_request_dto.py +2 -2
- truefoundry/ml/autogen/client/models/delete_files_for_dataset_request_dto.py +2 -2
- truefoundry/ml/autogen/client/models/delete_model_version_request_dto.py +2 -2
- truefoundry/ml/autogen/client/models/delete_run_request.py +2 -2
- truefoundry/ml/autogen/client/models/delete_tag_request_dto.py +2 -2
- truefoundry/ml/autogen/client/models/experiment_dto.py +3 -3
- truefoundry/ml/autogen/client/models/experiment_id_request_dto.py +2 -2
- truefoundry/ml/autogen/client/models/experiment_response_dto.py +2 -2
- truefoundry/ml/autogen/client/models/experiment_tag_dto.py +2 -2
- truefoundry/ml/autogen/client/models/export_deployment_files_request_dto.py +2 -2
- truefoundry/ml/autogen/client/models/external_blob_storage_source.py +5 -4
- truefoundry/ml/autogen/client/models/fast_ai_framework.py +3 -3
- truefoundry/ml/autogen/client/models/file_info_dto.py +2 -2
- truefoundry/ml/autogen/client/models/finalize_artifact_version_request_dto.py +7 -15
- truefoundry/ml/autogen/client/models/framework.py +3 -3
- truefoundry/ml/autogen/client/models/get_artifact_version_aliases_response_dto.py +2 -2
- truefoundry/ml/autogen/client/models/get_experiment_response_dto.py +2 -2
- truefoundry/ml/autogen/client/models/get_latest_run_log_response_dto.py +2 -2
- truefoundry/ml/autogen/client/models/get_metric_history_response.py +2 -2
- truefoundry/ml/autogen/client/models/get_signed_url_for_dataset_write_request_dto.py +2 -2
- truefoundry/ml/autogen/client/models/get_signed_urls_for_artifact_version_read_request_dto.py +2 -2
- truefoundry/ml/autogen/client/models/get_signed_urls_for_artifact_version_read_response_dto.py +2 -2
- truefoundry/ml/autogen/client/models/get_signed_urls_for_artifact_version_write_request_dto.py +2 -2
- truefoundry/ml/autogen/client/models/get_signed_urls_for_artifact_version_write_response_dto.py +2 -2
- truefoundry/ml/autogen/client/models/get_signed_urls_for_dataset_read_request_dto.py +2 -2
- truefoundry/ml/autogen/client/models/get_signed_urls_for_dataset_read_response_dto.py +2 -2
- truefoundry/ml/autogen/client/models/get_signed_urls_for_dataset_write_response_dto.py +2 -2
- truefoundry/ml/autogen/client/models/get_tenant_id_response_dto.py +2 -2
- truefoundry/ml/autogen/client/models/gluon_framework.py +3 -3
- truefoundry/ml/autogen/client/models/h2_o_framework.py +3 -3
- truefoundry/ml/autogen/client/models/http_validation_error.py +2 -2
- truefoundry/ml/autogen/client/models/image_content_part.py +7 -5
- truefoundry/ml/autogen/client/models/image_url.py +3 -3
- truefoundry/ml/autogen/client/models/infer_method_name.py +2 -2
- truefoundry/ml/autogen/client/models/keras_framework.py +3 -3
- truefoundry/ml/autogen/client/models/latest_run_log_dto.py +2 -2
- truefoundry/ml/autogen/client/models/library_name.py +2 -2
- truefoundry/ml/autogen/client/models/light_gbm_framework.py +3 -3
- truefoundry/ml/autogen/client/models/list_artifact_versions_request_dto.py +2 -2
- truefoundry/ml/autogen/client/models/list_artifact_versions_response_dto.py +2 -2
- truefoundry/ml/autogen/client/models/list_artifacts_request_dto.py +2 -2
- truefoundry/ml/autogen/client/models/list_artifacts_response_dto.py +2 -2
- truefoundry/ml/autogen/client/models/list_colums_response_dto.py +2 -2
- truefoundry/ml/autogen/client/models/list_datasets_request_dto.py +2 -2
- truefoundry/ml/autogen/client/models/list_datasets_response_dto.py +2 -2
- truefoundry/ml/autogen/client/models/list_experiments_response_dto.py +2 -2
- truefoundry/ml/autogen/client/models/list_files_for_artifact_version_request_dto.py +2 -2
- truefoundry/ml/autogen/client/models/list_files_for_artifact_versions_response_dto.py +2 -2
- truefoundry/ml/autogen/client/models/list_files_for_dataset_request_dto.py +2 -2
- truefoundry/ml/autogen/client/models/list_files_for_dataset_response_dto.py +2 -2
- truefoundry/ml/autogen/client/models/list_latest_run_logs_response_dto.py +2 -2
- truefoundry/ml/autogen/client/models/list_metric_history_request_dto.py +2 -2
- truefoundry/ml/autogen/client/models/list_metric_history_response_dto.py +2 -2
- truefoundry/ml/autogen/client/models/list_model_version_response_dto.py +2 -2
- truefoundry/ml/autogen/client/models/list_model_versions_request_dto.py +2 -2
- truefoundry/ml/autogen/client/models/list_models_request_dto.py +2 -2
- truefoundry/ml/autogen/client/models/list_models_response_dto.py +2 -2
- truefoundry/ml/autogen/client/models/list_run_artifacts_response_dto.py +2 -2
- truefoundry/ml/autogen/client/models/list_run_logs_response_dto.py +2 -2
- truefoundry/ml/autogen/client/models/local_artifact_source.py +93 -0
- truefoundry/ml/autogen/client/models/local_model_source.py +80 -0
- truefoundry/ml/autogen/client/models/log_batch_request_dto.py +2 -2
- truefoundry/ml/autogen/client/models/log_metric_request_dto.py +2 -2
- truefoundry/ml/autogen/client/models/log_param_request_dto.py +2 -2
- truefoundry/ml/autogen/client/models/manifest.py +100 -23
- truefoundry/ml/autogen/client/models/manifest1.py +219 -0
- truefoundry/ml/autogen/client/models/manifest2.py +198 -0
- truefoundry/ml/autogen/client/models/method.py +3 -3
- truefoundry/ml/autogen/client/models/metric_collection_dto.py +2 -2
- truefoundry/ml/autogen/client/models/metric_dto.py +2 -2
- truefoundry/ml/autogen/client/models/mime_type.py +2 -2
- truefoundry/ml/autogen/client/models/model_configuration.py +7 -7
- truefoundry/ml/autogen/client/models/model_dto.py +2 -2
- truefoundry/ml/autogen/client/models/model_response_dto.py +2 -2
- truefoundry/ml/autogen/client/models/model_server.py +2 -2
- truefoundry/ml/autogen/client/models/model_version_dto.py +2 -2
- truefoundry/ml/autogen/client/models/model_version_environment.py +5 -5
- truefoundry/ml/autogen/client/models/model_version_manifest.py +35 -22
- truefoundry/ml/autogen/client/models/model_version_response_dto.py +2 -2
- truefoundry/ml/autogen/client/models/multi_part_upload_dto.py +2 -2
- truefoundry/ml/autogen/client/models/multi_part_upload_response_dto.py +2 -2
- truefoundry/ml/autogen/client/models/multi_part_upload_storage_provider.py +2 -2
- truefoundry/ml/autogen/client/models/notify_artifact_version_failure_dto.py +2 -2
- truefoundry/ml/autogen/client/models/onnx_framework.py +3 -3
- truefoundry/ml/autogen/client/models/openapi_spec.py +3 -3
- truefoundry/ml/autogen/client/models/paddle_framework.py +3 -3
- truefoundry/ml/autogen/client/models/param_dto.py +2 -2
- truefoundry/ml/autogen/client/models/parameters.py +3 -3
- truefoundry/ml/autogen/client/models/py_torch_framework.py +3 -3
- truefoundry/ml/autogen/client/models/resolve_agent_app_response_dto.py +2 -2
- truefoundry/ml/autogen/client/models/restore_run_request_dto.py +2 -2
- truefoundry/ml/autogen/client/models/run_data_dto.py +2 -2
- truefoundry/ml/autogen/client/models/run_dto.py +2 -2
- truefoundry/ml/autogen/client/models/run_info_dto.py +2 -2
- truefoundry/ml/autogen/client/models/run_log_dto.py +2 -2
- truefoundry/ml/autogen/client/models/run_log_input_dto.py +2 -2
- truefoundry/ml/autogen/client/models/run_response_dto.py +2 -2
- truefoundry/ml/autogen/client/models/run_tag_dto.py +2 -2
- truefoundry/ml/autogen/client/models/search_runs_request_dto.py +2 -2
- truefoundry/ml/autogen/client/models/search_runs_response_dto.py +2 -2
- truefoundry/ml/autogen/client/models/set_experiment_tag_request_dto.py +2 -2
- truefoundry/ml/autogen/client/models/set_tag_request_dto.py +2 -2
- truefoundry/ml/autogen/client/models/signed_url_dto.py +3 -4
- truefoundry/ml/autogen/client/models/sklearn_framework.py +4 -4
- truefoundry/ml/autogen/client/models/sklearn_model_schema.py +7 -5
- truefoundry/ml/autogen/client/models/sklearn_serialization_format.py +3 -3
- truefoundry/ml/autogen/client/models/source.py +32 -7
- truefoundry/ml/autogen/client/models/source1.py +3 -3
- truefoundry/ml/autogen/client/models/{internal_metadata.py → source2.py} +52 -55
- truefoundry/ml/autogen/client/models/spa_cy_framework.py +3 -3
- truefoundry/ml/autogen/client/models/stats_models_framework.py +3 -3
- truefoundry/ml/autogen/client/models/stop.py +2 -2
- truefoundry/ml/autogen/client/models/store_run_logs_request_dto.py +2 -2
- truefoundry/ml/autogen/client/models/subject.py +2 -2
- truefoundry/ml/autogen/client/models/subject_type.py +2 -2
- truefoundry/ml/autogen/client/models/system_message.py +7 -4
- truefoundry/ml/autogen/client/models/tensor_flow_framework.py +3 -3
- truefoundry/ml/autogen/client/models/text.py +3 -3
- truefoundry/ml/autogen/client/models/text_content_part.py +6 -4
- truefoundry/ml/autogen/client/models/transformers_framework.py +5 -5
- truefoundry/ml/autogen/client/models/trigger_job_run_config_request_dto.py +2 -2
- truefoundry/ml/autogen/client/models/trigger_job_run_config_response_dto.py +2 -2
- truefoundry/ml/autogen/client/models/true_foundry_managed_source.py +3 -3
- truefoundry/ml/autogen/client/models/update_artifact_version_request_dto.py +5 -7
- truefoundry/ml/autogen/client/models/update_dataset_request_dto.py +13 -3
- truefoundry/ml/autogen/client/models/update_experiment_request_dto.py +2 -2
- truefoundry/ml/autogen/client/models/update_model_version_request_dto.py +2 -2
- truefoundry/ml/autogen/client/models/update_run_request_dto.py +2 -2
- truefoundry/ml/autogen/client/models/update_run_response_dto.py +2 -2
- truefoundry/ml/autogen/client/models/url.py +3 -3
- truefoundry/ml/autogen/client/models/user_message.py +8 -5
- truefoundry/ml/autogen/client/models/validate_external_storage_root_request_dto.py +2 -2
- truefoundry/ml/autogen/client/models/validate_external_storage_root_response_dto.py +2 -2
- truefoundry/ml/autogen/client/models/validation_error.py +2 -2
- truefoundry/ml/autogen/client/models/validation_error_loc_inner.py +2 -2
- truefoundry/ml/autogen/client/models/xg_boost_framework.py +4 -4
- truefoundry/ml/autogen/client/models/xg_boost_model_schema.py +7 -5
- truefoundry/ml/autogen/client/models/xg_boost_serialization_format.py +3 -3
- truefoundry/ml/autogen/client/rest.py +2 -2
- truefoundry/ml/autogen/client_README.md +17 -19
- truefoundry/ml/autogen/entities/artifacts.py +266 -141
- truefoundry/ml/clients/servicefoundry_client.py +9 -8
- truefoundry/ml/log_types/artifacts/artifact.py +15 -78
- truefoundry/ml/log_types/artifacts/model.py +4 -5
- truefoundry/ml/log_types/artifacts/utils.py +18 -2
- truefoundry/ml/mlfoundry_api.py +0 -40
- truefoundry/ml/session.py +6 -3
- {truefoundry-0.5.9.dist-info → truefoundry-0.5.10.dist-info}/METADATA +3 -6
- {truefoundry-0.5.9.dist-info → truefoundry-0.5.10.dist-info}/RECORD +223 -217
- {truefoundry-0.5.9.dist-info → truefoundry-0.5.10.dist-info}/WHEEL +0 -0
- {truefoundry-0.5.9.dist-info → truefoundry-0.5.10.dist-info}/entry_points.txt +0 -0
|
@@ -0,0 +1,219 @@
|
|
|
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
|
+
from typing import TYPE_CHECKING, Any, List, Optional, Union
|
|
20
|
+
|
|
21
|
+
from truefoundry.ml.autogen.client.models.agent_manifest import AgentManifest
|
|
22
|
+
from truefoundry.ml.autogen.client.models.agent_open_api_tool_manifest import (
|
|
23
|
+
AgentOpenAPIToolManifest,
|
|
24
|
+
)
|
|
25
|
+
from truefoundry.ml.autogen.client.models.artifact_version_manifest import (
|
|
26
|
+
ArtifactVersionManifest,
|
|
27
|
+
)
|
|
28
|
+
from truefoundry.ml.autogen.client.models.chat_prompt_manifest import ChatPromptManifest
|
|
29
|
+
from truefoundry.ml.autogen.client.models.model_version_manifest import (
|
|
30
|
+
ModelVersionManifest,
|
|
31
|
+
)
|
|
32
|
+
from truefoundry.pydantic_v1 import (
|
|
33
|
+
BaseModel,
|
|
34
|
+
Field,
|
|
35
|
+
ValidationError,
|
|
36
|
+
validator,
|
|
37
|
+
)
|
|
38
|
+
|
|
39
|
+
MANIFEST1_ANY_OF_SCHEMAS = [
|
|
40
|
+
"AgentManifest",
|
|
41
|
+
"AgentOpenAPIToolManifest",
|
|
42
|
+
"ArtifactVersionManifest",
|
|
43
|
+
"ChatPromptManifest",
|
|
44
|
+
"ModelVersionManifest",
|
|
45
|
+
]
|
|
46
|
+
|
|
47
|
+
|
|
48
|
+
class Manifest1(BaseModel):
|
|
49
|
+
"""
|
|
50
|
+
Manifest1
|
|
51
|
+
"""
|
|
52
|
+
|
|
53
|
+
# data type: ModelVersionManifest
|
|
54
|
+
anyof_schema_1_validator: Optional[ModelVersionManifest] = None
|
|
55
|
+
# data type: ChatPromptManifest
|
|
56
|
+
anyof_schema_2_validator: Optional[ChatPromptManifest] = None
|
|
57
|
+
# data type: AgentOpenAPIToolManifest
|
|
58
|
+
anyof_schema_3_validator: Optional[AgentOpenAPIToolManifest] = None
|
|
59
|
+
# data type: AgentManifest
|
|
60
|
+
anyof_schema_4_validator: Optional[AgentManifest] = None
|
|
61
|
+
# data type: ArtifactVersionManifest
|
|
62
|
+
anyof_schema_5_validator: Optional[ArtifactVersionManifest] = None
|
|
63
|
+
if TYPE_CHECKING:
|
|
64
|
+
actual_instance: Union[
|
|
65
|
+
AgentManifest,
|
|
66
|
+
AgentOpenAPIToolManifest,
|
|
67
|
+
ArtifactVersionManifest,
|
|
68
|
+
ChatPromptManifest,
|
|
69
|
+
ModelVersionManifest,
|
|
70
|
+
]
|
|
71
|
+
else:
|
|
72
|
+
actual_instance: Any
|
|
73
|
+
any_of_schemas: List[str] = Field(MANIFEST1_ANY_OF_SCHEMAS, const=True)
|
|
74
|
+
|
|
75
|
+
class Config:
|
|
76
|
+
validate_assignment = True
|
|
77
|
+
|
|
78
|
+
def __init__(self, *args, **kwargs) -> None:
|
|
79
|
+
if args:
|
|
80
|
+
if len(args) > 1:
|
|
81
|
+
raise ValueError(
|
|
82
|
+
"If a position argument is used, only 1 is allowed to set `actual_instance`"
|
|
83
|
+
)
|
|
84
|
+
if kwargs:
|
|
85
|
+
raise ValueError(
|
|
86
|
+
"If a position argument is used, keyword arguments cannot be used."
|
|
87
|
+
)
|
|
88
|
+
super().__init__(actual_instance=args[0])
|
|
89
|
+
else:
|
|
90
|
+
super().__init__(**kwargs)
|
|
91
|
+
|
|
92
|
+
@validator("actual_instance")
|
|
93
|
+
def actual_instance_must_validate_anyof(cls, v):
|
|
94
|
+
instance = Manifest1.construct()
|
|
95
|
+
error_messages = []
|
|
96
|
+
# validate data type: ModelVersionManifest
|
|
97
|
+
if not isinstance(v, ModelVersionManifest):
|
|
98
|
+
error_messages.append(
|
|
99
|
+
f"Error! Input type `{type(v)}` is not `ModelVersionManifest`"
|
|
100
|
+
)
|
|
101
|
+
else:
|
|
102
|
+
return v
|
|
103
|
+
|
|
104
|
+
# validate data type: ChatPromptManifest
|
|
105
|
+
if not isinstance(v, ChatPromptManifest):
|
|
106
|
+
error_messages.append(
|
|
107
|
+
f"Error! Input type `{type(v)}` is not `ChatPromptManifest`"
|
|
108
|
+
)
|
|
109
|
+
else:
|
|
110
|
+
return v
|
|
111
|
+
|
|
112
|
+
# validate data type: AgentOpenAPIToolManifest
|
|
113
|
+
if not isinstance(v, AgentOpenAPIToolManifest):
|
|
114
|
+
error_messages.append(
|
|
115
|
+
f"Error! Input type `{type(v)}` is not `AgentOpenAPIToolManifest`"
|
|
116
|
+
)
|
|
117
|
+
else:
|
|
118
|
+
return v
|
|
119
|
+
|
|
120
|
+
# validate data type: AgentManifest
|
|
121
|
+
if not isinstance(v, AgentManifest):
|
|
122
|
+
error_messages.append(
|
|
123
|
+
f"Error! Input type `{type(v)}` is not `AgentManifest`"
|
|
124
|
+
)
|
|
125
|
+
else:
|
|
126
|
+
return v
|
|
127
|
+
|
|
128
|
+
# validate data type: ArtifactVersionManifest
|
|
129
|
+
if not isinstance(v, ArtifactVersionManifest):
|
|
130
|
+
error_messages.append(
|
|
131
|
+
f"Error! Input type `{type(v)}` is not `ArtifactVersionManifest`"
|
|
132
|
+
)
|
|
133
|
+
else:
|
|
134
|
+
return v
|
|
135
|
+
|
|
136
|
+
if error_messages:
|
|
137
|
+
# no match
|
|
138
|
+
raise ValueError(
|
|
139
|
+
"No match found when setting the actual_instance in Manifest1 with anyOf schemas: AgentManifest, AgentOpenAPIToolManifest, ArtifactVersionManifest, ChatPromptManifest, ModelVersionManifest. Details: "
|
|
140
|
+
+ ", ".join(error_messages)
|
|
141
|
+
)
|
|
142
|
+
else:
|
|
143
|
+
return v
|
|
144
|
+
|
|
145
|
+
@classmethod
|
|
146
|
+
def from_dict(cls, obj: dict) -> Manifest1:
|
|
147
|
+
return cls.from_json(json.dumps(obj))
|
|
148
|
+
|
|
149
|
+
@classmethod
|
|
150
|
+
def from_json(cls, json_str: str) -> Manifest1:
|
|
151
|
+
"""Returns the object represented by the json string"""
|
|
152
|
+
instance = Manifest1.construct()
|
|
153
|
+
error_messages = []
|
|
154
|
+
# anyof_schema_1_validator: Optional[ModelVersionManifest] = None
|
|
155
|
+
try:
|
|
156
|
+
instance.actual_instance = ModelVersionManifest.from_json(json_str)
|
|
157
|
+
return instance
|
|
158
|
+
except (ValidationError, ValueError) as e:
|
|
159
|
+
error_messages.append(str(e))
|
|
160
|
+
# anyof_schema_2_validator: Optional[ChatPromptManifest] = None
|
|
161
|
+
try:
|
|
162
|
+
instance.actual_instance = ChatPromptManifest.from_json(json_str)
|
|
163
|
+
return instance
|
|
164
|
+
except (ValidationError, ValueError) as e:
|
|
165
|
+
error_messages.append(str(e))
|
|
166
|
+
# anyof_schema_3_validator: Optional[AgentOpenAPIToolManifest] = None
|
|
167
|
+
try:
|
|
168
|
+
instance.actual_instance = AgentOpenAPIToolManifest.from_json(json_str)
|
|
169
|
+
return instance
|
|
170
|
+
except (ValidationError, ValueError) as e:
|
|
171
|
+
error_messages.append(str(e))
|
|
172
|
+
# anyof_schema_4_validator: Optional[AgentManifest] = None
|
|
173
|
+
try:
|
|
174
|
+
instance.actual_instance = AgentManifest.from_json(json_str)
|
|
175
|
+
return instance
|
|
176
|
+
except (ValidationError, ValueError) as e:
|
|
177
|
+
error_messages.append(str(e))
|
|
178
|
+
# anyof_schema_5_validator: Optional[ArtifactVersionManifest] = None
|
|
179
|
+
try:
|
|
180
|
+
instance.actual_instance = ArtifactVersionManifest.from_json(json_str)
|
|
181
|
+
return instance
|
|
182
|
+
except (ValidationError, ValueError) as e:
|
|
183
|
+
error_messages.append(str(e))
|
|
184
|
+
|
|
185
|
+
if error_messages:
|
|
186
|
+
# no match
|
|
187
|
+
raise ValueError(
|
|
188
|
+
"No match found when deserializing the JSON string into Manifest1 with anyOf schemas: AgentManifest, AgentOpenAPIToolManifest, ArtifactVersionManifest, ChatPromptManifest, ModelVersionManifest. Details: "
|
|
189
|
+
+ ", ".join(error_messages)
|
|
190
|
+
)
|
|
191
|
+
else:
|
|
192
|
+
return instance
|
|
193
|
+
|
|
194
|
+
def to_json(self) -> str:
|
|
195
|
+
"""Returns the JSON representation of the actual instance"""
|
|
196
|
+
if self.actual_instance is None:
|
|
197
|
+
return "null"
|
|
198
|
+
|
|
199
|
+
to_json = getattr(self.actual_instance, "to_json", None)
|
|
200
|
+
if callable(to_json):
|
|
201
|
+
return self.actual_instance.to_json()
|
|
202
|
+
else:
|
|
203
|
+
return json.dumps(self.actual_instance)
|
|
204
|
+
|
|
205
|
+
def to_dict(self) -> dict:
|
|
206
|
+
"""Returns the dict representation of the actual instance"""
|
|
207
|
+
if self.actual_instance is None:
|
|
208
|
+
return "null"
|
|
209
|
+
|
|
210
|
+
to_json = getattr(self.actual_instance, "to_json", None)
|
|
211
|
+
if callable(to_json):
|
|
212
|
+
return self.actual_instance.to_dict()
|
|
213
|
+
else:
|
|
214
|
+
# primitive type
|
|
215
|
+
return self.actual_instance
|
|
216
|
+
|
|
217
|
+
def to_str(self) -> str:
|
|
218
|
+
"""Returns the string representation of the actual instance"""
|
|
219
|
+
return pprint.pformat(self.dict())
|
|
@@ -0,0 +1,198 @@
|
|
|
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
|
+
from typing import TYPE_CHECKING, Any, List, Optional, Union
|
|
20
|
+
|
|
21
|
+
from truefoundry.ml.autogen.client.models.agent_manifest import AgentManifest
|
|
22
|
+
from truefoundry.ml.autogen.client.models.agent_open_api_tool_manifest import (
|
|
23
|
+
AgentOpenAPIToolManifest,
|
|
24
|
+
)
|
|
25
|
+
from truefoundry.ml.autogen.client.models.artifact_version_manifest import (
|
|
26
|
+
ArtifactVersionManifest,
|
|
27
|
+
)
|
|
28
|
+
from truefoundry.ml.autogen.client.models.chat_prompt_manifest import ChatPromptManifest
|
|
29
|
+
from truefoundry.pydantic_v1 import (
|
|
30
|
+
BaseModel,
|
|
31
|
+
Field,
|
|
32
|
+
ValidationError,
|
|
33
|
+
validator,
|
|
34
|
+
)
|
|
35
|
+
|
|
36
|
+
MANIFEST2_ANY_OF_SCHEMAS = [
|
|
37
|
+
"AgentManifest",
|
|
38
|
+
"AgentOpenAPIToolManifest",
|
|
39
|
+
"ArtifactVersionManifest",
|
|
40
|
+
"ChatPromptManifest",
|
|
41
|
+
]
|
|
42
|
+
|
|
43
|
+
|
|
44
|
+
class Manifest2(BaseModel):
|
|
45
|
+
"""
|
|
46
|
+
Manifest2
|
|
47
|
+
"""
|
|
48
|
+
|
|
49
|
+
# data type: ChatPromptManifest
|
|
50
|
+
anyof_schema_1_validator: Optional[ChatPromptManifest] = None
|
|
51
|
+
# data type: AgentOpenAPIToolManifest
|
|
52
|
+
anyof_schema_2_validator: Optional[AgentOpenAPIToolManifest] = None
|
|
53
|
+
# data type: AgentManifest
|
|
54
|
+
anyof_schema_3_validator: Optional[AgentManifest] = None
|
|
55
|
+
# data type: ArtifactVersionManifest
|
|
56
|
+
anyof_schema_4_validator: Optional[ArtifactVersionManifest] = None
|
|
57
|
+
if TYPE_CHECKING:
|
|
58
|
+
actual_instance: Union[
|
|
59
|
+
AgentManifest,
|
|
60
|
+
AgentOpenAPIToolManifest,
|
|
61
|
+
ArtifactVersionManifest,
|
|
62
|
+
ChatPromptManifest,
|
|
63
|
+
]
|
|
64
|
+
else:
|
|
65
|
+
actual_instance: Any
|
|
66
|
+
any_of_schemas: List[str] = Field(MANIFEST2_ANY_OF_SCHEMAS, const=True)
|
|
67
|
+
|
|
68
|
+
class Config:
|
|
69
|
+
validate_assignment = True
|
|
70
|
+
|
|
71
|
+
def __init__(self, *args, **kwargs) -> None:
|
|
72
|
+
if args:
|
|
73
|
+
if len(args) > 1:
|
|
74
|
+
raise ValueError(
|
|
75
|
+
"If a position argument is used, only 1 is allowed to set `actual_instance`"
|
|
76
|
+
)
|
|
77
|
+
if kwargs:
|
|
78
|
+
raise ValueError(
|
|
79
|
+
"If a position argument is used, keyword arguments cannot be used."
|
|
80
|
+
)
|
|
81
|
+
super().__init__(actual_instance=args[0])
|
|
82
|
+
else:
|
|
83
|
+
super().__init__(**kwargs)
|
|
84
|
+
|
|
85
|
+
@validator("actual_instance")
|
|
86
|
+
def actual_instance_must_validate_anyof(cls, v):
|
|
87
|
+
instance = Manifest2.construct()
|
|
88
|
+
error_messages = []
|
|
89
|
+
# validate data type: ChatPromptManifest
|
|
90
|
+
if not isinstance(v, ChatPromptManifest):
|
|
91
|
+
error_messages.append(
|
|
92
|
+
f"Error! Input type `{type(v)}` is not `ChatPromptManifest`"
|
|
93
|
+
)
|
|
94
|
+
else:
|
|
95
|
+
return v
|
|
96
|
+
|
|
97
|
+
# validate data type: AgentOpenAPIToolManifest
|
|
98
|
+
if not isinstance(v, AgentOpenAPIToolManifest):
|
|
99
|
+
error_messages.append(
|
|
100
|
+
f"Error! Input type `{type(v)}` is not `AgentOpenAPIToolManifest`"
|
|
101
|
+
)
|
|
102
|
+
else:
|
|
103
|
+
return v
|
|
104
|
+
|
|
105
|
+
# validate data type: AgentManifest
|
|
106
|
+
if not isinstance(v, AgentManifest):
|
|
107
|
+
error_messages.append(
|
|
108
|
+
f"Error! Input type `{type(v)}` is not `AgentManifest`"
|
|
109
|
+
)
|
|
110
|
+
else:
|
|
111
|
+
return v
|
|
112
|
+
|
|
113
|
+
# validate data type: ArtifactVersionManifest
|
|
114
|
+
if not isinstance(v, ArtifactVersionManifest):
|
|
115
|
+
error_messages.append(
|
|
116
|
+
f"Error! Input type `{type(v)}` is not `ArtifactVersionManifest`"
|
|
117
|
+
)
|
|
118
|
+
else:
|
|
119
|
+
return v
|
|
120
|
+
|
|
121
|
+
if error_messages:
|
|
122
|
+
# no match
|
|
123
|
+
raise ValueError(
|
|
124
|
+
"No match found when setting the actual_instance in Manifest2 with anyOf schemas: AgentManifest, AgentOpenAPIToolManifest, ArtifactVersionManifest, ChatPromptManifest. Details: "
|
|
125
|
+
+ ", ".join(error_messages)
|
|
126
|
+
)
|
|
127
|
+
else:
|
|
128
|
+
return v
|
|
129
|
+
|
|
130
|
+
@classmethod
|
|
131
|
+
def from_dict(cls, obj: dict) -> Manifest2:
|
|
132
|
+
return cls.from_json(json.dumps(obj))
|
|
133
|
+
|
|
134
|
+
@classmethod
|
|
135
|
+
def from_json(cls, json_str: str) -> Manifest2:
|
|
136
|
+
"""Returns the object represented by the json string"""
|
|
137
|
+
instance = Manifest2.construct()
|
|
138
|
+
error_messages = []
|
|
139
|
+
# anyof_schema_1_validator: Optional[ChatPromptManifest] = None
|
|
140
|
+
try:
|
|
141
|
+
instance.actual_instance = ChatPromptManifest.from_json(json_str)
|
|
142
|
+
return instance
|
|
143
|
+
except (ValidationError, ValueError) as e:
|
|
144
|
+
error_messages.append(str(e))
|
|
145
|
+
# anyof_schema_2_validator: Optional[AgentOpenAPIToolManifest] = None
|
|
146
|
+
try:
|
|
147
|
+
instance.actual_instance = AgentOpenAPIToolManifest.from_json(json_str)
|
|
148
|
+
return instance
|
|
149
|
+
except (ValidationError, ValueError) as e:
|
|
150
|
+
error_messages.append(str(e))
|
|
151
|
+
# anyof_schema_3_validator: Optional[AgentManifest] = None
|
|
152
|
+
try:
|
|
153
|
+
instance.actual_instance = AgentManifest.from_json(json_str)
|
|
154
|
+
return instance
|
|
155
|
+
except (ValidationError, ValueError) as e:
|
|
156
|
+
error_messages.append(str(e))
|
|
157
|
+
# anyof_schema_4_validator: Optional[ArtifactVersionManifest] = None
|
|
158
|
+
try:
|
|
159
|
+
instance.actual_instance = ArtifactVersionManifest.from_json(json_str)
|
|
160
|
+
return instance
|
|
161
|
+
except (ValidationError, ValueError) as e:
|
|
162
|
+
error_messages.append(str(e))
|
|
163
|
+
|
|
164
|
+
if error_messages:
|
|
165
|
+
# no match
|
|
166
|
+
raise ValueError(
|
|
167
|
+
"No match found when deserializing the JSON string into Manifest2 with anyOf schemas: AgentManifest, AgentOpenAPIToolManifest, ArtifactVersionManifest, ChatPromptManifest. Details: "
|
|
168
|
+
+ ", ".join(error_messages)
|
|
169
|
+
)
|
|
170
|
+
else:
|
|
171
|
+
return instance
|
|
172
|
+
|
|
173
|
+
def to_json(self) -> str:
|
|
174
|
+
"""Returns the JSON representation of the actual instance"""
|
|
175
|
+
if self.actual_instance is None:
|
|
176
|
+
return "null"
|
|
177
|
+
|
|
178
|
+
to_json = getattr(self.actual_instance, "to_json", None)
|
|
179
|
+
if callable(to_json):
|
|
180
|
+
return self.actual_instance.to_json()
|
|
181
|
+
else:
|
|
182
|
+
return json.dumps(self.actual_instance)
|
|
183
|
+
|
|
184
|
+
def to_dict(self) -> dict:
|
|
185
|
+
"""Returns the dict representation of the actual instance"""
|
|
186
|
+
if self.actual_instance is None:
|
|
187
|
+
return "null"
|
|
188
|
+
|
|
189
|
+
to_json = getattr(self.actual_instance, "to_json", None)
|
|
190
|
+
if callable(to_json):
|
|
191
|
+
return self.actual_instance.to_dict()
|
|
192
|
+
else:
|
|
193
|
+
# primitive type
|
|
194
|
+
return self.actual_instance
|
|
195
|
+
|
|
196
|
+
def to_str(self) -> str:
|
|
197
|
+
"""Returns the string representation of the actual instance"""
|
|
198
|
+
return pprint.pformat(self.dict())
|
|
@@ -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,7 +19,7 @@ from aenum import Enum
|
|
|
19
19
|
|
|
20
20
|
class Method(str, Enum):
|
|
21
21
|
"""
|
|
22
|
-
+sort=50 +uiType=Hidden
|
|
22
|
+
+sort=50 +uiType=Hidden +label=API HTTP Method +usage=HTTP Method for the tool call HTTP request
|
|
23
23
|
"""
|
|
24
24
|
|
|
25
25
|
"""
|
|
@@ -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.
|
|
@@ -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.
|
|
@@ -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.
|
|
@@ -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.
|
|
@@ -24,24 +24,24 @@ from truefoundry.pydantic_v1 import BaseModel, Field, StrictStr, constr, validat
|
|
|
24
24
|
|
|
25
25
|
class ModelConfiguration(BaseModel):
|
|
26
26
|
"""
|
|
27
|
-
+label=Model Configuration +icon=fa-cogs:#326ce5 +
|
|
27
|
+
+label=Model Configuration +icon=fa-cogs:#326ce5 +usage=Add a model from Gateway along with parameters to be used for chat completion # noqa: E501
|
|
28
28
|
"""
|
|
29
29
|
|
|
30
30
|
provider: StrictStr = Field(
|
|
31
31
|
default=...,
|
|
32
|
-
description='+label=Provider Name +usage=Name of the provider, must be
|
|
32
|
+
description='+sort=1000 +uiType=SelectModelAndProvider +uiProps={"isModel": false,"providerJsonKey": "model_configuration.provider","searchable": true} +label=Provider Name +usage=Name of the provider, must be one of the integration providers configured for the Gateway',
|
|
33
33
|
)
|
|
34
34
|
model: constr(strict=True) = Field(
|
|
35
35
|
default=...,
|
|
36
|
-
description="+label=Model
|
|
36
|
+
description='+sort=1001 +uiType=SelectModelAndProvider +uiProps={"isModel": true,"providerJsonKey": "model_configuration.provider","searchable": true} +label=Model Name +usage=Name of the model to be used for generations. This model should be available in the provider',
|
|
37
37
|
)
|
|
38
38
|
parameters: Optional[Parameters] = Field(
|
|
39
39
|
default=None,
|
|
40
|
-
description="+
|
|
40
|
+
description="+label=Parameters +usage=Parameters to pass to the model when generating",
|
|
41
41
|
)
|
|
42
42
|
extra_parameters: Optional[Dict[str, Any]] = Field(
|
|
43
43
|
default=None,
|
|
44
|
-
description="+
|
|
44
|
+
description="+label=Extra Parameters +usage=Arbitrary extra parameters to pass to the model when generating",
|
|
45
45
|
)
|
|
46
46
|
__properties = ["provider", "model", "parameters", "extra_parameters"]
|
|
47
47
|
|
|
@@ -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.
|
|
@@ -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.
|
|
@@ -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.
|
|
@@ -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.
|
|
@@ -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.
|
|
@@ -30,16 +30,16 @@ from truefoundry.pydantic_v1 import (
|
|
|
30
30
|
|
|
31
31
|
class ModelVersionEnvironment(BaseModel):
|
|
32
32
|
"""
|
|
33
|
-
+label=Environment # noqa: E501
|
|
33
|
+
+label=Environment +usage=Runtime environment describing python version and dependencies for running the model +uiProps={\"descriptionInline\":true} # noqa: E501
|
|
34
34
|
"""
|
|
35
35
|
|
|
36
36
|
python_version: Optional[constr(strict=True)] = Field(
|
|
37
37
|
default=None,
|
|
38
|
-
description="+label=Python Version +usage=Python version
|
|
38
|
+
description="+label=Python Version +usage=Python version to use when running the model",
|
|
39
39
|
)
|
|
40
40
|
pip_packages: Optional[conlist(StrictStr)] = Field(
|
|
41
41
|
default=None,
|
|
42
|
-
description="+label=PIP Packages +usage=
|
|
42
|
+
description="+label=PIP Packages +usage=pip dependencies needed for running the model",
|
|
43
43
|
)
|
|
44
44
|
__properties = ["python_version", "pip_packages"]
|
|
45
45
|
|