frompathlibimportPathfromtypingimportAnnotatedfromhera.workflowsimport(Artifact,ArtifactLoader,Parameter,Steps,Workflow,script,)@script(constructor="runner")defoutput_artifact(a_number:Annotated[int,Parameter(name="a_number")],)->Annotated[int,Artifact(name="successor_out")]:returna_number+1@script(constructor="runner")defuse_artifact(successor_in:Annotated[int,Artifact(name="successor_in",path="/my-path",loader=ArtifactLoader.json),],):print(successor_in)print(Path("/my-path").read_text())# if you still need the actual path, it is still mounted where you specifywithWorkflow(generate_name="annotations-artifact-passing",entrypoint="my-steps",)asw:withSteps(name="my-steps")ass:out=output_artifact(arguments={"a_number":3})use_artifact(arguments=[out.get_artifact("successor_out").with_name("successor_in")])