File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -119,9 +119,16 @@ async def tools_endpoint_handler( # pylint: disable=too-many-locals,too-many-st
119119 - request: The incoming HTTP request (used by middleware).
120120 - auth: Authentication tuple from the auth dependency (used by middleware).
121121 - mcp_headers: Headers that should be passed to MCP servers.
122+
122123 ### Raises:
123- - HTTPException: If unable to connect to the Llama Stack server or if tool
124- retrieval fails for any reason.
124+ - HTTPException: with status status 401 for unauthorized access.
125+ - HTTPException: with status status 403 if permission is denied.
126+ - HTTPException: with status status 422 if mcp_headers parameter is
127+ improper.
128+ - HTTPException: with status 500 and a detail object containing `response`
129+ and `cause` when service configuration is wrong or incomplete.
130+ - HTTPException: with status 503 and a detail object containing `response`
131+ and `cause` when unable to connect to Llama Stack.
125132
126133 ### Returns:
127134 - ToolsResponse: An object containing the consolidated list of available
You can’t perform that action at this time.
0 commit comments