Python

Limits

Limits class and public members in the unified Python API.

Class: Limits

Python · dataclassSince v0.10.0
Limitsfrozen=True
Immutable 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.limits

    Read 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.
Example
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

Usage guides