forget¶
Makes the system forget either one proposition or all propositions of a predicate. The target is removed from private beliefs and shared commitments.
<forget predicate="colour"/>
<forget>
<proposition predicate="means_of_transport" value="train"/>
</forget>
<forget>
<action_status action="book_room" status="done"/>
</forget>
The action_status child requires Tala 31.3.0 or later. Verify that the DME deployment uses a compatible Tala version before deploying a DDD with this form.
Attributes and children¶
| Attribute | Meaning |
|---|---|
predicate | Optional predicate whose propositions should be forgotten. |
With predicate and no child, all propositions for that predicate are forgotten. Alternatively, provide one proposition or action_status child to forget a particular fact. Use one form at a time. The action in an action_status child must be declared in the ontology.
Placement and examples¶
Can appear in a plan, postplan, or conditional branch. To clear all colour values:
Use forget_shared to remove a fact from shared commitments while leaving private beliefs unchanged. Use forget_all to clear private beliefs and current shared commitments and put the top goal back on the goals stack; it is not a complete session reset.