compass.validation.location.DTreeJurisdictionValidator#

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

Bases: BaseLLMCaller

Jurisdiction Validation using a decision tree

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

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

Methods

check(content)

Check if the content passes the validation

Attributes

META_SCORE_KEY

SYSTEM_MESSAGE

async check(content)[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.