Package com.anthropic.models.messages
Interface BrowserClickTarget.Visitor
-
- All Implemented Interfaces:
public interface BrowserClickTarget.Visitor<T extends Object>An interface that defines how to map each variant of BrowserClickTarget to a value of type T.
-
-
Method Summary
Modifier and Type Method Description abstract TvisitCoordinate(BrowserCoordinateTarget coordinate)A point in the browser viewport, in viewport pixels (the same frame as a full-viewport screenshot). abstract TvisitRef(BrowserRefTarget ref)An element on the page, identified by a reference from a prior read_pageorfindresult.Tunknown(JsonValue json)Maps an unknown variant of BrowserClickTarget to a value of type T. -
-
Method Detail
-
visitCoordinate
abstract T visitCoordinate(BrowserCoordinateTarget coordinate)
A point in the browser viewport, in viewport pixels (the same frame as a full-viewport screenshot).
-
visitRef
abstract T visitRef(BrowserRefTarget ref)
An element on the page, identified by a reference from a prior
read_pageorfindresult. References are scoped to the tab that produced them and become stale after navigation or a major re-render.
-
unknown
T unknown(JsonValue json)
Maps an unknown variant of BrowserClickTarget to a value of type T.
An instance of BrowserClickTarget can contain an unknown variant if it was deserialized from data that doesn't match any known variant. For example, if the SDK is on an older version than the API, then the API may respond with new variants that the SDK is unaware of.
-
-
-
-