Artifact Models# Artifact Models
artifact
Classes:
-
Artifact–Represents a single artifact piece within a set.
-
ArtifactAffix–Represents an artifact set's bonus effect (2-piece or 4-piece).
-
ArtifactSet–Represents an artifact set summary.
-
ArtifactSetDetail–Represents detailed information about an artifact set.
Artifact
pydantic-model
Represents a single artifact piece within a set.
Attributes:
-
pos(str) –The position or slot of the artifact (e.g., "flower", "plume", "sands", "goblet", "circlet").
-
name(str) –The name of the specific artifact piece.
-
description(str) –The flavor text or description of the artifact piece.
-
max_rarity(int) –The maximum rarity level this artifact piece can have.
-
icon(str) –The icon URL for the artifact piece.
-
story(str | None) –The lore of this artifact piece, None if fetch_story=False.
Fields:
ArtifactAffix
pydantic-model
ArtifactSet
pydantic-model
Represents an artifact set summary.
Attributes:
-
id(int) –The unique ID of the artifact set.
-
name(str) –The name of the artifact set.
-
rarity_list(list[int]) –A list of possible rarity levels for artifacts in this set.
-
affix_list(list[ArtifactAffix]) –A list of the set bonus effects (2-piece and 4-piece).
-
icon(str) –The icon URL representing the artifact set (usually the flower piece).
-
route(str) –The route identifier for the artifact set.
-
sort_order(int) –The sorting order value for the artifact set.
Fields:
-
id(int) -
name(str) -
rarity_list(list[int]) -
affix_list(list[ArtifactAffix]) -
icon(str) -
route(str) -
sort_order(int)
Validators:
-
_convert_icon_url→icon -
_convert_affix_list→affix_list
ArtifactSetDetail
pydantic-model
Represents detailed information about an artifact set.
Attributes:
-
id(int) –The unique ID of the artifact set.
-
name(str) –The name of the artifact set.
-
rarity_list(list[int]) –A list of possible rarity levels for artifacts in this set.
-
affix_list(list[ArtifactAffix]) –A list of the set bonus effects (2-piece and 4-piece).
-
icon(str) –The icon URL representing the artifact set (usually the flower piece).
-
route(str) –The route identifier for the artifact set.
-
artifacts(list[Artifact]) –A list of the individual artifact pieces belonging to this set.
Fields:
-
id(int) -
name(str) -
rarity_list(list[int]) -
affix_list(list[ArtifactAffix]) -
icon(str) -
route(str) -
artifacts(list[Artifact])
Validators:
-
_convert_affix_list→affix_list -
_convert_icon_url→icon -
_convert_artifacts→artifacts