Variable: webSearch
constwebSearch:ToPlugin<typeofWebSearchPlugin,WebSearchPluginConfig,"web-search">
Register the web-search runtime with AppKit.
Example
Section titled “Example”import { createApp, server } from "@databricks/appkit";import { webSearch } from "@dbx-tools/appkit-web-search";import { agents, mastra } from "@dbx-tools/appkit-mastra";
const researcher = agents.createAgent({ instructions: "Research questions with web_search, then read sources with web_fetch.", async tools(plugins) { return { ...(await plugins["web-search"].toolkit()) }; },});
await createApp({ plugins: [ server(), webSearch({ model: "gemini" }), mastra({ agents: researcher }), ],});