mirror of
https://github.com/rowboatlabs/rowboat.git
synced 2026-05-16 18:25:17 +02:00
remove rag_search
This commit is contained in:
parent
1f14b83475
commit
bffd921837
2 changed files with 6 additions and 37 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue