예제 #1
0
def update_link(task_run_artifact_id: str, link: str) -> None:
    """
    Update an existing link artifact. This function will replace the current link
    artifact with the new link provided.

    Args:
        - task_run_artifact_id (str): the ID of an existing task run artifact
        - link (str): the new link to update the artifact with
    """
    if not _running_with_backend():
        return

    client = Client()
    client.update_task_run_artifact(task_run_artifact_id=task_run_artifact_id,
                                    data={"link": link})
예제 #2
0
def update_markdown(task_run_artifact_id: str, markdown: str) -> None:
    """
    Update an existing markdown artifact. This function will replace the current markdown
    artifact with the new markdown provided.

    Args:
        - task_run_artifact_id (str): the ID of an existing task run artifact
        - markdown (str): the new markdown to update the artifact with
    """
    if not _running_with_backend():
        return

    client = Client()
    client.update_task_run_artifact(task_run_artifact_id=task_run_artifact_id,
                                    data={"markdown": markdown})
예제 #3
0
def update_markdown(task_run_artifact_id: str, markdown: str) -> None:
    """
    Update an existing markdown artifact. This function will replace the current markdown
    artifact with the new markdown provided.

    Note: The functionality here is experimental, and may change between
    versions without notice. Use at your own risk.

    Args:
        - task_run_artifact_id (str): the ID of an existing task run artifact
        - markdown (str): the new markdown to update the artifact with
    """
    if not _running_with_backend():
        return

    client = Client()
    client.update_task_run_artifact(task_run_artifact_id=task_run_artifact_id,
                                    data={"markdown": markdown})