Routes
builder_browse()
async
¶
Loads the list of Workflows available for editing.
Returns:
Name | Type | Description |
---|---|---|
FileResponse |
The HTML file containing the list of workflows. |
Source code in inference/core/interfaces/http/builder/routes.py
32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 |
|
builder_edit(workflow_id)
async
¶
Loads a specific workflow for editing.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
workflow_id
|
str
|
The ID of the workflow to be edited. |
required |
Returns:
Name | Type | Description |
---|---|---|
FileResponse |
The HTML file containing the workflow editor. |
Source code in inference/core/interfaces/http/builder/routes.py
58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 |
|
builder_maybe_redirect(workflow_id)
async
¶
If the workflow_id.json file exists, redirect to /build/edit/{workflow_id}. Otherwise, redirect back to /build.
Source code in inference/core/interfaces/http/builder/routes.py
224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 |
|
get_all_workflows()
async
¶
Returns JSON info about all .json files in {MODEL_CACHE_DIR}/workflow/local.
Source code in inference/core/interfaces/http/builder/routes.py
87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 |
|
get_workflow(workflow_id)
async
¶
Return JSON for workflow_id.json, or { "error": "not found" } with 404 if missing.
Source code in inference/core/interfaces/http/builder/routes.py
116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 |
|