from promptflow import tool
import time


@tool
def passthrough_str_and_wait_sync(input1: str, wait_seconds=3) -> str:
    assert isinstance(input1, str), f"input1 should be a string, got {input1}"
    print(f"Wait for {wait_seconds} seconds in sync function")
    for i in range(wait_seconds):
        print(i)
        time.sleep(1)
    return input1
