You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- Add ambiguous field to ElementMatch so LLM can flag when multiple elements
match equally well (e.g. multiple Like buttons in a feed)
- Raise ElementNotFoundError with all candidates and positions when ambiguous
- Include full element details in error for index=-1 path
- Update element_matcher prompt to teach LLM about ambiguous flag
ambiguous: bool=Field(default=False, description="True if multiple elements match equally well and you cannot confidently pick one (e.g. multiple Like buttons in a feed)")
80
81
reasoning: str=Field(..., description="Why this element matches, or why no match was found")
81
82
alternatives: Optional[List[int]] =Field(default=None, description="List of alternative element indices that might match (if no exact match)")
0 commit comments