Skip to content

Commit c0da51c

Browse files
authored
Merge pull request #26 from WorkflowAI/yann/wor-2997-add-labels-support-to-the-sdk
Add label support for the run endpoint
2 parents afd3619 + 6c929fc commit c0da51c

File tree

3 files changed

+4
-1
lines changed

3 files changed

+4
-1
lines changed

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[tool.poetry]
22
name = "workflowai"
3-
version = "0.5.2"
3+
version = "0.5.3"
44
description = ""
55
authors = ["Guillaume Aquilina <guillaume@workflowai.com>"]
66
readme = "README.md"

workflowai/core/client/_models.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,8 @@ class RunRequest(BaseModel):
2020

2121
metadata: Optional[dict[str, Any]] = None
2222

23+
labels: Optional[set[str]] = None # deprecated, to be included in metadata
24+
2325
private_fields: Optional[set[str]] = None
2426

2527
stream: Optional[bool] = None

workflowai/core/client/client.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,7 @@ async def run(
9595
stream=stream,
9696
use_cache=kwargs.get("use_cache"),
9797
metadata=kwargs.get("metadata"),
98+
labels=kwargs.get("labels"),
9899
)
99100

100101
route = f"/v1/_/tasks/{task.id}/schemas/{task.schema_id}/run"

0 commit comments

Comments
 (0)