2025-06-24 12:34:22 +00:00
|
|
|
import 'dotenv/config'
|
|
|
|
|
|
|
|
import { defineConfig } from '@agentic/platform'
|
|
|
|
|
|
|
|
export default defineConfig({
|
|
|
|
name: 'search',
|
2025-06-25 12:56:03 +00:00
|
|
|
description:
|
|
|
|
'Google Search tool. Useful for finding up-to-date news and information about any topic.',
|
2025-06-25 06:55:39 +00:00
|
|
|
origin: {
|
|
|
|
type: 'mcp',
|
|
|
|
url: process.env.MCP_ORIGIN_URL!
|
2025-06-24 12:34:22 +00:00
|
|
|
},
|
|
|
|
toolConfigs: [
|
|
|
|
{
|
|
|
|
name: 'search',
|
2025-06-25 12:56:03 +00:00
|
|
|
// Allow results to be cached publicly for ~1 minute
|
2025-06-24 12:34:22 +00:00
|
|
|
cacheControl: 'public, max-age=60, s-maxage=60 stale-while-revalidate=10'
|
|
|
|
}
|
|
|
|
]
|
|
|
|
})
|