|
74 | 74 | "models" |
75 | 75 | ], |
76 | 76 | "summary": "Models Endpoint Handler", |
77 | | - "description": "Handle requests to the /models endpoint.", |
| 77 | + "description": "Handle requests to the /models endpoint.\n\nProcess GET requests to the /models endpoint, returning a list of available\nmodels from the Llama Stack service.\n\nRaises:\n HTTPException: If unable to connect to the Llama Stack server or if\n model retrieval fails for any reason.\n\nReturns:\n ModelsResponse: An object containing the list of available models.", |
78 | 78 | "operationId": "models_endpoint_handler_v1_models_get", |
79 | 79 | "responses": { |
80 | 80 | "200": { |
|
300 | 300 | "feedback" |
301 | 301 | ], |
302 | 302 | "summary": "Feedback Endpoint Handler", |
303 | | - "description": "Handle feedback requests.\n\nArgs:\n feedback_request: The request containing feedback information.\n ensure_feedback_enabled: The feedback handler (FastAPI Depends) that\n will handle feedback status checks.\n auth: The Authentication handler (FastAPI Depends) that will\n handle authentication Logic.\n\nReturns:\n Response indicating the status of the feedback storage request.", |
| 303 | + "description": "Handle feedback requests.\n\nProcesses a user feedback submission, storing the feedback and\nreturning a confirmation response.\n\nArgs:\n feedback_request: The request containing feedback information.\n ensure_feedback_enabled: The feedback handler (FastAPI Depends) that\n will handle feedback status checks.\n auth: The Authentication handler (FastAPI Depends) that will\n handle authentication Logic.\n\nReturns:\n Response indicating the status of the feedback storage request.\n\nRaises:\n HTTPException: Returns HTTP 500 if feedback storage fails.", |
304 | 304 | "operationId": "feedback_endpoint_handler_v1_feedback_post", |
305 | 305 | "requestBody": { |
306 | 306 | "content": { |
|
372 | 372 | "feedback" |
373 | 373 | ], |
374 | 374 | "summary": "Feedback Status", |
375 | | - "description": "Handle feedback status requests.\n\nReturns:\n Response indicating the status of the feedback.", |
| 375 | + "description": "Handle feedback status requests.\n\nReturn the current enabled status of the feedback\nfunctionality.\n\nReturns:\n StatusResponse: Indicates whether feedback collection is enabled.", |
376 | 376 | "operationId": "feedback_status_v1_feedback_status_get", |
377 | 377 | "responses": { |
378 | 378 | "200": { |
|
441 | 441 | "conversations" |
442 | 442 | ], |
443 | 443 | "summary": "Get Conversation Endpoint Handler", |
444 | | - "description": "Handle request to retrieve a conversation by ID.", |
| 444 | + "description": "Handle request to retrieve a conversation by ID.\n\nRetrieve a conversation's chat history by its ID. Then fetches\nthe conversation session from the Llama Stack backend,\nsimplifies the session data to essential chat history, and\nreturns it in a structured response. Raises HTTP 400 for\ninvalid IDs, 404 if not found, 503 if the backend is\nunavailable, and 500 for unexpected errors.\n\nParameters:\n conversation_id (str): Unique identifier of the conversation to retrieve.\n\nReturns:\n ConversationResponse: Structured response containing the conversation\n ID and simplified chat history.", |
445 | 445 | "operationId": "get_conversation_endpoint_handler_v1_conversations__conversation_id__get", |
446 | 446 | "parameters": [ |
447 | 447 | { |
|
513 | 513 | "conversations" |
514 | 514 | ], |
515 | 515 | "summary": "Delete Conversation Endpoint Handler", |
516 | | - "description": "Handle request to delete a conversation by ID.", |
| 516 | + "description": "Handle request to delete a conversation by ID.\n\nValidates the conversation ID format and attempts to delete the\ncorresponding session from the Llama Stack backend. Raises HTTP\nerrors for invalid IDs, not found conversations, connection\nissues, or unexpected failures.\n\nReturns:\n ConversationDeleteResponse: Response indicating the result of the deletion operation.", |
517 | 517 | "operationId": "delete_conversation_endpoint_handler_v1_conversations__conversation_id__delete", |
518 | 518 | "parameters": [ |
519 | 519 | { |
|
807 | 807 | "properties": { |
808 | 808 | "user_id": { |
809 | 809 | "type": "string", |
810 | | - "title": "User Id" |
| 810 | + "title": "User Id", |
| 811 | + "description": "User ID, for example UUID", |
| 812 | + "examples": [ |
| 813 | + "c5260aec-4d82-4370-9fdf-05cf908b3f16" |
| 814 | + ] |
811 | 815 | }, |
812 | 816 | "username": { |
813 | 817 | "type": "string", |
814 | | - "title": "Username" |
| 818 | + "title": "Username", |
| 819 | + "description": "User name", |
| 820 | + "examples": [ |
| 821 | + "John Doe", |
| 822 | + "Adam Smith" |
| 823 | + ] |
815 | 824 | } |
816 | 825 | }, |
817 | 826 | "type": "object", |
|
860 | 869 | "default": [] |
861 | 870 | }, |
862 | 871 | "authentication": { |
863 | | - "anyOf": [ |
864 | | - { |
865 | | - "$ref": "#/components/schemas/AuthenticationConfiguration" |
866 | | - }, |
867 | | - { |
868 | | - "type": "null" |
869 | | - } |
870 | | - ], |
| 872 | + "$ref": "#/components/schemas/AuthenticationConfiguration", |
871 | 873 | "default": { |
872 | 874 | "module": "noop", |
873 | 875 | "skip_tls_verification": false |
|
1140 | 1142 | "title": "DatabaseConfiguration", |
1141 | 1143 | "description": "Database configuration." |
1142 | 1144 | }, |
1143 | | - "DatabaseConfiguration": { |
1144 | | - "properties": { |
1145 | | - "sqlite": { |
1146 | | - "anyOf": [ |
1147 | | - { |
1148 | | - "$ref": "#/components/schemas/SQLiteDatabaseConfiguration" |
1149 | | - }, |
1150 | | - { |
1151 | | - "type": "null" |
1152 | | - } |
1153 | | - ] |
1154 | | - }, |
1155 | | - "postgres": { |
1156 | | - "anyOf": [ |
1157 | | - { |
1158 | | - "$ref": "#/components/schemas/PostgreSQLDatabaseConfiguration" |
1159 | | - }, |
1160 | | - { |
1161 | | - "type": "null" |
1162 | | - } |
1163 | | - ] |
1164 | | - } |
1165 | | - }, |
1166 | | - "type": "object", |
1167 | | - "title": "DatabaseConfiguration", |
1168 | | - "description": "Database configuration." |
1169 | | - }, |
1170 | 1145 | "ErrorResponse": { |
1171 | 1146 | "properties": { |
1172 | 1147 | "detail": { |
1173 | 1148 | "additionalProperties": { |
1174 | 1149 | "type": "string" |
1175 | 1150 | }, |
1176 | 1151 | "type": "object", |
1177 | | - "title": "Detail" |
| 1152 | + "title": "Detail", |
| 1153 | + "description": "Error details", |
| 1154 | + "examples": [ |
| 1155 | + { |
| 1156 | + "cause": "Failed to handle request to https://bam-api.res.ibm.com/v2/text", |
| 1157 | + "response": "Error while validation question" |
| 1158 | + }, |
| 1159 | + { |
| 1160 | + "cause": "Invalid conversation ID 1237-e89b-12d3-a456-426614174000", |
| 1161 | + "response": "Error retrieving conversation history" |
| 1162 | + } |
| 1163 | + ] |
1178 | 1164 | } |
1179 | 1165 | }, |
1180 | 1166 | "type": "object", |
|
1413 | 1399 | "properties": { |
1414 | 1400 | "name": { |
1415 | 1401 | "type": "string", |
1416 | | - "title": "Name" |
| 1402 | + "title": "Name", |
| 1403 | + "description": "Service name", |
| 1404 | + "examples": [ |
| 1405 | + "Lightspeed Stack" |
| 1406 | + ] |
1417 | 1407 | }, |
1418 | 1408 | "version": { |
1419 | 1409 | "type": "string", |
1420 | | - "title": "Version" |
| 1410 | + "title": "Version", |
| 1411 | + "description": "Service version", |
| 1412 | + "examples": [ |
| 1413 | + "0.1.0", |
| 1414 | + "0.2.0", |
| 1415 | + "1.0.0" |
| 1416 | + ] |
1421 | 1417 | } |
1422 | 1418 | }, |
1423 | 1419 | "type": "object", |
|
1576 | 1572 | "type": "object" |
1577 | 1573 | }, |
1578 | 1574 | "type": "array", |
1579 | | - "title": "Models" |
| 1575 | + "title": "Models", |
| 1576 | + "description": "List of models available", |
| 1577 | + "examples": [ |
| 1578 | + { |
| 1579 | + "api_model_type": "llm", |
| 1580 | + "identifier": "openai/gpt-4-turbo", |
| 1581 | + "metadata": {}, |
| 1582 | + "model_type": "llm", |
| 1583 | + "provider_id": "openai", |
| 1584 | + "provider_resource_id": "gpt-4-turbo", |
| 1585 | + "type": "model" |
| 1586 | + }, |
| 1587 | + { |
| 1588 | + "api_model_type": "llm", |
| 1589 | + "identifier": "openai/gpt-3.5-turbo-0125", |
| 1590 | + "metadata": {}, |
| 1591 | + "model_type": "llm", |
| 1592 | + "provider_id": "openai", |
| 1593 | + "provider_resource_id": "gpt-3.5-turbo-0125", |
| 1594 | + "type": "model" |
| 1595 | + } |
| 1596 | + ] |
1580 | 1597 | } |
1581 | 1598 | }, |
1582 | 1599 | "type": "object", |
|
1867 | 1884 | "type": "null" |
1868 | 1885 | } |
1869 | 1886 | ], |
1870 | | - "title": "Conversation Id" |
| 1887 | + "title": "Conversation Id", |
| 1888 | + "description": "The optional conversation ID (UUID)", |
| 1889 | + "examples": [ |
| 1890 | + "c5260aec-4d82-4370-9fdf-05cf908b3f16" |
| 1891 | + ] |
1871 | 1892 | }, |
1872 | 1893 | "response": { |
1873 | 1894 | "type": "string", |
1874 | | - "title": "Response" |
| 1895 | + "title": "Response", |
| 1896 | + "description": "Response from LLM", |
| 1897 | + "examples": [ |
| 1898 | + "Kubernetes is an open-source container orchestration system for automating ..." |
| 1899 | + ] |
1875 | 1900 | } |
1876 | 1901 | }, |
1877 | 1902 | "type": "object", |
|
0 commit comments