engine.rete.consequents ======================= .. py:module:: engine.rete.consequents .. autoapi-nested-parse:: Scheduled consequents and action instances produced by RETE terminal matches. Classes ------- .. autoapisummary:: engine.rete.consequents.TripleProduction engine.rete.consequents.CallbackSchedule engine.rete.consequents.ContradictionSchedule engine.rete.consequents.ActionInstance Module Contents --------------- .. py:class:: TripleProduction(/, **data: Any) Bases: :py:obj:`pydantic.BaseModel` Declarative logical consequent managed by the engine. Logical rule heads are represented as engine-managed triple production so that fixed-point reasoning and truth-maintenance support remain centralized. .. py:attribute:: model_config Configuration for the model, should be a dictionary conforming to [`ConfigDict`][pydantic.config.ConfigDict]. .. py:attribute:: rule_id :type: engine.proof.RuleId :value: None .. py:attribute:: pattern :type: engine.rules.TriplePattern :value: None .. py:attribute:: required_variables :type: tuple[str, Ellipsis] :value: None .. py:class:: CallbackSchedule(/, **data: Any) Bases: :py:obj:`pydantic.BaseModel` A normalized non-mutating callback scheduled from a completed match. .. py:attribute:: model_config Configuration for the model, should be a dictionary conforming to [`ConfigDict`][pydantic.config.ConfigDict]. .. py:attribute:: callback :type: str :value: None .. py:attribute:: arguments :type: tuple[rdflib.term.Node, Ellipsis] :value: None .. py:attribute:: required_variables :type: tuple[str, Ellipsis] :value: None .. py:class:: ContradictionSchedule(/, **data: Any) Bases: :py:obj:`pydantic.BaseModel` A normalized non-mutating contradiction signal from a completed match. .. py:attribute:: model_config Configuration for the model, should be a dictionary conforming to [`ConfigDict`][pydantic.config.ConfigDict]. .. py:attribute:: category :type: str :value: None .. py:attribute:: detail :type: str | None :value: None .. py:attribute:: arguments :type: tuple[rdflib.term.Node, Ellipsis] :value: None .. py:attribute:: required_variables :type: tuple[str, Ellipsis] :value: None .. py:class:: ActionInstance(/, **data: Any) Bases: :py:obj:`pydantic.BaseModel` Scheduled unit of work derived from a completed match. An action instance may represent logical triple production, an observational callback, a contradiction diagnostic, or a mixed set of scheduled consequences from a single terminal match. .. py:attribute:: model_config Configuration for the model, should be a dictionary conforming to [`ConfigDict`][pydantic.config.ConfigDict]. .. py:attribute:: rule_id :type: engine.proof.RuleId .. py:attribute:: bindings :type: dict[str, rdflib.term.Node] .. py:attribute:: premises :type: tuple[engine.rete.facts.Fact, Ellipsis] :value: () .. py:attribute:: depth :type: int :value: 0 .. py:attribute:: salience :type: int :value: 0 .. py:attribute:: productions :type: tuple[TripleProduction, Ellipsis] :value: () .. py:attribute:: callbacks :type: tuple[CallbackSchedule, Ellipsis] :value: () .. py:attribute:: contradictions :type: tuple[ContradictionSchedule, Ellipsis] :value: () .. py:attribute:: silent :type: bool :value: False .. py:attribute:: bootstrap :type: bool :value: False .. py:property:: kind :type: Literal['production', 'callback', 'contradiction', 'mixed', 'empty'] Classify the scheduled consequence kinds present on this action.