Skip to content

Variable: search

const search: ToPlugin<typeof SearchPlugin, SearchPluginConfig, "search">

Register the AI Search plugin with AppKit.

import { createApp, server } from "@databricks/appkit";
import { search } from "@dbx-tools/search";
import { agents, mastra } from "@dbx-tools/appkit-mastra";
const support = agents.createAgent({
instructions: "Answer from the docs; use `search` to find them.",
async tools(plugins) {
return { ...(await plugins.search.toolkit()) };
},
});
await createApp({
plugins: [
server(),
search({ index: "main.support.docs" }),
mastra({ agents: support }),
],
});