ExtractAction (#1632)

This commit is contained in:
Shuchang Zheng 2025-01-24 16:21:26 +08:00 committed by GitHub
parent 1c2425171f
commit b62a6fec23
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
10 changed files with 150 additions and 25 deletions

View file

@ -1693,7 +1693,9 @@ class WorkflowService:
raise ValueError(f"Invalid block type {block_yaml.block_type}")
async def create_empty_workflow(self, organization: Organization, title: str) -> Workflow:
async def create_empty_workflow(
self, organization: Organization, title: str, proxy_location: ProxyLocation | None = None
) -> Workflow:
"""
Create a blank workflow with no blocks
"""
@ -1704,6 +1706,7 @@ class WorkflowService:
parameters=[],
blocks=[],
),
proxy_location=proxy_location,
)
return await app.WORKFLOW_SERVICE.create_workflow_from_request(
organization=organization,