|
324 | 324 | "query" |
325 | 325 | ], |
326 | 326 | "summary": "Query Endpoint Handler", |
327 | | - "description": "Handle request to the /query endpoint.\n\nProcesses a POST request to the /query endpoint, forwarding the\nuser's query to a selected Llama Stack LLM or agent and\nreturning the generated response.\n\nValidates configuration and authentication, selects the appropriate model\nand provider, retrieves the LLM response, updates metrics, and optionally\nstores a transcript of the interaction. Handles connection errors to the\nLlama Stack service by returning an HTTP 500 error.\n\nReturns:\n QueryResponse: Contains the conversation ID and the LLM-generated response.", |
| 327 | + "description": "Handle request to the /query endpoint using Agent API.\n\nThis is a wrapper around query_endpoint_handler_base that provides\nthe Agent API specific retrieve_response and get_topic_summary functions.\n\nReturns:\n QueryResponse: Contains the conversation ID and the LLM-generated response.", |
328 | 328 | "operationId": "query_endpoint_handler_v1_query_post", |
329 | 329 | "requestBody": { |
330 | 330 | "content": { |
|
366 | 366 | } |
367 | 367 | }, |
368 | 368 | "403": { |
369 | | - "description": "User is not authorized", |
| 369 | + "description": "Client does not have permission to access conversation", |
370 | 370 | "content": { |
371 | 371 | "application/json": { |
372 | 372 | "schema": { |
|
452 | 452 | } |
453 | 453 | }, |
454 | 454 | "403": { |
455 | | - "description": "User is not authorized", |
| 455 | + "description": "Client does not have permission to access conversation", |
456 | 456 | "content": { |
457 | 457 | "application/json": { |
458 | 458 | "schema": { |
|
631 | 631 | "operationId": "feedback_status_v1_feedback_status_get", |
632 | 632 | "responses": { |
633 | 633 | "200": { |
634 | | - "description": "Successful Response", |
| 634 | + "description": "Feedback status successfully retrieved", |
635 | 635 | "content": { |
636 | 636 | "application/json": { |
637 | 637 | "schema": { |
|
661 | 661 | }, |
662 | 662 | "responses": { |
663 | 663 | "200": { |
664 | | - "description": "Successful Response", |
| 664 | + "description": "Feedback status successfully updated", |
665 | 665 | "content": { |
666 | 666 | "application/json": { |
667 | 667 | "schema": { |
|
670 | 670 | } |
671 | 671 | } |
672 | 672 | }, |
| 673 | + "401": { |
| 674 | + "description": "Missing or invalid credentials provided by client", |
| 675 | + "content": { |
| 676 | + "application/json": { |
| 677 | + "schema": { |
| 678 | + "$ref": "#/components/schemas/UnauthorizedResponse" |
| 679 | + } |
| 680 | + } |
| 681 | + } |
| 682 | + }, |
| 683 | + "403": { |
| 684 | + "description": "Client does not have permission to access resource", |
| 685 | + "content": { |
| 686 | + "application/json": { |
| 687 | + "schema": { |
| 688 | + "$ref": "#/components/schemas/ForbiddenResponse" |
| 689 | + } |
| 690 | + } |
| 691 | + } |
| 692 | + }, |
673 | 693 | "422": { |
674 | 694 | "description": "Validation Error", |
675 | 695 | "content": { |
|
1179 | 1199 | } |
1180 | 1200 | } |
1181 | 1201 | }, |
| 1202 | + "/v2/query": { |
| 1203 | + "post": { |
| 1204 | + "tags": [ |
| 1205 | + "query_v2" |
| 1206 | + ], |
| 1207 | + "summary": "Query Endpoint Handler V2", |
| 1208 | + "description": "Handle request to the /query endpoint using Responses API.\n\nThis is a wrapper around query_endpoint_handler_base that provides\nthe Responses API specific retrieve_response and get_topic_summary functions.\n\nReturns:\n QueryResponse: Contains the conversation ID and the LLM-generated response.", |
| 1209 | + "operationId": "query_endpoint_handler_v2_v2_query_post", |
| 1210 | + "requestBody": { |
| 1211 | + "content": { |
| 1212 | + "application/json": { |
| 1213 | + "schema": { |
| 1214 | + "$ref": "#/components/schemas/QueryRequest" |
| 1215 | + } |
| 1216 | + } |
| 1217 | + }, |
| 1218 | + "required": true |
| 1219 | + }, |
| 1220 | + "responses": { |
| 1221 | + "200": { |
| 1222 | + "description": "Successful Response", |
| 1223 | + "content": { |
| 1224 | + "application/json": { |
| 1225 | + "schema": { |
| 1226 | + "$ref": "#/components/schemas/QueryResponse" |
| 1227 | + } |
| 1228 | + } |
| 1229 | + }, |
| 1230 | + "conversation_id": "123e4567-e89b-12d3-a456-426614174000", |
| 1231 | + "response": "LLM answer", |
| 1232 | + "referenced_documents": [ |
| 1233 | + { |
| 1234 | + "doc_url": "https://docs.openshift.com/container-platform/4.15/operators/olm/index.html", |
| 1235 | + "doc_title": "Operator Lifecycle Manager (OLM)" |
| 1236 | + } |
| 1237 | + ] |
| 1238 | + }, |
| 1239 | + "400": { |
| 1240 | + "description": "Missing or invalid credentials provided by client", |
| 1241 | + "content": { |
| 1242 | + "application/json": { |
| 1243 | + "schema": { |
| 1244 | + "$ref": "#/components/schemas/UnauthorizedResponse" |
| 1245 | + } |
| 1246 | + } |
| 1247 | + } |
| 1248 | + }, |
| 1249 | + "403": { |
| 1250 | + "description": "Client does not have permission to access conversation", |
| 1251 | + "content": { |
| 1252 | + "application/json": { |
| 1253 | + "schema": { |
| 1254 | + "$ref": "#/components/schemas/ForbiddenResponse" |
| 1255 | + } |
| 1256 | + } |
| 1257 | + } |
| 1258 | + }, |
| 1259 | + "500": { |
| 1260 | + "description": "Internal Server Error", |
| 1261 | + "detail": { |
| 1262 | + "response": "Unable to connect to Llama Stack", |
| 1263 | + "cause": "Connection error." |
| 1264 | + } |
| 1265 | + }, |
| 1266 | + "422": { |
| 1267 | + "description": "Validation Error", |
| 1268 | + "content": { |
| 1269 | + "application/json": { |
| 1270 | + "schema": { |
| 1271 | + "$ref": "#/components/schemas/HTTPValidationError" |
| 1272 | + } |
| 1273 | + } |
| 1274 | + } |
| 1275 | + } |
| 1276 | + } |
| 1277 | + } |
| 1278 | + }, |
1182 | 1279 | "/readiness": { |
1183 | 1280 | "get": { |
1184 | 1281 | "tags": [ |
|
1436 | 1533 | } |
1437 | 1534 | ] |
1438 | 1535 | }, |
1439 | | - "AuthenticationConfiguration-Input": { |
| 1536 | + "AuthenticationConfiguration": { |
1440 | 1537 | "properties": { |
1441 | 1538 | "module": { |
1442 | 1539 | "type": "string", |
|
1476 | 1573 | "jwk_config": { |
1477 | 1574 | "anyOf": [ |
1478 | 1575 | { |
1479 | | - "$ref": "#/components/schemas/JwkConfiguration-Input" |
| 1576 | + "$ref": "#/components/schemas/JwkConfiguration" |
1480 | 1577 | }, |
1481 | 1578 | { |
1482 | 1579 | "type": "null" |
|
1489 | 1586 | "title": "AuthenticationConfiguration", |
1490 | 1587 | "description": "Authentication configuration." |
1491 | 1588 | }, |
1492 | | - "AuthenticationConfiguration-Output": { |
1493 | | - "properties": { |
1494 | | - "module": { |
1495 | | - "type": "string", |
1496 | | - "title": "Module", |
1497 | | - "default": "noop" |
1498 | | - }, |
1499 | | - "skip_tls_verification": { |
1500 | | - "type": "boolean", |
1501 | | - "title": "Skip Tls Verification", |
1502 | | - "default": false |
1503 | | - }, |
1504 | | - "k8s_cluster_api": { |
1505 | | - "anyOf": [ |
1506 | | - { |
1507 | | - "type": "string", |
1508 | | - "minLength": 1, |
1509 | | - "format": "uri" |
1510 | | - }, |
1511 | | - { |
1512 | | - "type": "null" |
1513 | | - } |
1514 | | - ], |
1515 | | - "title": "K8S Cluster Api" |
1516 | | - }, |
1517 | | - "k8s_ca_cert_path": { |
1518 | | - "anyOf": [ |
1519 | | - { |
1520 | | - "type": "string", |
1521 | | - "format": "file-path" |
1522 | | - }, |
1523 | | - { |
1524 | | - "type": "null" |
1525 | | - } |
1526 | | - ], |
1527 | | - "title": "K8S Ca Cert Path" |
1528 | | - }, |
1529 | | - "jwk_config": { |
1530 | | - "anyOf": [ |
1531 | | - { |
1532 | | - "$ref": "#/components/schemas/JwkConfiguration-Output" |
1533 | | - }, |
1534 | | - { |
1535 | | - "type": "null" |
1536 | | - } |
1537 | | - ] |
1538 | | - } |
1539 | | - }, |
1540 | | - "additionalProperties": false, |
1541 | | - "type": "object", |
1542 | | - "title": "AuthenticationConfiguration", |
1543 | | - "description": "Authentication configuration." |
1544 | | - }, |
1545 | | - "AuthorizationConfiguration-Input": { |
1546 | | - "properties": { |
1547 | | - "access_rules": { |
1548 | | - "items": { |
1549 | | - "$ref": "#/components/schemas/AccessRule" |
1550 | | - }, |
1551 | | - "type": "array", |
1552 | | - "title": "Access Rules" |
1553 | | - } |
1554 | | - }, |
1555 | | - "additionalProperties": false, |
1556 | | - "type": "object", |
1557 | | - "title": "AuthorizationConfiguration", |
1558 | | - "description": "Authorization configuration." |
1559 | | - }, |
1560 | | - "AuthorizationConfiguration-Output": { |
| 1589 | + "AuthorizationConfiguration": { |
1561 | 1590 | "properties": { |
1562 | 1591 | "access_rules": { |
1563 | 1592 | "items": { |
|
1753 | 1782 | "title": "Mcp Servers" |
1754 | 1783 | }, |
1755 | 1784 | "authentication": { |
1756 | | - "$ref": "#/components/schemas/AuthenticationConfiguration-Output" |
| 1785 | + "$ref": "#/components/schemas/AuthenticationConfiguration" |
1757 | 1786 | }, |
1758 | 1787 | "authorization": { |
1759 | 1788 | "anyOf": [ |
1760 | 1789 | { |
1761 | | - "$ref": "#/components/schemas/AuthorizationConfiguration-Output" |
| 1790 | + "$ref": "#/components/schemas/AuthorizationConfiguration" |
1762 | 1791 | }, |
1763 | 1792 | { |
1764 | 1793 | "type": "null" |
|
2717 | 2746 | "title": "JsonPathOperator", |
2718 | 2747 | "description": "Supported operators for JSONPath evaluation." |
2719 | 2748 | }, |
2720 | | - "JwkConfiguration-Input": { |
| 2749 | + "JwkConfiguration": { |
2721 | 2750 | "properties": { |
2722 | 2751 | "url": { |
2723 | 2752 | "type": "string", |
|
2726 | 2755 | "title": "Url" |
2727 | 2756 | }, |
2728 | 2757 | "jwt_configuration": { |
2729 | | - "$ref": "#/components/schemas/JwtConfiguration-Input" |
| 2758 | + "$ref": "#/components/schemas/JwtConfiguration" |
2730 | 2759 | } |
2731 | 2760 | }, |
2732 | 2761 | "additionalProperties": false, |
|
2737 | 2766 | "title": "JwkConfiguration", |
2738 | 2767 | "description": "JWK configuration." |
2739 | 2768 | }, |
2740 | | - "JwkConfiguration-Output": { |
2741 | | - "properties": { |
2742 | | - "url": { |
2743 | | - "type": "string", |
2744 | | - "minLength": 1, |
2745 | | - "format": "uri", |
2746 | | - "title": "Url" |
2747 | | - }, |
2748 | | - "jwt_configuration": { |
2749 | | - "$ref": "#/components/schemas/JwtConfiguration-Output" |
2750 | | - } |
2751 | | - }, |
2752 | | - "additionalProperties": false, |
2753 | | - "type": "object", |
2754 | | - "required": [ |
2755 | | - "url" |
2756 | | - ], |
2757 | | - "title": "JwkConfiguration", |
2758 | | - "description": "JWK configuration." |
2759 | | - }, |
2760 | | - "JwtConfiguration-Input": { |
2761 | | - "properties": { |
2762 | | - "user_id_claim": { |
2763 | | - "type": "string", |
2764 | | - "title": "User Id Claim", |
2765 | | - "default": "user_id" |
2766 | | - }, |
2767 | | - "username_claim": { |
2768 | | - "type": "string", |
2769 | | - "title": "Username Claim", |
2770 | | - "default": "username" |
2771 | | - }, |
2772 | | - "role_rules": { |
2773 | | - "items": { |
2774 | | - "$ref": "#/components/schemas/JwtRoleRule" |
2775 | | - }, |
2776 | | - "type": "array", |
2777 | | - "title": "Role Rules" |
2778 | | - } |
2779 | | - }, |
2780 | | - "additionalProperties": false, |
2781 | | - "type": "object", |
2782 | | - "title": "JwtConfiguration", |
2783 | | - "description": "JWT configuration." |
2784 | | - }, |
2785 | | - "JwtConfiguration-Output": { |
| 2769 | + "JwtConfiguration": { |
2786 | 2770 | "properties": { |
2787 | 2771 | "user_id_claim": { |
2788 | 2772 | "type": "string", |
|
0 commit comments