Files
lda-wf/src/wf_api/artifact_refs.py
T
lda Verified 69de023a89 organize the Helper Functions
those who make the program. the helper functions. they deserve better Ahh
2026-06-02 03:17:50 +07:00

14 lines
379 B
Python

from __future__ import annotations
from wf_artifacts import WorkflowArtifact, WorkflowCapabilityRef
def artifact_capability_id(artifact: WorkflowArtifact) -> str:
"""Return the stable workflow capability name for a saved artifact."""
return str(
WorkflowCapabilityRef(
artifact_id=artifact.id,
version=artifact.version,
)
)