Commit 7ae2ea9
committed
feat: introduce /admin API for stack administration and operations
- Add new /admin API (v1alpha) for administrative operations including provider management, health checks, version info, and route listing
- Implement using FastAPI routers following batches pattern with proper request/response models
- Endpoints: /admin/providers, /admin/providers/{id}, /admin/inspect/routes, /admin/health, /admin/version
- Create admin module structure: models.py, api.py, fastapi_routes.py, __init__.py
- Add AdminImpl in llama_stack/core combining provider and inspect functionality
- Deprecate standalone /providers and /inspect APIs (remain functional for backward compatibility)
- Consolidate duplicate types: ProviderInfo, HealthInfo, RouteInfo, etc. now defined once in admin.models
- Test new API using Stainless SDK in integration tests
Signed-off-by: Charlie Doern <[email protected]>1 parent 66f3cf4 commit 7ae2ea9
File tree
22 files changed
+4954
-3674
lines changed- client-sdks/stainless
- docs/static
- scripts/openapi_generator/stainless_config
- src
- llama_stack_api
- admin
- llama_stack/core
- server
- tests/integration/admin
22 files changed
+4954
-3674
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
163 | 163 | | |
164 | 164 | | |
165 | 165 | | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
166 | 172 | | |
167 | 173 | | |
168 | 174 | | |
| |||
261 | 267 | | |
262 | 268 | | |
263 | 269 | | |
264 | | - | |
265 | | - | |
266 | | - | |
267 | | - | |
268 | | - | |
269 | 270 | | |
270 | 271 | | |
271 | 272 | | |
| |||
357 | 358 | | |
358 | 359 | | |
359 | 360 | | |
360 | | - | |
361 | | - | |
362 | 361 | | |
363 | 362 | | |
364 | 363 | | |
365 | 364 | | |
366 | 365 | | |
367 | 366 | | |
368 | | - | |
369 | | - | |
370 | 367 | | |
371 | 368 | | |
372 | 369 | | |
| |||
474 | 471 | | |
475 | 472 | | |
476 | 473 | | |
| 474 | + | |
| 475 | + | |
| 476 | + | |
| 477 | + | |
| 478 | + | |
| 479 | + | |
| 480 | + | |
477 | 481 | | |
478 | 482 | | |
479 | 483 | | |
| |||
0 commit comments