elm.ords.validation.location.FixedMessageValidator

class FixedMessageValidator(structured_llm_caller)[source]

Bases: ABC

Validation base class using a static system prompt.

Parameters:

structured_llm_caller (elm.ords.llm.StructuredLLMCaller) – StructuredLLMCaller instance. Used for structured validation queries.

Methods

check(content, **fmt_kwargs)

Check if the content passes the validation.

Attributes

SYSTEM_MESSAGE

LLM system message describing validation task.

SYSTEM_MESSAGE = None

LLM system message describing validation task.

async check(content, **fmt_kwargs)[source]

Check if the content passes the validation.

The exact validation is outlined in the class SYSTEM_MESSAGE.

Parameters:
  • content (str) – Document content to validate.

  • **fmt_kwargs – Keyword arguments to be passed to SYSTEM_MESSAGE.format().

Returns:

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