|
4447 | 4447 | ], |
4448 | 4448 | "summary": "Handle A2A Jsonrpc", |
4449 | 4449 | "description": "Handle A2A JSON-RPC requests following the A2A protocol specification.\n\nThis endpoint uses the DefaultRequestHandler from the A2A SDK to handle\nall JSON-RPC requests including message/send, message/stream, etc.\n\nThe A2A SDK application is created per-request to include authentication\ncontext while still leveraging FastAPI's authorization middleware.\n\nAutomatically detects streaming requests (message/stream JSON-RPC method)\nand returns a StreamingResponse to enable real-time chunk delivery.\n\nArgs:\n request: FastAPI request object\n auth: Authentication tuple\n mcp_headers: MCP headers for context propagation\n\nReturns:\n JSON-RPC response or streaming response", |
4450 | | - "operationId": "handle_a2a_jsonrpc_a2a_post", |
| 4450 | + "operationId": "handle_a2a_jsonrpc_a2a_get", |
4451 | 4451 | "responses": { |
4452 | 4452 | "200": { |
4453 | 4453 | "description": "Successful Response", |
|
4465 | 4465 | ], |
4466 | 4466 | "summary": "Handle A2A Jsonrpc", |
4467 | 4467 | "description": "Handle A2A JSON-RPC requests following the A2A protocol specification.\n\nThis endpoint uses the DefaultRequestHandler from the A2A SDK to handle\nall JSON-RPC requests including message/send, message/stream, etc.\n\nThe A2A SDK application is created per-request to include authentication\ncontext while still leveraging FastAPI's authorization middleware.\n\nAutomatically detects streaming requests (message/stream JSON-RPC method)\nand returns a StreamingResponse to enable real-time chunk delivery.\n\nArgs:\n request: FastAPI request object\n auth: Authentication tuple\n mcp_headers: MCP headers for context propagation\n\nReturns:\n JSON-RPC response or streaming response", |
4468 | | - "operationId": "handle_a2a_jsonrpc_a2a_post", |
| 4468 | + "operationId": "handle_a2a_jsonrpc_a2a_get", |
4469 | 4469 | "responses": { |
4470 | 4470 | "200": { |
4471 | 4471 | "description": "Successful Response", |
|
5522 | 5522 | "title": "ByokRag", |
5523 | 5523 | "description": "BYOK (Bring Your Own Knowledge) RAG configuration." |
5524 | 5524 | }, |
5525 | | - "ByokRagConfiguration": { |
5526 | | - "properties": { |
5527 | | - "enabled": { |
5528 | | - "type": "boolean", |
5529 | | - "title": "BYOK RAG enabled", |
5530 | | - "description": "When True, queries BYOK vector stores for RAG context.", |
5531 | | - "default": false |
5532 | | - } |
5533 | | - }, |
5534 | | - "additionalProperties": false, |
5535 | | - "type": "object", |
5536 | | - "title": "ByokRagConfiguration", |
5537 | | - "description": "BYOK RAG configuration." |
5538 | | - }, |
5539 | 5525 | "CORSConfiguration": { |
5540 | 5526 | "properties": { |
5541 | 5527 | "allow_origins": { |
|
5739 | 5725 | "$ref": "#/components/schemas/RagConfiguration", |
5740 | 5726 | "title": "RAG configuration", |
5741 | 5727 | "description": "Configuration for all RAG strategies (inline and tool-based)." |
| 5728 | + }, |
| 5729 | + "okp": { |
| 5730 | + "$ref": "#/components/schemas/OkpConfiguration", |
| 5731 | + "title": "OKP configuration", |
| 5732 | + "description": "OKP provider settings. Only used when 'okp-rag' is listed in rag.inline or rag.tool." |
5742 | 5733 | } |
5743 | 5734 | }, |
5744 | 5735 | "additionalProperties": false, |
|
6980 | 6971 | } |
6981 | 6972 | ] |
6982 | 6973 | }, |
6983 | | - "InlineRagConfiguration": { |
6984 | | - "properties": { |
6985 | | - "okp": { |
6986 | | - "$ref": "#/components/schemas/OkpRagConfiguration", |
6987 | | - "title": "OKP RAG configuration", |
6988 | | - "description": "Configuration for OKP RAG (inline)." |
6989 | | - }, |
6990 | | - "byok": { |
6991 | | - "$ref": "#/components/schemas/ByokRagConfiguration", |
6992 | | - "title": "BYOK RAG configuration", |
6993 | | - "description": "Configuration for BYOK RAG (inline)." |
6994 | | - } |
6995 | | - }, |
6996 | | - "additionalProperties": false, |
6997 | | - "type": "object", |
6998 | | - "title": "InlineRagConfiguration", |
6999 | | - "description": "Inline RAG configuration.\n\nControls inline RAG from OKP and BYOK vector stores." |
7000 | | - }, |
7001 | 6974 | "InternalServerErrorResponse": { |
7002 | 6975 | "properties": { |
7003 | 6976 | "status_code": { |
|
7607 | 7580 | "title": "OAuthFlows", |
7608 | 7581 | "description": "Defines the configuration for the supported OAuth 2.0 flows." |
7609 | 7582 | }, |
7610 | | - "OkpRagConfiguration": { |
| 7583 | + "OkpConfiguration": { |
7611 | 7584 | "properties": { |
7612 | | - "enabled": { |
7613 | | - "type": "boolean", |
7614 | | - "title": "OKP RAG enabled", |
7615 | | - "description": "When True, queries OKP for RAG context.", |
7616 | | - "default": false |
7617 | | - }, |
7618 | 7585 | "offline": { |
7619 | 7586 | "type": "boolean", |
7620 | | - "title": "Offline mode", |
7621 | | - "description": "When True, use parent_id for chunk source URLs. When False, use reference_url for chunk source URLs.", |
| 7587 | + "title": "OKP offline mode", |
| 7588 | + "description": "When True, use parent_id for OKP chunk source URLs. When False, use reference_url for chunk source URLs.", |
7622 | 7589 | "default": true |
| 7590 | + }, |
| 7591 | + "chunk_filter_query": { |
| 7592 | + "type": "string", |
| 7593 | + "title": "OKP chunk filter query", |
| 7594 | + "description": "OKP filter query applied to every OKP search request. Defaults to 'is_chunk:true' to restrict results to chunk documents. To add extra constraints, extend the expression using boolean syntax, e.g. 'is_chunk:true AND product:*openshift*'.", |
| 7595 | + "default": "is_chunk:true" |
7623 | 7596 | } |
7624 | 7597 | }, |
7625 | 7598 | "additionalProperties": false, |
7626 | 7599 | "type": "object", |
7627 | | - "title": "OkpRagConfiguration", |
7628 | | - "description": "OKP RAG configuration." |
| 7600 | + "title": "OkpConfiguration", |
| 7601 | + "description": "OKP (Offline Knowledge Portal) provider configuration.\n\nControls provider-specific behaviour for the OKP vector store.\nOnly relevant when ``\"okp-rag\"`` is listed in ``rag.inline`` or ``rag.tool``." |
7629 | 7602 | }, |
7630 | 7603 | "OpenIdConnectSecurityScheme": { |
7631 | 7604 | "properties": { |
|
8804 | 8777 | "RagConfiguration": { |
8805 | 8778 | "properties": { |
8806 | 8779 | "inline": { |
8807 | | - "$ref": "#/components/schemas/InlineRagConfiguration", |
8808 | | - "title": "Inline RAG configuration", |
8809 | | - "description": "Configuration for inline RAG from OKP and BYOK vector stores." |
| 8780 | + "items": { |
| 8781 | + "type": "string" |
| 8782 | + }, |
| 8783 | + "type": "array", |
| 8784 | + "title": "Inline RAG IDs", |
| 8785 | + "description": "RAG IDs whose sources are injected as context before the LLM call. Use 'okp-rag' to enable OKP inline RAG. Empty by default (no inline RAG)." |
8810 | 8786 | }, |
8811 | 8787 | "tool": { |
8812 | | - "$ref": "#/components/schemas/ToolRagConfiguration", |
8813 | | - "title": "Tool RAG configuration", |
8814 | | - "description": "Configuration for exposing RAG as a tool that the LLM can call." |
| 8788 | + "anyOf": [ |
| 8789 | + { |
| 8790 | + "items": { |
| 8791 | + "type": "string" |
| 8792 | + }, |
| 8793 | + "type": "array" |
| 8794 | + }, |
| 8795 | + { |
| 8796 | + "type": "null" |
| 8797 | + } |
| 8798 | + ], |
| 8799 | + "title": "Tool RAG IDs", |
| 8800 | + "description": "RAG IDs made available to the LLM as a file_search tool. Use 'okp-rag' to include the OKP vector store. When omitted, all registered BYOK vector stores are used (backward compatibility)." |
8815 | 8801 | } |
8816 | 8802 | }, |
8817 | 8803 | "additionalProperties": false, |
8818 | 8804 | "type": "object", |
8819 | 8805 | "title": "RagConfiguration", |
8820 | | - "description": "RAG strategy configuration.\n\nControls different RAG strategies: inline and tool-based." |
| 8806 | + "description": "RAG strategy configuration.\n\nControls which RAG sources are used for inline and tool-based retrieval.\n\nEach strategy lists RAG IDs to include. The special ID ``\"okp-rag\"`` defined in constants,\nactivates the OKP provider; all other IDs refer to entries in ``byok_rag``.\n\nBackward compatibility:\n - ``inline`` defaults to ``[]`` (no inline RAG).\n - ``tool`` defaults to ``None`` which means all registered vector stores\n are used (identical to the previous ``tool.byok.enabled = True`` default)." |
8821 | 8807 | }, |
8822 | 8808 | "ReadinessResponse": { |
8823 | 8809 | "properties": { |
|
9585 | 9571 | "title": "ToolCallSummary", |
9586 | 9572 | "description": "Model representing a tool call made during response generation (for tool_calls list)." |
9587 | 9573 | }, |
9588 | | - "ToolRagConfiguration": { |
9589 | | - "properties": { |
9590 | | - "byok": { |
9591 | | - "$ref": "#/components/schemas/ByokRagConfiguration", |
9592 | | - "title": "BYOK RAG configuration", |
9593 | | - "description": "Configuration for BYOK RAG as a tool." |
9594 | | - } |
9595 | | - }, |
9596 | | - "additionalProperties": false, |
9597 | | - "type": "object", |
9598 | | - "title": "ToolRagConfiguration", |
9599 | | - "description": "Tool RAG configuration.\n\nControls whether RAG functionality is exposed as a tool that the LLM can call." |
9600 | | - }, |
9601 | 9574 | "ToolResultSummary": { |
9602 | 9575 | "properties": { |
9603 | 9576 | "id": { |
|
0 commit comments