|
386 | 386 | } |
387 | 387 | } |
388 | 388 | } |
| 389 | + }, |
| 390 | + "put": { |
| 391 | + "tags": [ |
| 392 | + "feedback" |
| 393 | + ], |
| 394 | + "summary": "Update Feedback Status", |
| 395 | + "description": "Handle feedback status update requests.\n\nTakes a request with the desired state of the feedback status.\nReturns the updated state of the feedback status based on the request's value.\nThese changes are for the life of the service and are on a per-worker basis.\n\nReturns:\n StatusResponse: Indicates whether feedback is enabled.", |
| 396 | + "operationId": "update_feedback_status_v1_feedback_status_put", |
| 397 | + "requestBody": { |
| 398 | + "content": { |
| 399 | + "application/json": { |
| 400 | + "schema": { |
| 401 | + "$ref": "#/components/schemas/FeedbackStatusUpdateRequest" |
| 402 | + } |
| 403 | + } |
| 404 | + }, |
| 405 | + "required": true |
| 406 | + }, |
| 407 | + "responses": { |
| 408 | + "200": { |
| 409 | + "description": "Successful Response", |
| 410 | + "content": { |
| 411 | + "application/json": { |
| 412 | + "schema": { |
| 413 | + "$ref": "#/components/schemas/FeedbackStatusUpdateResponse" |
| 414 | + } |
| 415 | + } |
| 416 | + } |
| 417 | + }, |
| 418 | + "422": { |
| 419 | + "description": "Validation Error", |
| 420 | + "content": { |
| 421 | + "application/json": { |
| 422 | + "schema": { |
| 423 | + "$ref": "#/components/schemas/HTTPValidationError" |
| 424 | + } |
| 425 | + } |
| 426 | + } |
| 427 | + } |
| 428 | + } |
389 | 429 | } |
390 | 430 | }, |
391 | 431 | "/v1/conversations": { |
|
712 | 752 | "title": "Actions" |
713 | 753 | } |
714 | 754 | }, |
| 755 | + "additionalProperties": false, |
715 | 756 | "type": "object", |
716 | 757 | "required": [ |
717 | 758 | "role", |
|
843 | 884 | ] |
844 | 885 | } |
845 | 886 | }, |
| 887 | + "additionalProperties": false, |
846 | 888 | "type": "object", |
847 | 889 | "title": "AuthenticationConfiguration", |
848 | 890 | "description": "Authentication configuration." |
|
857 | 899 | "title": "Access Rules" |
858 | 900 | } |
859 | 901 | }, |
| 902 | + "additionalProperties": false, |
860 | 903 | "type": "object", |
861 | 904 | "title": "AuthorizationConfiguration", |
862 | 905 | "description": "Authorization configuration." |
|
933 | 976 | ] |
934 | 977 | } |
935 | 978 | }, |
| 979 | + "additionalProperties": false, |
936 | 980 | "type": "object", |
937 | 981 | "title": "CORSConfiguration", |
938 | 982 | "description": "CORS configuration." |
|
1000 | 1044 | "default": {} |
1001 | 1045 | } |
1002 | 1046 | }, |
| 1047 | + "additionalProperties": false, |
1003 | 1048 | "type": "object", |
1004 | 1049 | "required": [ |
1005 | 1050 | "name", |
|
1223 | 1268 | "title": "System Prompt" |
1224 | 1269 | } |
1225 | 1270 | }, |
| 1271 | + "additionalProperties": false, |
1226 | 1272 | "type": "object", |
1227 | 1273 | "title": "Customization", |
1228 | 1274 | "description": "Service customization." |
|
1250 | 1296 | ] |
1251 | 1297 | } |
1252 | 1298 | }, |
| 1299 | + "additionalProperties": false, |
1253 | 1300 | "type": "object", |
1254 | 1301 | "title": "DatabaseConfiguration", |
1255 | 1302 | "description": "Database configuration." |
|
1446 | 1493 | } |
1447 | 1494 | ] |
1448 | 1495 | }, |
| 1496 | + "FeedbackStatusUpdateRequest": { |
| 1497 | + "properties": { |
| 1498 | + "status": { |
| 1499 | + "type": "boolean", |
| 1500 | + "title": "Status", |
| 1501 | + "description": "Desired state of feedback enablement, must be False or True", |
| 1502 | + "default": false, |
| 1503 | + "examples": [ |
| 1504 | + true, |
| 1505 | + false |
| 1506 | + ] |
| 1507 | + } |
| 1508 | + }, |
| 1509 | + "type": "object", |
| 1510 | + "title": "FeedbackStatusUpdateRequest", |
| 1511 | + "description": "Model representing a feedback status update request.\n\nAttributes:\n status: Value of the desired feedback enabled state.\n\nExample:\n ```python\n feedback_request = FeedbackRequest(\n status=false\n )\n ```" |
| 1512 | + }, |
| 1513 | + "FeedbackStatusUpdateResponse": { |
| 1514 | + "properties": { |
| 1515 | + "status": { |
| 1516 | + "additionalProperties": true, |
| 1517 | + "type": "object", |
| 1518 | + "title": "Status" |
| 1519 | + } |
| 1520 | + }, |
| 1521 | + "type": "object", |
| 1522 | + "required": [ |
| 1523 | + "status" |
| 1524 | + ], |
| 1525 | + "title": "FeedbackStatusUpdateResponse", |
| 1526 | + "description": "Model representing a response to a feedback status update request.\n\nAttributes:\n status: The previous and current status of the service and who updated it.\n\nExample:\n ```python\n status_response = StatusResponse(\n status={\n \"previous_status\": true,\n \"updated_status\": false,\n \"updated_by\": \"user/test\"\n },\n )\n ```", |
| 1527 | + "examples": [ |
| 1528 | + { |
| 1529 | + "status": { |
| 1530 | + "previous_status": true, |
| 1531 | + "updated_by": "user/test", |
| 1532 | + "updated_status": false |
| 1533 | + } |
| 1534 | + } |
| 1535 | + ] |
| 1536 | + }, |
1449 | 1537 | "ForbiddenResponse": { |
1450 | 1538 | "properties": { |
1451 | 1539 | "detail": { |
|
1503 | 1591 | "title": "Default Provider" |
1504 | 1592 | } |
1505 | 1593 | }, |
| 1594 | + "additionalProperties": false, |
1506 | 1595 | "type": "object", |
1507 | 1596 | "title": "InferenceConfiguration", |
1508 | 1597 | "description": "Inference configuration." |
|
1569 | 1658 | } |
1570 | 1659 | } |
1571 | 1660 | }, |
| 1661 | + "additionalProperties": false, |
1572 | 1662 | "type": "object", |
1573 | 1663 | "required": [ |
1574 | 1664 | "url" |
|
1596 | 1686 | "title": "Role Rules" |
1597 | 1687 | } |
1598 | 1688 | }, |
| 1689 | + "additionalProperties": false, |
1599 | 1690 | "type": "object", |
1600 | 1691 | "title": "JwtConfiguration", |
1601 | 1692 | "description": "JWT configuration." |
|
1625 | 1716 | "title": "Roles" |
1626 | 1717 | } |
1627 | 1718 | }, |
| 1719 | + "additionalProperties": false, |
1628 | 1720 | "type": "object", |
1629 | 1721 | "required": [ |
1630 | 1722 | "jsonpath", |
|
1701 | 1793 | "title": "Library Client Config Path" |
1702 | 1794 | } |
1703 | 1795 | }, |
| 1796 | + "additionalProperties": false, |
1704 | 1797 | "type": "object", |
1705 | 1798 | "title": "LlamaStackConfiguration", |
1706 | 1799 | "description": "Llama stack configuration." |
|
1721 | 1814 | "title": "Url" |
1722 | 1815 | } |
1723 | 1816 | }, |
| 1817 | + "additionalProperties": false, |
1724 | 1818 | "type": "object", |
1725 | 1819 | "required": [ |
1726 | 1820 | "name", |
|
1828 | 1922 | "title": "Ca Cert Path" |
1829 | 1923 | } |
1830 | 1924 | }, |
| 1925 | + "additionalProperties": false, |
1831 | 1926 | "type": "object", |
1832 | 1927 | "required": [ |
1833 | 1928 | "db", |
|
2131 | 2226 | "title": "Db Path" |
2132 | 2227 | } |
2133 | 2228 | }, |
| 2229 | + "additionalProperties": false, |
2134 | 2230 | "type": "object", |
2135 | 2231 | "required": [ |
2136 | 2232 | "db_path" |
|
2192 | 2288 | } |
2193 | 2289 | } |
2194 | 2290 | }, |
| 2291 | + "additionalProperties": false, |
2195 | 2292 | "type": "object", |
2196 | 2293 | "title": "ServiceConfiguration", |
2197 | 2294 | "description": "Service configuration." |
|
2263 | 2360 | "title": "Tls Key Password" |
2264 | 2361 | } |
2265 | 2362 | }, |
| 2363 | + "additionalProperties": false, |
2266 | 2364 | "type": "object", |
2267 | 2365 | "title": "TLSConfiguration", |
2268 | 2366 | "description": "TLS configuration." |
|
2321 | 2419 | "title": "Transcripts Storage" |
2322 | 2420 | } |
2323 | 2421 | }, |
| 2422 | + "additionalProperties": false, |
2324 | 2423 | "type": "object", |
2325 | 2424 | "title": "UserDataCollection", |
2326 | 2425 | "description": "User data collection configuration." |
|
0 commit comments