ai_api_client_sdk.models.artifact module¶
- class ai_api_client_sdk.models.artifact.Artifact(name: str, id: str, url: str, kind: Kind, scenario_id: str, created_at: datetime, modified_at: datetime, execution_id: str = None, configuration_id: str = None, description: str = None, labels: List[Label] = None, scenario: Scenario = None, **kwargs)¶
Bases:
objectThe Artifact object defines an artifact
- Parameters:
name (str) – Name of the artifact
id (str) – ID of the artifact
url (str) – URL of the artifact
kind (class:ai_api_client_sdk.models.artifact.Artifact.Kind) – Kind of the artifact
scenario_id (str) – ID of the scenario which the artifact belongs to
created_at (datetime) – Time when the artifact was created
modified_at (datetime) – Time when the artifact was last modified
execution_id (str, optional) – ID of the execution which the artifact resulted from, defaults to None
configuration_id (str, optional) – ID of the configuration which the artifact relates to, defaults to None
description (str, optional) – Description of the artifact, defaults to None
labels (List[class:ai_api_client_sdk.models.label.Label]) – List of the labels of the artifact, defaults to None
scenario (class:ai_api_client_sdk.models.scenario.Scenario, optional) – A dict, which gives detailed information on scenario, defaults to None
**kwargs – The keyword arguments are there in case there are additional attributes returned from server
- class Kind(*values)¶
Bases:
Enum- MODEL = 'model'¶
- DATASET = 'dataset'¶
- RESULTSET = 'resultset'¶
- OTHER = 'other'¶
- __init__(name: str, id: str, url: str, kind: Kind, scenario_id: str, created_at: datetime, modified_at: datetime, execution_id: str = None, configuration_id: str = None, description: str = None, labels: List[Label] = None, scenario: Scenario = None, **kwargs)¶
- static from_dict(artifact_dict: Dict[str, Any])¶
Returns a
ai_api_client_sdk.models.artifact.Artifactobject, created from the values in the dict provided as parameter- Parameters:
artifact_dict (Dict[str, Any]) – Dict which includes the necessary values to create the object
- Returns:
An object, created from the values provided
- Return type:
class:ai_api_client_sdk.models.artifact.Artifact