Automate browser based workflows with AI
Python aiapiautomationbrowserbrowser-automationcomputergptllmplaywrightpowerautomatepuppeteerpythonrpaseleniumvisionworkflow
add taskv2 and task id to artifacts by default if present in context (#2770)
Shuchang Zheng20c495089a7b
diff --git a/skyvern/forge/sdk/artifact/manager.py b/skyvern/forge/sdk/artifact/manager.pyindex 38cd225c0..956627789 100644--- a/skyvern/forge/sdk/artifact/manager.py+++ b/skyvern/forge/sdk/artifact/manager.py@@ -42,11 +42,13 @@ class ArtifactManager:if data and path:raise ValueError("Both data and path cannot be provided to create an artifact.")- if not workflow_run_id:- context = skyvern_context.current()-- if context:- workflow_run_id = context.workflow_run_id+ context = skyvern_context.current()+ if not workflow_run_id and context:+ workflow_run_id = context.workflow_run_id+ if not task_v2_id and context:+ task_v2_id = context.task_v2_id+ if not task_id and context:+ task_id = context.task_idartifact = await app.DATABASE.create_artifact(artifact_id,