Skip to content

armgit / Pulse

Public Imported from GitHub
0

Real-time monitoring dashboard for Proxmox VE, PBS, Docker, Kubernetes, TrueNAS and vSphere. Self-hosted, with alerts for failed backups, full disks, unhealthy containers and offline nodes.

feat(ai): add RegisterTool method for runtime tool registration

rcourtmanb6bd9fd2d46c
diff --git a/internal/ai/tools/executor.go b/internal/ai/tools/executor.go
index 2ecc6c3c48..a114eed0d5 100644
--- a/internal/ai/tools/executor.go
+++ b/internal/ai/tools/executor.go
@@ -481,6 +481,11 @@ func (e *PulseToolExecutor) SetProtectedGuests(vmids []string) {
e.protectedGuests = vmids
}
+// RegisterTool allows tests or extensions to add tools at runtime.
+func (e *PulseToolExecutor) RegisterTool(tool RegisteredTool) {
+ e.registry.Register(tool)
+}
+
// Runtime setter methods for updating providers after creation
// SetMetadataUpdater sets the metadata updater