update_relations
Modify multiple relationships in the knowledge graph by specifying source, target, and relationship type to ensure accurate and updated entity connections.
Instructions
Update multiple existing relations in the knowledge graph
Input Schema
Name | Required | Description | Default |
---|---|---|---|
relations | Yes | Array of relations to update |
Input Schema (JSON Schema)
{
"$schema": "http://json-schema.org/draft-07/schema#",
"additionalProperties": false,
"properties": {
"relations": {
"description": "Array of relations to update",
"items": {
"additionalProperties": false,
"properties": {
"from": {
"description": "Source entity name",
"minLength": 1,
"type": "string"
},
"relationType": {
"description": "Type of relationship (in active voice)",
"minLength": 1,
"type": "string"
},
"to": {
"description": "Target entity name",
"minLength": 1,
"type": "string"
}
},
"required": [
"from",
"to",
"relationType"
],
"type": "object"
},
"type": "array"
}
},
"required": [
"relations"
],
"type": "object"
}