SmartMemory
GET
/memory/code/dependencies

Trace code dependencies for an entity.

Returns the root entity and its dependents (what uses it) and/or dependencies (what it uses), controlled by direction.

Query Parameters

entity_name*Entity Name

Entity name to trace (exact, case-insensitive)

direction?DependencyDirection

Traversal direction

repo?|

Filter by repository name

limit?Limit

Max related entities per direction

Response Body

application/json

application/json

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