diff --git a/apps/rowboat/app/lib/project_templates.ts b/apps/rowboat/app/lib/project_templates.ts index a98865cc..b28f91f2 100644 --- a/apps/rowboat/app/lib/project_templates.ts +++ b/apps/rowboat/app/lib/project_templates.ts @@ -24,25 +24,7 @@ export const templates: { [key: string]: z.infer } = { }, ], 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 } = { ], "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.", diff --git a/apps/rowboat/src/application/lib/agents-runtime/agents.ts b/apps/rowboat/src/application/lib/agents-runtime/agents.ts index 1a11a06a..7f6a38c4 100644 --- a/apps/rowboat/src/application/lib/agents-runtime/agents.ts +++ b/apps/rowboat/src/application/lib/agents-runtime/agents.ts @@ -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) {