const agent = new Agent({
name: 'Advanced Support Agent',
instructions: 'Help users with multiple knowledge bases.',
model: openai('gpt-4o'),
rag: {
vectorStores: [
{
id: 'support-docs',
name: 'Support Documentation',
description: 'General support articles',
threshold: 0.7,
k: 5,
searchPrompt: 'Use search_support-docs when user has technical problems or questions',
},
{
id: 'api-docs',
name: 'API Documentation',
description: 'Technical API reference',
threshold: 0.8,
k: 3,
searchPrompt: 'Use search_api-docs when user asks about API endpoints or integration',
},
],
},
});