update_edges
Modify edge properties in a knowledge graph, including source, target, node types, and weights, to ensure accurate and updated relationships within MemoryMesh's data structure.
Instructions
Update existing edges in the knowledge graph
Input Schema
Name | Required | Description | Default |
---|---|---|---|
edges | Yes | Array of edges to update |
Input Schema (JSON Schema)
{
"properties": {
"edges": {
"description": "Array of edges to update",
"items": {
"description": "Edge to update",
"properties": {
"edgeType": {
"description": "Current edge type",
"type": "string"
},
"from": {
"description": "Current source node name",
"type": "string"
},
"newEdgeType": {
"description": "New edge type",
"type": "string"
},
"newFrom": {
"description": "New source node name",
"type": "string"
},
"newTo": {
"description": "New target node name",
"type": "string"
},
"newWeight": {
"description": "Optional new edge weight (0-1 range)",
"maximum": 1,
"minimum": 0,
"type": "number"
},
"to": {
"description": "Current target node name",
"type": "string"
}
},
"required": [
"from",
"to",
"edgeType"
],
"type": "object"
},
"type": "array"
}
},
"required": [
"edges"
],
"type": "object"
}