Agents 1.6.9
Edge AI Agents SDK
Loading...
Searching...
No Matches
agents::runtime Namespace Reference

runtime handling namespace More...

Namespaces

namespace  shutdown
 runtime shutdown handling namespace

Classes

struct  ComponentSpec
 Specification for a supervised component. More...
class  ServiceHandle
 Live state for one supervised component. More...
class  ServiceSupervisor
 Probes /health, asks the system service manager, or spawns the binary itself. More...

Enumerations

enum class  Origin {
  AlreadyRunning ,
  StartedByServiceManager ,
  SpawnedChild ,
  Unavailable
}
 How a component became reachable. More...

Functions

std::filesystem::path edgeAiDir ()
 Returns $EDGEAI_DIR if set, otherwise $HOME/.edgeai.

Detailed Description

runtime handling namespace

Enumeration Type Documentation

◆ Origin

enum class agents::runtime::Origin
strong

How a component became reachable.

Enumerator
AlreadyRunning 

/health was 200 on first probe

StartedByServiceManager 

launchd/systemd was asked to start it

SpawnedChild 

We posix_spawned / forked it.

Unavailable 

Could not reach it; degraded mode.

Function Documentation

◆ edgeAiDir()

std::filesystem::path agents::runtime::edgeAiDir ( )

Returns $EDGEAI_DIR if set, otherwise $HOME/.edgeai.

This is where the EdgeAI installer drops binaries, models, and the shared workspace config. Always returns a path (never empty) — falls back to "/" if even $HOME is unset, which means caller errors surface as "no such file".