Skip to content
YosoiDocs

Locator

yosoi.locators.Locator

class Locator(ImmutableModel):

Query intent paired with an explicit supported projection.

Attributes: query: Query operation and optional repeated-region scope. projection: text, attribute, value, node, name, or captures determines emitted evidence. attribute: Attribute name required for attribute projection, otherwise None. captures: Named regex capture selections; Rust checks projection compatibility.

Source: python/yosoi/locators.py:505

Members below are declared on this class. Inherited Pydantic methods and generated constructor signatures are not expanded.

query: Query
projection: ProjectionKind
attribute: str | None = None
captures: tuple[str, ...] = ()