|
1211 | 1211 | }, |
1212 | 1212 | "example": { |
1213 | 1213 | "available_quotas": { |
1214 | | - "daily": 1000, |
1215 | | - "monthly": 50000 |
| 1214 | + "ClusterQuotaLimiter": 998911, |
| 1215 | + "UserQuotaLimiter": 998911 |
1216 | 1216 | }, |
1217 | 1217 | "conversation_id": "123e4567-e89b-12d3-a456-426614174000", |
1218 | | - "input_tokens": 150, |
1219 | | - "output_tokens": 75, |
1220 | | - "rag_chunks": [ |
1221 | | - { |
1222 | | - "content": "OLM is a component of the Operator Framework toolkit...", |
1223 | | - "score": 0.95, |
1224 | | - "source": "kubernetes-docs/operators.md" |
1225 | | - } |
1226 | | - ], |
| 1218 | + "input_tokens": 123, |
| 1219 | + "output_tokens": 456, |
1227 | 1220 | "referenced_documents": [ |
1228 | 1221 | { |
1229 | | - "doc_title": "Operator Lifecycle Manager (OLM)", |
1230 | | - "doc_url": "https://docs.openshift.com/container-platform/4.15/operators/olm/index.html" |
| 1222 | + "doc_title": "Operator Lifecycle Manager concepts and resources", |
| 1223 | + "doc_url": "https://docs.openshift.com/container-platform/4.15/operators/understanding/olm/olm-understanding-olm.html" |
1231 | 1224 | } |
1232 | 1225 | ], |
1233 | 1226 | "response": "Operator Lifecycle Manager (OLM) helps users install...", |
1234 | 1227 | "tool_calls": [ |
1235 | 1228 | { |
1236 | | - "arguments": { |
1237 | | - "query": "operator lifecycle manager" |
1238 | | - }, |
1239 | | - "result": { |
1240 | | - "chunks_found": 5 |
1241 | | - }, |
1242 | | - "tool_name": "knowledge_search" |
| 1229 | + "args": {}, |
| 1230 | + "id": "1", |
| 1231 | + "name": "tool1", |
| 1232 | + "type": "tool_call" |
| 1233 | + } |
| 1234 | + ], |
| 1235 | + "tool_results": [ |
| 1236 | + { |
| 1237 | + "content": "bla", |
| 1238 | + "id": "1", |
| 1239 | + "round": 1, |
| 1240 | + "status": "success", |
| 1241 | + "type": "tool_result" |
1243 | 1242 | } |
1244 | 1243 | ], |
1245 | 1244 | "truncated": false |
|
1521 | 1520 | "type": "string", |
1522 | 1521 | "format": "text/event-stream" |
1523 | 1522 | }, |
1524 | | - "example": "data: {\"event\": \"start\", \"data\": {\"conversation_id\": \"123e4567-e89b-12d3-a456-426614174000\"}}\n\ndata: {\"event\": \"token\", \"data\": {\"id\": 0, \"token\": \"No Violation\"}}\n\ndata: {\"event\": \"token\", \"data\": {\"id\": 1, \"token\": \"\"}}\n\ndata: {\"event\": \"token\", \"data\": {\"id\": 2, \"token\": \"Hello\"}}\n\ndata: {\"event\": \"token\", \"data\": {\"id\": 3, \"token\": \"!\"}}\n\ndata: {\"event\": \"token\", \"data\": {\"id\": 4, \"token\": \" How\"}}\n\ndata: {\"event\": \"token\", \"data\": {\"id\": 5, \"token\": \" can\"}}\n\ndata: {\"event\": \"token\", \"data\": {\"id\": 6, \"token\": \" I\"}}\n\ndata: {\"event\": \"token\", \"data\": {\"id\": 7, \"token\": \" assist\"}}\n\ndata: {\"event\": \"token\", \"data\": {\"id\": 8, \"token\": \" you\"}}\n\ndata: {\"event\": \"token\", \"data\": {\"id\": 9, \"token\": \" today\"}}\n\ndata: {\"event\": \"token\", \"data\": {\"id\": 10, \"token\": \"?\"}}\n\ndata: {\"event\": \"turn_complete\", \"data\": {\"token\": \"Hello! How can I assist you today?\"}}\n\ndata: {\"event\": \"end\", \"data\": {\"rag_chunks\": [], \"referenced_documents\": [], \"truncated\": null, \"input_tokens\": 11, \"output_tokens\": 19, \"available_quotas\": {}}}\n\n" |
| 1523 | + "example": "data: {\"event\": \"start\", \"data\": {\"conversation_id\": \"123e4567-e89b-12d3-a456-426614174000\"}}\n\ndata: {\"event\": \"token\", \"data\": {\"id\": 0, \"token\": \"No Violation\"}}\n\ndata: {\"event\": \"token\", \"data\": {\"id\": 1, \"token\": \"\"}}\n\ndata: {\"event\": \"token\", \"data\": {\"id\": 2, \"token\": \"Hello\"}}\n\ndata: {\"event\": \"token\", \"data\": {\"id\": 3, \"token\": \"!\"}}\n\ndata: {\"event\": \"token\", \"data\": {\"id\": 4, \"token\": \" How\"}}\n\ndata: {\"event\": \"token\", \"data\": {\"id\": 5, \"token\": \" can\"}}\n\ndata: {\"event\": \"token\", \"data\": {\"id\": 6, \"token\": \" I\"}}\n\ndata: {\"event\": \"token\", \"data\": {\"id\": 7, \"token\": \" assist\"}}\n\ndata: {\"event\": \"token\", \"data\": {\"id\": 8, \"token\": \" you\"}}\n\ndata: {\"event\": \"token\", \"data\": {\"id\": 9, \"token\": \" today\"}}\n\ndata: {\"event\": \"token\", \"data\": {\"id\": 10, \"token\": \"?\"}}\n\ndata: {\"event\": \"turn_complete\", \"data\": {\"token\": \"Hello! How can I assist you today?\"}}\n\ndata: {\"event\": \"end\", \"data\": {\"referenced_documents\": [], \"truncated\": null, \"input_tokens\": 11, \"output_tokens\": 19}, \"available_quotas\": {}}\n\n" |
1525 | 1524 | } |
1526 | 1525 | } |
1527 | 1526 | }, |
|
3920 | 3919 | "properties": { |
3921 | 3920 | "api_key": { |
3922 | 3921 | "type": "string", |
3923 | | - "title": "Api Key", |
3924 | | - "default": "some-api-key" |
| 3922 | + "minLength": 1, |
| 3923 | + "format": "password", |
| 3924 | + "title": "API key", |
| 3925 | + "writeOnly": true, |
| 3926 | + "examples": [ |
| 3927 | + "some-api-key" |
| 3928 | + ] |
3925 | 3929 | } |
3926 | 3930 | }, |
3927 | 3931 | "additionalProperties": false, |
3928 | 3932 | "type": "object", |
| 3933 | + "required": [ |
| 3934 | + "api_key" |
| 3935 | + ], |
3929 | 3936 | "title": "APIKeyTokenConfiguration", |
3930 | 3937 | "description": "API Key Token configuration." |
3931 | 3938 | }, |
|
5699 | 5706 | "url" |
5700 | 5707 | ], |
5701 | 5708 | "title": "ModelContextProtocolServer", |
5702 | | - "description": "Model context protocol server configuration.\n\nMCP (Model Context Protocol) servers provide tools and\ncapabilities to the AI agents. These are configured by this structure.\nOnly MCP servers defined in the lightspeed-stack.yaml configuration are\navailable to the agents. Tools configured in the llama-stack run.yaml\nare not accessible to lightspeed-core agents.\n\nUseful resources:\n\n- [Model Context Protocol](https://modelcontextprotocol.io/docs/getting-started/intro)\n- [MCP FAQs](https://modelcontextprotocol.io/faqs)\n- [Wikipedia article](https://en.wikipedia.org/wiki/Model_Context_Protocol)" |
| 5709 | + "description": "Model context protocol server configuration.\n\nMCP (Model Context Protocol) servers provide tools and capabilities to the\nAI agents. These are configured by this structure. Only MCP servers\ndefined in the lightspeed-stack.yaml configuration are available to the\nagents. Tools configured in the llama-stack run.yaml are not accessible to\nlightspeed-core agents.\n\nUseful resources:\n\n- [Model Context Protocol](https://modelcontextprotocol.io/docs/getting-started/intro)\n- [MCP FAQs](https://modelcontextprotocol.io/faqs)\n- [Wikipedia article](https://en.wikipedia.org/wiki/Model_Context_Protocol)" |
5703 | 5710 | }, |
5704 | 5711 | "ModelsResponse": { |
5705 | 5712 | "properties": { |
|
5862 | 5869 | "password" |
5863 | 5870 | ], |
5864 | 5871 | "title": "PostgreSQLDatabaseConfiguration", |
5865 | | - "description": "PostgreSQL database configuration.\n\nPostgreSQL database is used by Lightspeed Core Stack service for storing information about\nconversation IDs. It can also be leveraged to store conversation history and information\nabout quota usage.\n\nUseful resources:\n\n- [Psycopg: connection classes](https://www.psycopg.org/psycopg3/docs/api/connections.html)\n- [PostgreSQL connection strings](https://www.connectionstrings.com/postgresql/)\n- [How to Use PostgreSQL in Python](https://www.freecodecamp.org/news/postgresql-in-python/)" |
| 5872 | + "description": "PostgreSQL database configuration.\n\nPostgreSQL database is used by Lightspeed Core Stack service for storing\ninformation about conversation IDs. It can also be leveraged to store\nconversation history and information about quota usage.\n\nUseful resources:\n\n- [Psycopg: connection classes](https://www.psycopg.org/psycopg3/docs/api/connections.html)\n- [PostgreSQL connection strings](https://www.connectionstrings.com/postgresql/)\n- [How to Use PostgreSQL in Python](https://www.freecodecamp.org/news/postgresql-in-python/)" |
5866 | 5873 | }, |
5867 | 5874 | "ProviderHealthStatus": { |
5868 | 5875 | "properties": { |
|
6363 | 6370 | "examples": [ |
6364 | 6371 | { |
6365 | 6372 | "available_quotas": { |
6366 | | - "daily": 1000, |
6367 | | - "monthly": 50000 |
| 6373 | + "ClusterQuotaLimiter": 998911, |
| 6374 | + "UserQuotaLimiter": 998911 |
6368 | 6375 | }, |
6369 | 6376 | "conversation_id": "123e4567-e89b-12d3-a456-426614174000", |
6370 | | - "input_tokens": 150, |
6371 | | - "output_tokens": 75, |
6372 | | - "rag_chunks": [ |
6373 | | - { |
6374 | | - "content": "OLM is a component of the Operator Framework toolkit...", |
6375 | | - "score": 0.95, |
6376 | | - "source": "kubernetes-docs/operators.md" |
6377 | | - } |
6378 | | - ], |
| 6377 | + "input_tokens": 123, |
| 6378 | + "output_tokens": 456, |
6379 | 6379 | "referenced_documents": [ |
6380 | 6380 | { |
6381 | | - "doc_title": "Operator Lifecycle Manager (OLM)", |
6382 | | - "doc_url": "https://docs.openshift.com/container-platform/4.15/operators/olm/index.html" |
| 6381 | + "doc_title": "Operator Lifecycle Manager concepts and resources", |
| 6382 | + "doc_url": "https://docs.openshift.com/container-platform/4.15/operators/understanding/olm/olm-understanding-olm.html" |
6383 | 6383 | } |
6384 | 6384 | ], |
6385 | 6385 | "response": "Operator Lifecycle Manager (OLM) helps users install...", |
6386 | 6386 | "tool_calls": [ |
6387 | 6387 | { |
6388 | | - "arguments": { |
6389 | | - "query": "operator lifecycle manager" |
6390 | | - }, |
6391 | | - "result": { |
6392 | | - "chunks_found": 5 |
6393 | | - }, |
6394 | | - "tool_name": "knowledge_search" |
| 6388 | + "args": {}, |
| 6389 | + "id": "1", |
| 6390 | + "name": "tool1", |
| 6391 | + "type": "tool_call" |
| 6392 | + } |
| 6393 | + ], |
| 6394 | + "tool_results": [ |
| 6395 | + { |
| 6396 | + "content": "bla", |
| 6397 | + "id": "1", |
| 6398 | + "round": 1, |
| 6399 | + "status": "success", |
| 6400 | + "type": "tool_result" |
6395 | 6401 | } |
6396 | 6402 | ], |
6397 | 6403 | "truncated": false |
|
6891 | 6897 | "additionalProperties": false, |
6892 | 6898 | "type": "object", |
6893 | 6899 | "title": "ServiceConfiguration", |
6894 | | - "description": "Service configuration.\n\nLightspeed Core Stack is a REST API service that accepts requests\non a specified hostname and port. It is also possible to enable\nauthentication and specify the number of Uvicorn workers. When more\nworkers are specified, the service can handle requests concurrently." |
| 6900 | + "description": "Service configuration.\n\nLightspeed Core Stack is a REST API service that accepts requests on a\nspecified hostname and port. It is also possible to enable authentication\nand specify the number of Uvicorn workers. When more workers are specified,\nthe service can handle requests concurrently." |
6895 | 6901 | }, |
6896 | 6902 | "ServiceUnavailableResponse": { |
6897 | 6903 | "properties": { |
|
0 commit comments