← Všetky dokumenty

    Overiť odpoveď

    What it does

    verify_answer checks an answer the calling AI has drafted before it's shown to the user. It runs three checks:

    1. Existence — every citation-shaped substring in the answer is checked against the Slovak corpus to confirm it resolves to a real document.
    2. Provenance — the receipt values returned by earlier calls to Search Slovak Legislation, Search Slovak Case Law, Get Legal Provision, or Validate citation are checked to confirm the cited documents actually came from Lexomat, not from the model's own memory.
    3. Uncited legal claims — the answer text is scanned for authoritative Slovak legal phrasing that isn't backed by a citation.

    Like every tool in this connector, it is read-only, covers Slovak law only, and its output is informational, not legal advice.

    Inputs

    NameTypeRequiredDescription
    answerstringYesThe drafted answer text to verify.
    receiptslist of stringsNoReceipt tokens collected from earlier tool calls, used for the provenance check.

    Returns

    {
      "status": "...",
      "citations": [{ "...": "..." }],
      "verified_count": 0,
      "unverified_count": 0,
      "provenance_checked": true,
      "uncited_legal_claims": ["..."],
      "uncited_claims_scan": "..."
    }
    

    status is one of all_citations_found, unverified_citations_present, or no_citations_detected.

    Example

    After drafting an answer that cites, say, 311/2001 Z. z. and a court decision, the calling AI calls verify_answer with the drafted answer text and the receipts collected from the Search Slovak Legislation / Search Slovak Case Law / Get Legal Provision / Validate citation calls it made along the way — confirming every citation is real, actually came from Lexomat, and that no uncited legal claims slipped through before the answer is shown to the user.

    Notes

    • Deterministic (no LLM), debits your monthly corpus quota (see Usage limits).
    • The provenance check requires receipts. If the server's receipt signing key is unset, receipts may be absent from earlier tool calls, in which case provenance checking is skipped.