Add TaskRunResponse data to task v2 webhook (#2444)
This commit is contained in:
@@ -72,6 +72,7 @@ from skyvern.forge.sdk.workflow.models.workflow import (
|
||||
WorkflowStatus,
|
||||
)
|
||||
from skyvern.forge.sdk.workflow.models.yaml import WorkflowCreateYAMLRequest
|
||||
from skyvern.schemas.artifacts import EntityType, entity_type_to_param
|
||||
from skyvern.schemas.runs import (
|
||||
CUA_ENGINES,
|
||||
RunEngine,
|
||||
@@ -89,23 +90,6 @@ from skyvern.webeye.actions.actions import Action
|
||||
LOG = structlog.get_logger()
|
||||
|
||||
|
||||
class EntityType(str, Enum):
|
||||
STEP = "step"
|
||||
TASK = "task"
|
||||
WORKFLOW_RUN = "workflow_run"
|
||||
WORKFLOW_RUN_BLOCK = "workflow_run_block"
|
||||
THOUGHT = "thought"
|
||||
|
||||
|
||||
entity_type_to_param = {
|
||||
EntityType.STEP: "step_id",
|
||||
EntityType.TASK: "task_id",
|
||||
EntityType.WORKFLOW_RUN: "workflow_run_id",
|
||||
EntityType.WORKFLOW_RUN_BLOCK: "workflow_run_block_id",
|
||||
EntityType.THOUGHT: "thought_id",
|
||||
}
|
||||
|
||||
|
||||
class AISuggestionType(str, Enum):
|
||||
DATA_SCHEMA = "data_schema"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user