Skip to content
docs
Arxo ↗

LDC-Q4005 — The predicate is applied to the wrong number of arguments

For LLMs5 sections

A declared predicate takes a fixed number of arguments, and every use must supply exactly that many: fewer leaves a participant unnamed, more adds one the declaration never defined. When the count differs, the engine stops and reports both numbers — how many the declaration takes and how many the question gave.

Adjust the argument list to the declared count. The predicate name and the surrounding question stay as written.

LawQL
query q over "demo.diagnostics" { for x: Applicant; where resident(x); select resident(x, x); }
LawQL
from r in rules select r

The engine reports this in its own wording:

Output
LDC-Q4005: resident: expected 1 args, got 2.

Documentation for Arxo. Writings — blog.arxo.io.

Anonymous visit counts on stats.arxo.io, no cookies.