fix(FN-000): add qmd install button
This commit is contained in:
@@ -406,6 +406,12 @@ export interface MemoryRetrievalTestResult {
|
||||
results: MemorySearchResult[];
|
||||
}
|
||||
|
||||
export interface QmdInstallResult {
|
||||
success: boolean;
|
||||
qmdAvailable: boolean;
|
||||
qmdInstallCommand: string;
|
||||
}
|
||||
|
||||
/**
|
||||
* Fetch the current memory backend status and capabilities.
|
||||
* Use this to determine which backend is active and what operations it supports.
|
||||
@@ -414,6 +420,12 @@ export function fetchMemoryBackendStatus(projectId?: string): Promise<MemoryBack
|
||||
return api<MemoryBackendStatus>(withProjectId("/memory/backend", projectId));
|
||||
}
|
||||
|
||||
export function installQmd(projectId?: string): Promise<QmdInstallResult> {
|
||||
return api<QmdInstallResult>(withProjectId("/memory/install-qmd", projectId), {
|
||||
method: "POST",
|
||||
});
|
||||
}
|
||||
|
||||
export function testMemoryRetrieval(query: string, projectId?: string): Promise<MemoryRetrievalTestResult> {
|
||||
return api<MemoryRetrievalTestResult>(withProjectId("/memory/test", projectId), {
|
||||
method: "POST",
|
||||
|
||||
Reference in New Issue
Block a user