mirror of
https://github.com/rowboatlabs/rowboat.git
synced 2026-06-03 19:25:19 +02:00
remove rag_search
This commit is contained in:
parent
1f14b83475
commit
bffd921837
2 changed files with 6 additions and 37 deletions
|
|
@ -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.",
|
||||
|
|
|
|||
|
|
@ -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