create_relations
Define and link entities within a knowledge graph by creating multiple relationships, specifying the origin, destination, and type of each connection.
Instructions
Create multiple new relations between entities in the knowledge graph. Relations should be in active voice
Input Schema
Name | Required | Description | Default |
---|---|---|---|
relations | Yes |
Input Schema (JSON Schema)
{
"properties": {
"relations": {
"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"
}