-
Notifications
You must be signed in to change notification settings - Fork 1.3k
feat: introduce /admin API for stack administration and operations #4327
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
fcad6ec to
453a7f1
Compare
|
ideally we should be able to write tests in this PR once #4360 merges |
272d963 to
51babfb
Compare
✱ Stainless preview buildsThis PR will update the Edit this comment to update it. It will appear in the SDK's changelogs.
|
⚠️ llama-stack-client-kotlin studio · code · diff
There was a regression in your SDK.
generate ⚠️→lint ✅→test ❗New diagnostics (1 warning)
⚠️ Method/PaginatedWithoutMatchingScheme: `(resource) alpha.admin > (method) list_routes` is paginated, but does not match any [pagination scheme](https://www.stainless.com/docs/guides/configure#pagination), so it will not be interpreted as paginated.
⚠️ llama-stack-client-go studio · code · diff
There was a regression in your SDK.
generate ❗→lint ❗→test ❗go get github.com/stainless-sdks/llama-stack-client-go@00014ef0e0f2042d641b54412d4d354cc8a8091cNew diagnostics (1 warning)
⚠️ Method/PaginatedWithoutMatchingScheme: `(resource) alpha.admin > (method) list_routes` is paginated, but does not match any [pagination scheme](https://www.stainless.com/docs/guides/configure#pagination), so it will not be interpreted as paginated.
⚠️ llama-stack-client-python studio · code · diff
There was a regression in your SDK.
generate ⚠️→build ✅→lint ✅→test ✅pip install https://pkg.stainless.com/s/llama-stack-client-python/fe4725fe920b5ab8a189c91357338fe81c9432a9/llama_stack_client-0.4.0a13-py3-none-any.whlNew diagnostics (1 warning)
⚠️ Method/PaginatedWithoutMatchingScheme: `(resource) alpha.admin > (method) list_routes` is paginated, but does not match any [pagination scheme](https://www.stainless.com/docs/guides/configure#pagination), so it will not be interpreted as paginated.
This comment is auto-generated by GitHub Actions and is automatically kept up to date as you push.
Last updated: 2025-12-17 00:39:25 UTC
- 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]>
we will always need to record the missing json for net new APIs like this one. use record-if-missing Signed-off-by: Charlie Doern <[email protected]>
|
closing, opening on upstream branch so I can make workflow changes. sorry for the churn. |
What does this PR do?
resolves #4303
Test Plan
WIP