Skip to main content

Type Alias: Plugins

Type Alias: Plugins

type Plugins = Record<string, PluginToolkitProvider>;

Plugin map passed to the function form of AgentDefinition.tools. Each entry exposes a .toolkit(opts?) method that returns a record of ToolkitEntry markers ready to be spread into a tool record.

AppKit does not statically know which plugins the surrounding createApp will register, so this is a plain string-keyed record. Refer to plugins by the name used in createApp({ plugins: [...] }); unknown names resolve to undefined at runtime.

Example

const support = createAgent({
  instructions: "...",
  tools(plugins) {
    return {
      get_weather: tool({ ... }),
      ...plugins.analytics.toolkit(),
      ...plugins.files.toolkit({ only: ["uploads.read"] }),
    };
  },
});

Databricks Developer Hub

Ready to ship your next agentic app in minutes?

Read docs