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

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