Python
Limits
Limits class and public members in the unified Python API.Class: Limits
Python · dataclassSince v0.10.0
Limitsfrozen=TrueImmutable capacity snapshot. Its fields describe the loaded native profile, not available remaining space.
Creation and access
Internal constructor — do not call. Snapshot read from Engine.limits; direct construction does not describe the loaded native profile.
- read from
engine.limitsRead the immutable limits of the selected engine profile.
Fields
max_ symbolsintproperty
Maximum distinct symbols in the engine symbol table.
string_ pool_ bytesintproperty
Byte capacity of the engine symbol-text pool.
max_ predicatesintproperty
Maximum declared predicates.
max_ rulesintproperty
Maximum compiled rules.
max_ arityintproperty
Maximum number of terms in a predicate.
max_ body_ literalsintproperty
Maximum body literals per rule.
max_ depthintproperty
Maximum configured derivation depth.
max_ edb_ factsintproperty
Maximum input entries; counted before deduplication.
max_ idb_ factsintproperty
Maximum derived facts.
max_ facts_ per_ predintproperty
Maximum facts retained for one predicate.
max_ string_ bytesintproperty
Maximum UTF-8 bytes in one input string.
input_ edb_ text_ bytesintproperty
Default and maximum byte capacity for owned input EDB text.
max_ policy_ atomsintSince v0.16.0property
Maximum declared policy-source atoms.
max_ policy_ atom_ bytesintSince v0.16.0property
Maximum UTF-8 bytes across policy atoms, excluding NUL terminators.
print("max_edb_facts:", engine.limits.max_edb_facts)
print("input_edb_text_bytes:", engine.limits.input_edb_text_bytes)
print("max_policy_atoms:", engine.limits.max_policy_atoms)max_edb_facts: 1024 input_edb_text_bytes: 40960 max_policy_atoms: 256