create_knowledge_relationship
Create directional relationships between entities in a knowledge graph to connect and define dependencies, enabling graph traversal and analysis.
Instructions
Create a relationship between two entities in the knowledge graph
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| repository_path | Yes | The absolute path to the repository where the relationship should be created | |
| from_entity_id | Yes | The ID of the source entity in the relationship | |
| to_entity_id | Yes | The ID of the target entity in the relationship | |
| relationship_type | Yes | The type of relationship between the entities (e.g., 'depends_on', 'implements', 'extends', 'uses', 'calls', 'contains', 'part_of', 'similar_to', 'related_to', 'conflicts_with', 'replaces', 'references', 'documents', 'tests', 'configures', 'deploys', 'monitors', 'validates', 'triggers', 'handles', 'processes', 'stores', 'retrieves', 'transforms', 'aggregates', 'filters', 'sorts', 'groups', 'joins', 'merges', 'splits', 'compresses', 'encrypts', 'decrypts', 'hashes', 'signs', 'verifies', 'authenticates', 'authorizes', 'logs', 'traces', 'debugs', 'profiles', 'benchmarks', 'optimizes', 'refactors', 'migrates', 'upgrades', 'downgrades', 'patches', 'releases', 'versions', 'branches', 'tags', 'commits', 'merges', 'rebases', 'cherry_picks', 'stashes', 'diffs', 'conflicts', 'resolves', 'other') | |
| strength | No | The strength of the relationship (0.0 to 1.0, where 1.0 is strongest) | |
| confidence | No | The confidence in the relationship's accuracy (0.0 to 1.0, where 1.0 is most confident) | |
| context | No | Additional context or description about the relationship | |
| discovered_by | No | The agent or process that discovered this relationship | |
| properties | No | Additional properties and metadata for the relationship as key-value pairs |