feat(agent): Refactor agent architecture to enhance content routing and file search capabilities
- Introduced ContentRouterAgent to determine the next step in information gathering (file search, web search, or analysis) based on task relevance and focus mode. - Added FileSearchAgent to handle searching through attached files, processing file content into searchable documents. - Updated SynthesizerAgent to utilize a prompt template for generating comprehensive responses based on context and user queries. - Enhanced TaskManagerAgent to consider file context when creating tasks. - Improved AnalyzerAgent to assess the sufficiency of context, including file and web documents. - Implemented utility functions for processing files and ranking documents based on similarity to queries. - Updated prompts to include new instructions for handling file context and routing decisions. - Adjusted agent search workflow to integrate new agents and support file handling.
This commit is contained in:
parent
7b47d3dacb
commit
de3d26fb15
20 changed files with 1044 additions and 96 deletions
|
|
@ -2,6 +2,7 @@ import { webSearchResponsePrompt, webSearchRetrieverPrompt } from './webSearch';
|
|||
import { localResearchPrompt } from './localResearch';
|
||||
import { chatPrompt } from './chat';
|
||||
import { taskBreakdownPrompt } from './taskBreakdown';
|
||||
import { synthesizerPrompt } from './synthesizer';
|
||||
|
||||
const prompts = {
|
||||
webSearchResponsePrompt,
|
||||
|
|
@ -9,6 +10,7 @@ const prompts = {
|
|||
localResearchPrompt,
|
||||
chatPrompt,
|
||||
taskBreakdownPrompt,
|
||||
synthesizerPrompt,
|
||||
};
|
||||
|
||||
export default prompts;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue