llama-stack-mirror/tests
Kevin Postlethwait a57985eeac
fix: add check for interleavedContent (#1973)
# What does this PR do?
Checks for RAGDocument of type InterleavedContent

I noticed when stepping through the code that the supported types for
`RAGDocument` included `InterleavedContent` as a content type. This type
is not checked against before putting the `doc.content` is regex matched
against. This would cause a runtime error. This change adds an explicit
check for type.

The only other part that I'm unclear on is how to handle the
`ImageContent` type since this would always just return `<image>` which
seems like an undesired behavior. Should the `InterleavedContent` type
be removed from `RAGDocument` and replaced with `URI | str`?

## Test Plan


[//]: # (## Documentation)

---------

Signed-off-by: Kevin <kpostlet@redhat.com>
2025-05-06 09:55:07 -07:00
..
client-sdk/post_training feat: Add nemo customizer (#1448) 2025-03-25 11:01:10 -07:00
external-provider/llama-stack-provider-ollama refactor: Replace SQLITE_DB_PATH by SQLITE_STORE_DIR env in templates (#2055) 2025-04-29 15:28:10 -07:00
integration fix: test_datasets HF scenario in CI (#2090) 2025-05-06 14:09:15 +02:00
unit fix: add check for interleavedContent (#1973) 2025-05-06 09:55:07 -07:00
verifications chore: enable pyupgrade fixes (#1806) 2025-05-01 14:23:50 -07:00
__init__.py refactor(test): introduce --stack-config and simplify options (#1404) 2025-03-05 17:02:02 -08:00