ElementRetrieverTrailblazeTool

@Serializable
data class ElementRetrieverTrailblazeTool(val identifier: String, val locatorType: ElementRetrieverTrailblazeTool.LocatorType, val value: String, val index: Int = 0, val success: Boolean = true, val reason: String = "") : TrailblazeTool

Command to retrieve a selector for an element based on the description. This command is specifically used by the TrailblazeElementComparator.

Note: The locator itself doesn't need to describe the element - it just needs to correctly point to the element that matches the description. The locator will be used to find the actual text/element later.

Constructors

Link copied to clipboard
constructor(identifier: String, locatorType: ElementRetrieverTrailblazeTool.LocatorType, value: String, index: Int = 0, success: Boolean = true, reason: String = "")

Types

Link copied to clipboard
@Serializable
data class LocatorResponse(val success: Boolean, val locatorType: ElementRetrieverTrailblazeTool.LocatorType?, val value: String?, val index: Int?, val reason: String)

Represents the response from LLM when identifying a UI element locator.

Link copied to clipboard

Types of locators in order of preference.

Properties

Link copied to clipboard
Link copied to clipboard
val index: Int = 0
Link copied to clipboard
Link copied to clipboard
val success: Boolean = true
Link copied to clipboard

Functions

Link copied to clipboard
fun TrailblazeTool.getToolNameFromAnnotation(): String