{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "https://github.com/daniloaguiarbr/sqlite-graphrag/schemas/link.schema.json",
"title": "LinkResponse",
"description": "Response emitted by `sqlite-graphrag link` on stdout as JSON.",
"type": "object",
"required": ["action", "from", "to", "relation", "weight", "namespace", "elapsed_ms"],
"additionalProperties": false,
"properties": {
"action": { "type": "string", "enum": ["created", "already_exists"] },
"from": { "type": "string", "description": "Source entity name." },
"to": { "type": "string", "description": "Target entity name." },
"relation": { "type": "string" },
"weight": { "type": "number", "minimum": 0.0, "maximum": 1.0 },
"namespace": { "type": "string" },
"elapsed_ms": { "type": "integer", "minimum": 0 },
"created_entities": {
"type": "array",
"items": { "type": "string" },
"description": "Entity names auto-created by --create-missing. Omitted when empty."
}
}
}