|
Agents 1.6.9
Edge AI Agents SDK
|
Probes /health, asks the system service manager, or spawns the binary itself. More...
#include <service_supervisor.h>
Classes | |
| struct | Status |
| Status tracked components. More... | |
Public Member Functions | |
| ServiceSupervisor (const ServiceSupervisor &)=delete | |
| ServiceSupervisor & | operator= (const ServiceSupervisor &)=delete |
| std::shared_ptr< ServiceHandle > | ensure (const ComponentSpec &spec) |
| Make a component reachable, or return Unavailable. | |
| std::vector< Status > | snapshot () const |
| Snapshot of all tracked components. | |
| void | shutdown () |
| SIGTERM → grace → SIGKILL for owned children. Idempotent. Service-managed children are left alone. | |
Probes /health, asks the system service manager, or spawns the binary itself.
Ownership rules:
One supervisor per Hannah process. Not copyable.
| std::shared_ptr< ServiceHandle > agents::runtime::ServiceSupervisor::ensure | ( | const ComponentSpec & | spec | ) |
Make a component reachable, or return Unavailable.
Blocks up to spec.startup_timeout. Safe to call multiple times for the same name (returns the existing handle).
| std::vector< Status > agents::runtime::ServiceSupervisor::snapshot | ( | ) | const |
Snapshot of all tracked components.