@@ -26,8 +26,7 @@ Handle request to the / endpoint.
2626
2727| Status Code | Description | Component |
2828| -------------| -------------| -----------|
29- | 200 | Successful Response | string
30- |
29+ | 200 | Successful Response | string |
3130## GET ` /v1/info `
3231
3332> ** Info Endpoint Handler**
@@ -48,8 +47,7 @@ Returns:
4847
4948| Status Code | Description | Component |
5049| -------------| -------------| -----------|
51- | 200 | Successful Response | [ InfoResponse] ( #inforesponse )
52- |
50+ | 200 | Successful Response | [ InfoResponse] ( #inforesponse ) |
5351## GET ` /v1/models `
5452
5553> ** Models Endpoint Handler**
@@ -76,7 +74,6 @@ Returns:
7674| -------------| -------------| -----------|
7775| 200 | Successful Response | [ ModelsResponse] ( #modelsresponse ) |
7876| 503 | Connection to Llama Stack is broken | |
79-
8077## POST ` /v1/query `
8178
8279> ** Query Endpoint Handler**
@@ -229,6 +226,33 @@ Returns:
229226| Status Code | Description | Component |
230227| -------------| -------------| -----------|
231228| 200 | Successful Response | [ StatusResponse] ( #statusresponse ) |
229+ ## PUT ` /v1/feedback/status `
230+
231+ > ** Update Feedback Status**
232+
233+ Handle feedback status update requests.
234+
235+ Takes a request with the desired state of the feedback status.
236+ Returns the updated state of the feedback status based on the request's value.
237+ These changes are for the life of the service and are on a per-worker basis.
238+
239+ Returns:
240+ StatusResponse: Indicates whether feedback is enabled.
241+
242+
243+
244+
245+
246+ ### 📦 Request Body
247+
248+ [ FeedbackStatusUpdateRequest] ( #feedbackstatusupdaterequest )
249+
250+ ### ✅ Responses
251+
252+ | Status Code | Description | Component |
253+ | -------------| -------------| -----------|
254+ | 200 | Successful Response | [ FeedbackStatusUpdateResponse] ( #feedbackstatusupdateresponse ) |
255+ | 422 | Validation Error | [ HTTPValidationError] ( #httpvalidationerror ) |
232256## GET ` /v1/conversations `
233257
234258> ** Get Conversations List Endpoint Handler**
@@ -396,8 +420,7 @@ Prometheus format.
396420
397421| Status Code | Description | Component |
398422| -------------| -------------| -----------|
399- | 200 | Successful Response | string
400- |
423+ | 200 | Successful Response | string |
401424---
402425
403426# 📋 Components
@@ -427,17 +450,17 @@ Available actions in the system.
427450## Attachment
428451
429452
430- Model representing an attachment that can be send from UI as part of query.
453+ Model representing an attachment that can be send from the UI as part of query.
431454
432- List of attachments can be optional part of 'query' request.
455+ A list of attachments can be an optional part of 'query' request.
433456
434457Attributes:
435458 attachment_type: The attachment type, like "log", "configuration" etc.
436459 content_type: The content type as defined in MIME standard
437460 content: The actual attachment content
438461
439462YAML attachments with ** kind** and ** metadata/name** attributes will
440- be handled as resources with specified name:
463+ be handled as resources with the specified name:
441464```
442465kind: Pod
443466metadata:
@@ -774,6 +797,52 @@ Example:
774797| response | string | |
775798
776799
800+ ## FeedbackStatusUpdateRequest
801+
802+
803+ Model representing a feedback status update request.
804+
805+ Attributes:
806+ status: Value of the desired feedback enabled state.
807+
808+ Example:
809+ ```python
810+ feedback_request = FeedbackRequest(
811+ status=false
812+ )
813+ ```
814+
815+
816+ | Field | Type | Description |
817+ | -------| ------| -------------|
818+ | status | boolean | Desired state of feedback enablement, must be False or True |
819+
820+
821+ ## FeedbackStatusUpdateResponse
822+
823+
824+ Model representing a response to a feedback status update request.
825+
826+ Attributes:
827+ status: The previous and current status of the service and who updated it.
828+
829+ Example:
830+ ```python
831+ status_response = StatusResponse(
832+ status={
833+ "previous_status": true,
834+ "updated_status": false,
835+ "updated_by": "user/test"
836+ },
837+ )
838+ ```
839+
840+
841+ | Field | Type | Description |
842+ | -------| ------| -------------|
843+ | status | object | |
844+
845+
777846## ForbiddenResponse
778847
779848
0 commit comments