register_relationship
Define and store relationships between code entities, such as calls, inherits, or imports, to maintain structured connections and metadata within a codebase.
Instructions
Register a relationship between entities.
Args: from_entity: Name of the source entity to_entity: Name of the target entity relationship_type: Type of relationship (calls, inherits, imports, etc.) metadata: Additional metadata as key-value pairs
Input Schema
Name | Required | Description | Default |
---|---|---|---|
from_entity | Yes | ||
metadata | No | ||
relationship_type | Yes | ||
to_entity | Yes |
Input Schema (JSON Schema)
{
"properties": {
"from_entity": {
"title": "From Entity",
"type": "string"
},
"metadata": {
"anyOf": [
{
"type": "object"
},
{
"type": "null"
}
],
"default": null,
"title": "Metadata"
},
"relationship_type": {
"title": "Relationship Type",
"type": "string"
},
"to_entity": {
"title": "To Entity",
"type": "string"
}
},
"required": [
"from_entity",
"to_entity",
"relationship_type"
],
"title": "register_relationshipArguments",
"type": "object"
}