Skip to content

Get agent dependency chains

GET
/api/agents/architecture/dependencies/{agent_id}

Retrieve the full dependency chain for an agent.

Returns both direct dependencies (one hop) and the complete transitive closure. If agent_id does not exist, both lists will be empty (not a 404).

Args: agent_id: Unique agent identifier (e.g. “lorekeeper”, “hawken”).

Returns: DependenciesResponse with direct_dependencies, all_dependencies, and count.

agent_id
required
Agent Id
string

Successful Response

DependenciesResponse

Full dependency chain for a single agent.

Includes both direct (one-hop) and transitive (full closure) dependencies. If the agent_id is unknown, both lists are empty rather than a 404.

object
agentId
required
Agentid

Agent identifier

string
directDependencies
required
Directdependencies

Immediate dependencies

Array<string>
allDependencies
required
Alldependencies

Complete dependency closure

Array<string>
dependencyCount
required
Dependencycount

Total dependencies

integer

Validation Error

HTTPValidationError
object
detail
Detail
Array<object>
ValidationError
object
loc
required
Location
Array
msg
required
Message
string
type
required
Error Type
string
input
Input
ctx
Context
object