delete_relations
Remove specified relationships from a knowledge graph by providing an array of relations with their start entity, end entity, and relation type.
Instructions
Delete multiple relations from the knowledge graph
Input Schema
Name | Required | Description | Default |
---|---|---|---|
relations | Yes | An array of relations to delete |
Input Schema (JSON Schema)
{
"properties": {
"relations": {
"description": "An array of relations to delete",
"items": {
"properties": {
"from": {
"description": "The name of the entity where the relation starts",
"type": "string"
},
"relationType": {
"description": "The type of the relation",
"type": "string"
},
"to": {
"description": "The name of the entity where the relation ends",
"type": "string"
}
},
"required": [
"from",
"to",
"relationType"
],
"type": "object"
},
"type": "array"
}
},
"required": [
"relations"
],
"type": "object"
}