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): voidRegister tools with the ToolRegistry. Called during plugin boot based on environment and plugin type.
Parameters
| Nombre | Tipo | Descripción |
|---|---|---|
| $registry | Milpa\app\Interfaces\Tooling\ToolRegistryInterface |
ToolProviderInterface::getPromptSections()
abstract public function getPromptSections(): arrayGet prompt sections for the AI agent. Returns an array of prompt lines describing the tools.
Returns
Lines to add to the system prompt