lint fix and rename file search

Signed-off-by: Francisco Javier Arceo <farceo@redhat.com>
This commit is contained in:
Francisco Javier Arceo 2025-10-24 20:24:03 -04:00
parent 2d9163529a
commit bb34e942d1
7 changed files with 26 additions and 25 deletions

View file

@ -1167,7 +1167,10 @@ export default function ChatPlaygroundPage() {
// find RAG toolgroups that have vector_db_ids configured
const ragToolgroups = selectedAgentConfig.toolgroups.filter(toolgroup => {
if (typeof toolgroup === "object" && toolgroup.name?.includes("file_search")) {
if (
typeof toolgroup === "object" &&
toolgroup.name?.includes("file_search")
) {
return toolgroup.args && "vector_db_ids" in toolgroup.args;
}
return false;