Skip to content

openagents_sdk::cloud_host

Our cloud (#11852): the account's OpenAgents engine on one of its cloud computers. Starting it makes the computer the first time and runs the engine for up to an hour; the engine then shows as one more of the account's devices. Stop ends it and stops the computer.

ItemWhat it does
CloudHost structOur cloud's state.
CloudHostComputer structThe cloud computer behind Our cloud.

CloudHost

pub struct CloudHost {
    pub computer: Option<CloudHostComputer>,
    pub engine: String,
    pub device_name: String,
    pub started_unix: Option<u64>,
    pub until_unix: Option<u64>,
}

Our cloud's state. engine is running while the engine's run lasts.

CloudHost::running

pub fn running(&self) -> bool

Whether the engine is running.

CloudHostComputer

pub struct CloudHostComputer {
    pub id: String,
    pub state: String,
}

The cloud computer behind Our cloud.