Skip to content
docsv0.8.0

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\Interfaces\Tooling\ToolRegistryInterface $registry): void

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

Parameters

Parameters of registerTools()
NameTypeDescription
$registryMilpa\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