Skip to content

Commit 52c7232

Browse files
authored
Merge pull request #157 from SentienceAPI/nearby_text
nearby_text
2 parents 649f3dd + d750883 commit 52c7232

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

sentience/models.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ class VisualCues(BaseModel):
3131

3232
is_primary: bool
3333
background_color_name: str | None = None
34+
fallback_background_color_name: str | None = None
3435
is_clickable: bool
3536

3637

@@ -66,6 +67,9 @@ class Element(BaseModel):
6667
# Hyperlink URL (for link elements)
6768
href: str | None = None
6869

70+
# Nearby static text (best-effort, usually only for top-ranked elements)
71+
nearby_text: str | None = None
72+
6973
# ===== v1 state-aware assertion fields (optional) =====
7074
# Best-effort accessible name/label for controls (distinct from visible text)
7175
name: str | None = None

0 commit comments

Comments
 (0)