SmartMemory
GET
/memory/{item_id}/lineage

Walk the derived_from chain from item to root.

Returns a list of items from the given item back to the root (item with no derived_from). Max depth 20 to prevent infinite loops.

Path Parameters

item_id*Item Id

Response Body

application/json

application/json

curl -X GET "https://example.com/memory/string/lineage"
null
{
  "detail": [
    {
      "loc": [
        "string"
      ],
      "msg": "string",
      "type": "string",
      "input": null,
      "ctx": {}
    }
  ]
}