From 0f139d3ae1ccc0c026f08446f50f74acd4b53cf2 Mon Sep 17 00:00:00 2001 From: Shuchang Zheng Date: Wed, 13 Nov 2024 01:05:21 +0000 Subject: [PATCH] =?UTF-8?q?=F0=9F=94=84=20synced=20local=20'skyvern/'=20wi?= =?UTF-8?q?th=20remote=20'skyvern/'?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit > [!IMPORTANT] > Default task title changed to empty string, using label if title is empty in `TaskBlock` and `TaskBlockYAML`. > > - **Behavior**: > - In `agent.py`, `create_task_and_step_from_block()` now uses `task_block.label` if `task_block.title` is empty. > - **Models**: > - In `block.py`, `TaskBlock` default `title` changed from "Untitled Task" to an empty string. > - In `yaml.py`, `TaskBlockYAML` default `title` changed from "Untitled Task" to an empty string. > > This description was created by [Ellipsis](https://www.ellipsis.dev?ref=Skyvern-AI%2Fskyvern-cloud&utm_source=github&utm_medium=referral) for 0f4f66b817165e2cfafe3f8415b79176e52e3854. It will automatically update as commits are pushed. --- skyvern/forge/agent.py | 2 +- skyvern/forge/sdk/workflow/models/block.py | 2 +- skyvern/forge/sdk/workflow/models/yaml.py | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/skyvern/forge/agent.py b/skyvern/forge/agent.py index 01497bf24..0d5912ad0 100644 --- a/skyvern/forge/agent.py +++ b/skyvern/forge/agent.py @@ -131,7 +131,7 @@ async def create_task_and_step_from_block( task_url = validate_url(task_url) task = await app.DATABASE.create_task( url=task_url, - title=task_block.title, + title=task_block.title or task_block.label, webhook_callback_url=None, totp_verification_url=task_block.totp_verification_url, totp_identifier=task_block.totp_identifier, diff --git a/skyvern/forge/sdk/workflow/models/block.py b/skyvern/forge/sdk/workflow/models/block.py index ccaf71bcf..318a08218 100644 --- a/skyvern/forge/sdk/workflow/models/block.py +++ b/skyvern/forge/sdk/workflow/models/block.py @@ -170,7 +170,7 @@ class TaskBlock(Block): block_type: Literal[BlockType.TASK] = BlockType.TASK url: str | None = None - title: str = "Untitled Task" + title: str = "" navigation_goal: str | None = None data_extraction_goal: str | None = None data_schema: dict[str, Any] | list | None = None diff --git a/skyvern/forge/sdk/workflow/models/yaml.py b/skyvern/forge/sdk/workflow/models/yaml.py index 2a989b150..fbe431b44 100644 --- a/skyvern/forge/sdk/workflow/models/yaml.py +++ b/skyvern/forge/sdk/workflow/models/yaml.py @@ -117,7 +117,7 @@ class TaskBlockYAML(BlockYAML): block_type: Literal[BlockType.TASK] = BlockType.TASK # type: ignore url: str | None = None - title: str = "Untitled Task" + title: str = "" navigation_goal: str | None = None data_extraction_goal: str | None = None data_schema: dict[str, Any] | list | None = None