remove rag_search

This commit is contained in:
Ramnique Singh 2025-08-18 11:09:22 +05:30
parent 1f14b83475
commit bffd921837
2 changed files with 6 additions and 37 deletions

View file

@ -24,25 +24,7 @@ export const templates: { [key: string]: z.infer<typeof WorkflowTemplate> } = {
},
],
prompts: [],
tools: [
{
"name": "rag_search",
"description": "Fetch articles with knowledge relevant to the query",
"parameters": {
"type": "object",
"properties": {
"query": {
"type": "string",
"description": "The query to retrieve articles for"
}
},
"required": [
"query"
]
},
"isLibrary": true
}
],
tools: [],
},
"meeting-prep": {
@ -97,23 +79,6 @@ export const templates: { [key: string]: z.infer<typeof WorkflowTemplate> } = {
],
"prompts": [],
"tools": [
{
"name": "rag_search",
"description": "Fetch articles with knowledge relevant to the query",
"parameters": {
"type": "object",
"properties": {
"query": {
"type": "string",
"description": "The query to retrieve articles for"
}
},
"required": [
"query"
]
},
"isLibrary": true
},
{
"name": "List Events",
"description": "Returns events on the specified calendar.",

View file

@ -137,7 +137,11 @@ ${CHILD_TRANSFER_RELATED_INSTRUCTIONS}
agentLogger.log(`instructions: ${JSON.stringify(sanitized)}`);
agentLogger.log(`mentions: ${JSON.stringify(entities)}`);
const agentTools = entities.filter(e => e.type === 'tool').map(e => tools[e.name]).filter(Boolean) as Tool[];
const agentTools = entities
.filter(e => e.type === 'tool')
.filter(t => t.name !== 'rag_search') // remove rag_search tool
.map(e => tools[e.name])
.filter(Boolean)
// Add RAG tool if needed
if (config.ragDataSources?.length) {