Skip to main content

Type Alias: AgentToolsFn()

Type Alias: AgentToolsFn()

type AgentToolsFn = (plugins: Plugins) => AgentTools;

Function form of AgentDefinition.tools. Receives the typed Plugins map and returns a tool record. Invoked exactly once at setup (or once per runAgent call in standalone mode); the result is cached as the agent's resolved tool record.

Use the function form when an agent needs tools from registered plugins. The bare object form is fine when an agent only uses inline tools.

Parameters

ParameterType
pluginsPlugins

Returns

AgentTools

Databricks Developer Hub

Ready to ship your next agentic app in minutes?

Read docs