Skip to main content
GET
/
v1
/
repo
/
{repo_name}
/
recipe
/
{bake_name}
/
dependency-graph
Get Dependency Graph
curl --request GET \
  --url http://localhost:8080/v1/repo/{repo_name}/recipe/{bake_name}/dependency-graph \
  --header 'Authorization: Bearer <token>'
{
  "base_model": "<string>",
  "bakes": {},
  "targets": {},
  "prompts": {},
  "edges": [
    [
      "<string>",
      "<string>",
      "<string>",
      "<string>"
    ]
  ]
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Headers

X-User-Id
string | null

User ID override via header (requires master API key)

Path Parameters

repo_name
string
required
bake_name
string
required

Query Parameters

user_id
string | null

User ID override (requires master API key)

Response

Successful Response

Dependency graph for a bake.

Represents the complete dependency graph including all parent bakes, targets, prompts, and their relationships. Built using BFS traversal starting from the specified bake.

base_model
string
required

Base model name

bakes
Bakes · object
required

Dictionary of bake configs (collation + bake)

targets
Targets · object
required

Dictionary of target configs (stim + rollout)

prompts
Prompts · object
required

Dictionary of prompt names to file paths

edges
tuple[]
required

List of dependency edges (source_type, source_name, target_type, target_name)