QVAC Logo

ragListWorkspaces( )

Lists all RAG workspaces with their open status.

function ragListWorkspaces(): Promise<RagWorkspaceInfo[]>;

Parameters

None.

Returns

Promise<RagWorkspaceInfo[]> — Array of workspace info.

FieldTypeDescription
namestringWorkspace name
openbooleanWhether the workspace is currently loaded in memory

Throws

ErrorWhen
RAG_LIST_WORKSPACES_FAILEDThe operation fails

Example

const workspaces = await ragListWorkspaces();
// [{ name: "default", open: true }, { name: "my-docs", open: false }]

On this page