Use VectorStoreContent vs InterleavedContent in vector store files

This extracts the existing logic to convert chunks to
VectorStoreContent objects into a reusable method and uses that when
returning our list of Vector Store File contents.

It also adds an xfail test for deleting vector store files, as that's
not implemented yet but parking the implementation of that for now.

Signed-off-by: Ben Browning <bbrownin@redhat.com>
This commit is contained in:
Ben Browning 2025-06-18 15:01:42 -04:00
parent 65869d22a4
commit f0d56316a0
5 changed files with 127 additions and 74 deletions

View file

@ -12,7 +12,6 @@ from typing import Annotated, Any, Literal, Protocol, runtime_checkable
from pydantic import BaseModel, Field
from llama_stack.apis.common.content_types import InterleavedContentItem
from llama_stack.apis.inference import InterleavedContent
from llama_stack.apis.vector_dbs import VectorDB
from llama_stack.providers.utils.telemetry.trace_protocol import trace_protocol
@ -208,7 +207,7 @@ class VectorStoreFileContentsResponse(BaseModel):
file_id: str
filename: str
attributes: dict[str, Any]
content: list[InterleavedContentItem]
content: list[VectorStoreContent]
@json_schema_type