Skip to content

Commit 63e8455

Browse files
feat(api): add level field to ILGS v1 segments
1 parent b30f176 commit 63e8455

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

.stats.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
configured_endpoints: 5
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/isaacus%2Fisaacus-fa910a5a3d1321234423bd8c042d202a64d4d956ef45847b4de358cb18e447eb.yml
3-
openapi_spec_hash: 926b9b619c15e8570e496e11d4fb753e
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/isaacus%2Fisaacus-eb64c01e148bcb3f02d717248b3e1ff4f554779928ae52a689c1c73bafee470d.yml
3+
openapi_spec_hash: 167ee6ce237a5f0d28d99411bc4dc920
44
config_hash: b2d6fd9ef31cd192d6abb7fceb12e578

src/isaacus/types/ilgs/ilgs_v1_document.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -202,6 +202,12 @@ class Segment(BaseModel):
202202
a non-negative incrementing integer starting from zero.
203203
"""
204204

205+
level: int
206+
"""
207+
The level of the segment within the document's segment hierarchy starting from
208+
`0` for root-level segments.
209+
"""
210+
205211
span: ILGSv1Span
206212
"""A zero-based, half-open span into the Unicode code point space of input text.
207213

0 commit comments

Comments
 (0)