create_entities
Add and initialize entities in Memento's knowledge graph, ensuring uniqueness and optionally attaching initial observations for each entity.
Instructions
Create entities in the knowledge graph. Inserts each entity if not exists and optionally seeds it with observations.
Input Schema
Name | Required | Description | Default |
---|---|---|---|
entities | Yes | Array of entities to create. |
Input Schema (JSON Schema)
{
"$schema": "http://json-schema.org/draft-07/schema#",
"additionalProperties": false,
"properties": {
"entities": {
"description": "Array of entities to create.",
"items": {
"additionalProperties": false,
"properties": {
"entityType": {
"description": "Type or category of the entity.",
"type": "string"
},
"name": {
"description": "Unique name of the entity.",
"type": "string"
},
"observations": {
"description": "Initial list of observations to attach to the entity.",
"items": {
"type": "string"
},
"type": "array"
}
},
"required": [
"name",
"entityType"
],
"type": "object"
},
"type": "array"
}
},
"required": [
"entities"
],
"type": "object"
}