Skip to content
docs

ToolProviderInterface

Interface for plugins that provide AI tools. Plugins implementing this interface can: - Register tools with the ToolRegistry for AI agent use - Contribute sections to the AI system prompt

ToolProviderInterface::registerTools()

abstract public function registerTools(Milpa\app\Interfaces\Tooling\ToolRegistryInterface $registry): void

Register tools with the ToolRegistry. Called during plugin boot based on environment and plugin type.

Parameters

Parámetros de registerTools()
NombreTipoDescripción
$registryMilpa\app\Interfaces\Tooling\ToolRegistryInterface

ToolProviderInterface::getPromptSections()

abstract public function getPromptSections(): array

Get prompt sections for the AI agent. Returns an array of prompt lines describing the tools.

Returns

Lines to add to the system prompt