feat: manage pluggable search services
This commit is contained in:
@@ -625,4 +625,37 @@ export type MindSearchConfig = {
|
||||
mode: 'off' | 'shadow' | 'assist';
|
||||
providers: { searxng: boolean; github: boolean; reader: boolean };
|
||||
settings: { searxngEndpoint: string; maxResults: number; timeoutMs: number; readerMaxChars: number };
|
||||
services: MindSearchService[];
|
||||
routes: MindSearchRoutes;
|
||||
};
|
||||
|
||||
export type MindSearchService = {
|
||||
id: string;
|
||||
name: string;
|
||||
kind: 'provider' | 'reader' | 'orchestrator';
|
||||
adapter: 'searxng' | 'github' | 'reader' | 'research-http';
|
||||
capabilities: string[];
|
||||
endpoint: string;
|
||||
healthPath: string;
|
||||
enabled: boolean;
|
||||
timeoutMs: number;
|
||||
priority: number;
|
||||
};
|
||||
|
||||
export type MindSearchRoutes = {
|
||||
web: string;
|
||||
news: string;
|
||||
code: string;
|
||||
read: string;
|
||||
research: string;
|
||||
};
|
||||
|
||||
export type MindSearchServiceTestResult = {
|
||||
ok: boolean;
|
||||
serviceId: string;
|
||||
adapter: MindSearchService['adapter'];
|
||||
status: number | null;
|
||||
latencyMs: number;
|
||||
resultCount?: number | null;
|
||||
message: string;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user