@@ -675,10 +675,10 @@ async def retrieve_response( # pylint: disable=too-many-locals,too-many-branche
675675 ),
676676 }
677677
678- vector_db_ids = [
679- vector_db . identifier for vector_db in await client .vector_dbs .list ()
678+ vector_store_ids = [
679+ vector_store . id for vector_store in ( await client .vector_stores .list ()). data
680680 ]
681- toolgroups = (get_rag_toolgroups (vector_db_ids ) or []) + [
681+ toolgroups = (get_rag_toolgroups (vector_store_ids ) or []) + [
682682 mcp_server .name for mcp_server in configuration .mcp_servers
683683 ]
684684 # Convert empty list to None for consistency with existing behavior
@@ -764,30 +764,30 @@ def validate_attachments_metadata(attachments: list[Attachment]) -> None:
764764
765765
766766def get_rag_toolgroups (
767- vector_db_ids : list [str ],
767+ vector_store_ids : list [str ],
768768) -> list [Toolgroup ] | None :
769769 """
770- Return a list of RAG Tool groups if the given vector DB list is not empty.
770+ Return a list of RAG Tool groups if the given vector store list is not empty.
771771
772772 Generate a list containing a RAG knowledge search toolgroup if
773- vector database IDs are provided.
773+ vector store IDs are provided.
774774
775775 Parameters:
776- vector_db_ids (list[str]): List of vector database identifiers to include in the toolgroup.
776+ vector_store_ids (list[str]): List of vector store identifiers to include in the toolgroup.
777777
778778 Returns:
779779 list[Toolgroup] | None: A list with a single RAG toolgroup if
780- vector_db_ids is non-empty; otherwise, None.
780+ vector_store_ids is non-empty; otherwise, None.
781781 """
782782 return (
783783 [
784784 ToolgroupAgentToolGroupWithArgs (
785785 name = "builtin::rag/knowledge_search" ,
786786 args = {
787- "vector_db_ids " : vector_db_ids ,
787+ "vector_store_ids " : vector_store_ids ,
788788 },
789789 )
790790 ]
791- if vector_db_ids
791+ if vector_store_ids
792792 else None
793793 )
0 commit comments