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 & {
|
||||
researchBlockId: string;
|
||||
fileIds: string[];
|
||||
mode: SearchAgentConfig['mode'];
|
||||
},
|
||||
) {
|
||||
const action = this.actions.get(name);
|
||||
@@ -83,6 +84,7 @@ class ActionRegistry {
|
||||
additionalConfig: AdditionalConfig & {
|
||||
researchBlockId: string;
|
||||
fileIds: string[];
|
||||
mode: SearchAgentConfig['mode'];
|
||||
},
|
||||
): Promise<ActionOutput[]> {
|
||||
const results: ActionOutput[] = [];
|
||||
|
||||
@@ -167,6 +167,7 @@ class Researcher {
|
||||
session: session,
|
||||
researchBlockId: researchBlockId,
|
||||
fileIds: input.config.fileIds,
|
||||
mode: input.config.mode,
|
||||
});
|
||||
|
||||
actionOutput.push(...actionResults);
|
||||
|
||||
@@ -117,6 +117,7 @@ export interface ResearchAction<
|
||||
additionalConfig: AdditionalConfig & {
|
||||
researchBlockId: string;
|
||||
fileIds: string[];
|
||||
mode: SearchAgentConfig['mode'];
|
||||
},
|
||||
) => Promise<ActionOutput>;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user