compass.validation.location.DTreeURLJurisdictionValidator#

class DTreeURLJurisdictionValidator(jurisdiction, **kwargs)[source]#

Bases: BaseLLMCaller

Validator that checks whether a URL matches a jurisdiction

Parameters:
  • structured_llm_caller (StructuredLLMCaller) – StructuredLLMCaller instance. Used for structured validation queries.

  • **kwargs – Additional keyword arguments to pass to the BaseLLMCaller instance.

Methods

check(url)

Check if the content passes the validation

Attributes

SYSTEM_MESSAGE

async check(url)[source]#

Check if the content passes the validation

Parameters:

content (str) – Document content to validate.

Returns:

boolTrue if the content passes the validation check, False otherwise.