MemoryMesh

add_edges

Enhance knowledge graphs by adding multiple edges between nodes. Specify edge types, start and end nodes, and optional weights to define relationships.

Instructions

Add multiple new edges between nodes in the knowledge graph. Edges should be in active voice

Input Schema

NameRequiredDescriptionDefault
edgesYesArray of edges to add

Input Schema (JSON Schema)

{ "properties": { "edges": { "description": "Array of edges to add", "items": { "description": "Edge to add", "properties": { "edgeType": { "description": "The type of the edge", "type": "string" }, "from": { "description": "The name of the node where the edge starts", "type": "string" }, "to": { "description": "The name of the node where the edge ends", "type": "string" }, "weight": { "description": "Optional edge weight (0-1 range). Defaults to 1 if not specified", "maximum": 1, "minimum": 0, "type": "number" } }, "required": [ "from", "to", "edgeType" ], "type": "object" }, "type": "array" } }, "required": [ "edges" ], "type": "object" }
ID: kf6n6221pd