add_edge
Create a relationship between two concepts in a knowledge graph. Specify source and target nodes, relation type, and optional strength.
Instructions
Create a relationship between two concepts in the knowledge graph.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| source_concept | Yes | Source node ID or concept name | |
| target_concept | Yes | Target node ID or concept name | |
| relation_type | Yes | Type of relationship. One of: - "prerequisite": Source must be learned before target - "builds_on": Target extends/deepens source concept - "related_to": Concepts are connected (bidirectional semantically) - "contradicts": Common misconception (source is wrong belief about target) - "applies_to": Source concept applies to target domain/topic - "parent_of": Ontological hierarchy (source is parent category of target) | |
| strength | No | Confidence in the relationship from 0.0 to 1.0. Default 1.0. | |
| reasoning | No | Explanation of why this relationship exists |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||