KnowledgeGraph.decision_trail()

Return DECISION nodes linked to node_id, newest first.

Usage

Source

KnowledgeGraph.decision_trail(node_id)

Follows edges in both directions where either endpoint is node_id and the other endpoint is a DECISION node.

Parameters

node_id: str
The node whose decision history is requested.

Returns

list[Node]
Decision nodes ordered by created_at descending.

Examples

trail = kg.decision_trail("entity-alex-torres")
trail[0].name  # most recent decision