Support skyvern.upload_file (#3424)

This commit is contained in:
Shuchang Zheng
2025-09-12 13:01:17 -07:00
committed by GitHub
parent dde6837df8
commit 012aec0cd5
2 changed files with 3 additions and 1 deletions

View File

@@ -44,6 +44,7 @@ from skyvern.services.script_service import ( # noqa: E402
run_script, # noqa: E402
run_task, # noqa: E402
send_email, # noqa: E402
upload_file, # noqa: E402
wait, # noqa: E402
) # noqa: E402
@@ -68,6 +69,7 @@ __all__ = [
"run_task",
"send_email",
"setup",
"upload_file",
"wait",
"workflow",
]

View File

@@ -1479,7 +1479,7 @@ async def upload_file(
label=block_validation_output.label,
output_parameter=block_validation_output.output_parameter,
parameters=parameters or [],
storage_type=storage_type,
storage_type=FileStorageType(storage_type),
s3_bucket=s3_bucket,
aws_access_key_id=aws_access_key_id,
aws_secret_access_key=aws_secret_access_key,