feat(additional-config): add focus mode

This commit is contained in:
ItzCrazyKns
2026-04-08 23:21:02 +05:30
parent cbe538cc36
commit 65b2c3f234
3 changed files with 4 additions and 0 deletions

View File

@@ -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[] = [];

View File

@@ -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);

View File

@@ -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>;
} }