{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "https://github.com/daniloaguiarbr/sqlite-graphrag/schemas/prune-ner.schema.json",
"title": "PruneNerResponse",
"description": "Response emitted by `sqlite-graphrag prune-ner --json` on stdout as a single JSON line.",
"type": "object",
"required": ["action", "bindings_removed", "namespace", "elapsed_ms"],
"additionalProperties": false,
"properties": {
"action": { "type": "string", "enum": ["pruned", "dry_run", "aborted"], "description": "'pruned' when bindings were physically removed; 'dry_run' when --dry-run was passed; 'aborted' when --yes was not passed." },
"bindings_removed": { "type": "integer", "minimum": 0, "description": "Number of memory-entity NER binding rows removed (or that would be removed in dry_run/aborted mode)." },
"namespace": { "type": "string", "description": "Namespace in which the prune was performed." },
"entity": { "type": "string", "description": "Entity name targeted when --entity was used." },
"elapsed_ms": { "type": "integer", "minimum": 0, "description": "Handler wall-clock time in milliseconds." }
}
}