upsert_entities
Insert new entities or update existing ones in the knowledge graph, ensuring data consistency and accuracy for structured reasoning and problem-solving.
Instructions
Create new entities or update existing ones in the knowledge graph using an upsert pattern
Input Schema
Name | Required | Description | Default |
---|---|---|---|
entities | Yes | Array of entities to create or update |
Input Schema (JSON Schema)
{
"$schema": "http://json-schema.org/draft-07/schema#",
"additionalProperties": false,
"properties": {
"entities": {
"description": "Array of entities to create or update",
"items": {
"additionalProperties": false,
"properties": {
"context": {
"description": "Optional context or situation relevant to this entity (e.g., project, meeting, or scenario)",
"type": "string"
},
"entityType": {
"description": "Type classification of the entity",
"minLength": 1,
"type": "string"
},
"name": {
"description": "Unique identifier for the entity",
"minLength": 1,
"type": "string"
},
"observations": {
"description": "Facts or observations about the entity",
"items": {
"type": "string"
},
"type": "array"
},
"update": {
"default": false,
"description": "If true, will fully replace an existing entity; if false, will only create if entity doesn't exist",
"type": "boolean"
}
},
"required": [
"name",
"entityType",
"observations"
],
"type": "object"
},
"type": "array"
}
},
"required": [
"entities"
],
"type": "object"
}