delete_relations
Remove specified relationships between entities in a knowledge graph to maintain accurate and relevant data connections. Supports optional memory zone targeting for precise deletions.
Instructions
Delete relationships from knowledge graph (memory)
Input Schema
Name | Required | Description | Default |
---|---|---|---|
memory_zone | No | Optional memory zone specifier. If provided, relations will be deleted from this zone. | |
relations | Yes | List of relations to delete |
Input Schema (JSON Schema)
{
"$schema": "http://json-schema.org/draft-07/schema#",
"additionalProperties": false,
"properties": {
"memory_zone": {
"description": "Optional memory zone specifier. If provided, relations will be deleted from this zone.",
"type": "string"
},
"relations": {
"description": "List of relations to delete",
"items": {
"properties": {
"from": {
"description": "Source entity name",
"type": "string"
},
"to": {
"description": "Target entity name",
"type": "string"
},
"type": {
"description": "Relationship type",
"type": "string"
}
},
"required": [
"from",
"to",
"type"
],
"type": "object"
},
"type": "array"
}
},
"required": [
"relations"
],
"type": "object"
}