mirror of
https://github.com/ItzCrazyKns/Perplexica.git
synced 2026-04-10 13:54:28 +00:00
feat(additional-config): add focus mode
This commit is contained in:
@@ -67,6 +67,7 @@ class ActionRegistry {
|
|||||||
additionalConfig: AdditionalConfig & {
|
additionalConfig: AdditionalConfig & {
|
||||||
researchBlockId: string;
|
researchBlockId: string;
|
||||||
fileIds: string[];
|
fileIds: string[];
|
||||||
|
mode: SearchAgentConfig['mode'];
|
||||||
},
|
},
|
||||||
) {
|
) {
|
||||||
const action = this.actions.get(name);
|
const action = this.actions.get(name);
|
||||||
@@ -83,6 +84,7 @@ class ActionRegistry {
|
|||||||
additionalConfig: AdditionalConfig & {
|
additionalConfig: AdditionalConfig & {
|
||||||
researchBlockId: string;
|
researchBlockId: string;
|
||||||
fileIds: string[];
|
fileIds: string[];
|
||||||
|
mode: SearchAgentConfig['mode'];
|
||||||
},
|
},
|
||||||
): Promise<ActionOutput[]> {
|
): Promise<ActionOutput[]> {
|
||||||
const results: ActionOutput[] = [];
|
const results: ActionOutput[] = [];
|
||||||
|
|||||||
@@ -167,6 +167,7 @@ class Researcher {
|
|||||||
session: session,
|
session: session,
|
||||||
researchBlockId: researchBlockId,
|
researchBlockId: researchBlockId,
|
||||||
fileIds: input.config.fileIds,
|
fileIds: input.config.fileIds,
|
||||||
|
mode: input.config.mode,
|
||||||
});
|
});
|
||||||
|
|
||||||
actionOutput.push(...actionResults);
|
actionOutput.push(...actionResults);
|
||||||
|
|||||||
@@ -117,6 +117,7 @@ export interface ResearchAction<
|
|||||||
additionalConfig: AdditionalConfig & {
|
additionalConfig: AdditionalConfig & {
|
||||||
researchBlockId: string;
|
researchBlockId: string;
|
||||||
fileIds: string[];
|
fileIds: string[];
|
||||||
|
mode: SearchAgentConfig['mode'];
|
||||||
},
|
},
|
||||||
) => Promise<ActionOutput>;
|
) => Promise<ActionOutput>;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user