memory_graph_relate
Create or strengthen a typed relationship between two entities in your knowledge graph. When a relation is unrecognized, get suggestions and choose a valid alternative.
Instructions
Assert a typed relation between two entities, e.g. ("web-app", "runs-on", "host-1"). Entities auto-create and resolve through
aliases; re-asserting an edge bumps its confidence. On a rejected
relation, pick a suggestion, fall back to related-to, or grow the
vocabulary deliberately via memory_relation_define.
Returns: {src, relation, dst, confidence, warnings} or
{error: "unknown_relation", suggestions}.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| dst | Yes | The object entity. | |
| src | Yes | The subject entity. | |
| origin | No | Who asserted the edge. | |
| dst_type | No | Entity kind for ``dst``: set when the node is created, or filled in on an existing node that has none. | |
| relation | Yes | From the closed registry: ``depends-on``, ``part-of``, ``runs-on``, ``hosts``, ``uses``, ``configures``, ``stores-data-in``, ``related-to``. Separator variants normalise; an unknown name is rejected WITH the closest matches. | |
| src_type | No | Entity kind for ``src``: set when the node is created, or filled in on an existing node that has none. | |
| confidence | No | How sure you are, 0..1. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||