set_relation
Add or remove a typed relation between two existing knowledge entries, optionally resolving a pending reference; superseded relations are closed but remain readable.
Instructions
Add or remove a typed relation between two existing entries, optionally resolving a matching pending reference. When adding, valid_from and valid_until record when the assertion holds in the world, and supersedes names the target of the same-predicate relation this one replaces from valid_from on. The replaced relation stays stored and readable; it is closed, not deleted.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | ||
| action | Yes | ||
| predicate | Yes | ||
| target_id | Yes | ||
| supersedes | No | ||
| valid_from | No | ||
| valid_until | No | ||
| expected_revision | Yes | ||
| resolve_reference | No |