Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
32 changes: 19 additions & 13 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion reference.md
Original file line number Diff line number Diff line change
Expand Up @@ -11388,7 +11388,7 @@ client.tasks.update(

**Core Annotation Events:**
- `annotation_loaded` - When annotation interface is loaded
- `annotation_submitted` - When annotation is submitted
- `annotation_created` - When annotation is submitted
- `annotation_updated` - When annotation is modified
- `annotation_reviewed` - When annotation is reviewed

Expand Down
4 changes: 2 additions & 2 deletions src/label_studio_sdk/tasks/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -698,7 +698,7 @@ def create_event(

**Core Annotation Events:**
- `annotation_loaded` - When annotation interface is loaded
- `annotation_submitted` - When annotation is submitted
- `annotation_created` - When annotation is submitted
- `annotation_updated` - When annotation is modified
- `annotation_reviewed` - When annotation is reviewed

Expand Down Expand Up @@ -1589,7 +1589,7 @@ async def create_event(

**Core Annotation Events:**
- `annotation_loaded` - When annotation interface is loaded
- `annotation_submitted` - When annotation is submitted
- `annotation_created` - When annotation is submitted
- `annotation_updated` - When annotation is modified
- `annotation_reviewed` - When annotation is reviewed

Expand Down
6 changes: 6 additions & 0 deletions src/label_studio_sdk/types/lse_task.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,12 @@ class LseTask(UncheckedBaseModel):
Whether this task can be skipped. Set to False to make task unskippable.
"""

annotation_time: typing.Optional[int] = pydantic.Field(default=None)
"""
Calculate total annotation time for this task from MetricInTimeBucket records.
Returns time in seconds.
"""

annotations: typing.Optional[str] = None
annotations_ids: typing.Optional[str] = None
annotations_results: typing.Optional[str] = None
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,12 @@ class LseTaskSerializerForReviewers(UncheckedBaseModel):
Whether this task can be skipped. Set to False to make task unskippable.
"""

annotation_time: typing.Optional[int] = pydantic.Field(default=None)
"""
Calculate total annotation time for this task from MetricInTimeBucket records.
Returns time in seconds.
"""

annotations: typing.Optional[str] = None
annotations_ids: typing.Optional[str] = None
annotations_results: typing.Optional[str] = None
Expand Down
Loading