From f30e66b555e89f0d6054072381ae190dc0e14b4a Mon Sep 17 00:00:00 2001 From: Pavel Tisnovsky Date: Wed, 21 Jan 2026 16:36:27 +0100 Subject: [PATCH 1/3] Docstrings for authorized.py --- src/app/endpoints/authorized.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/app/endpoints/authorized.py b/src/app/endpoints/authorized.py index 3a24382bb..bce5be9bd 100644 --- a/src/app/endpoints/authorized.py +++ b/src/app/endpoints/authorized.py @@ -31,6 +31,8 @@ async def authorized_endpoint_handler( Process POST requests to the /authorized endpoint, returning the authenticated user's ID and username. + The response intentionally omits any authentication token. + Returns: AuthorizedResponse: Contains the user ID and username of the authenticated user. """ From 4a62476160a835a9147bdf9d1dda964258a1639d Mon Sep 17 00:00:00 2001 From: Pavel Tisnovsky Date: Wed, 21 Jan 2026 16:36:33 +0100 Subject: [PATCH 2/3] Docstrings for config.py --- src/app/endpoints/config.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/app/endpoints/config.py b/src/app/endpoints/config.py index 9c464ff22..46b668fba 100644 --- a/src/app/endpoints/config.py +++ b/src/app/endpoints/config.py @@ -44,6 +44,8 @@ async def config_endpoint_handler( Process GET requests to the /config endpoint and returns the current service configuration. + Ensures the application configuration is loaded before returning it. + Returns: ConfigurationResponse: The loaded service configuration response. """ From f04e8602591343878600b801cc305198ce2099c7 Mon Sep 17 00:00:00 2001 From: Pavel Tisnovsky Date: Wed, 21 Jan 2026 16:36:43 +0100 Subject: [PATCH 3/3] Docstrings for info.py --- src/app/endpoints/info.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/app/endpoints/info.py b/src/app/endpoints/info.py index e3cfb84ea..e28000532 100644 --- a/src/app/endpoints/info.py +++ b/src/app/endpoints/info.py @@ -44,6 +44,12 @@ async def info_endpoint_handler( Process GET requests to the /info endpoint, returning the service name, version and Llama-stack version. + Raises: + HTTPException: with status 500 and a detail object + containing `response` and `cause` when unable to connect to + Llama Stack. It can also return status 401 or 403 for + unauthorized access. + Returns: InfoResponse: An object containing the service's name and version. """