End a relation
end_relationMark a relation as no longer true by setting its end date.
The relation stays in history (query_world_model with
aspect="historical_state") and no longer appears in the current state.
Fails if the relation is already closed or if valid_until is earlier than
its start date. For works_for, reports_to and located_in changing to a new
target, relate_entities with supersede_previous=True closes the previous
one instead.
Args:
relation_id: Relation id (from query_world_model or
get_entity_relations).
valid_until: ISO 8601 date from which it stopped being true.
evidence_ref: Required source for the change (URL, person, document,
or episode id).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| relation_id | Yes | ||
| valid_until | Yes | ||
| evidence_ref | Yes |