Skip to content

openagents_sdk::owner_notifications

An agent asks its owner to return to its chat. Grant this separately for each agent.

ItemWhat it does
NotifyOwner structA notification request whose ID stays the same across retries.
OwnerNote structPrivate note fetched by the phone; none of these fields enter the push payload.
OwnerNotification structAn account-private note fetched by a phone after an attention wake.
chat_from_deep_link fnReturn the chat ID from an OpenAgents chat link.

NotifyOwner

pub struct NotifyOwner {
    pub request_id: String,
    pub note: OwnerNote,
}

A notification request whose ID stays the same across retries.

OwnerNote

pub struct OwnerNote {
    pub agent: String,
    pub chat: String,
    pub title: String,
    pub body: String,
}

Private note fetched by the phone; none of these fields enter the push payload.

OwnerNote::validate

pub fn validate(&self) -> Result<(), Error>

Check identifiers, byte limits, and the app's plain-language copy rules.

OwnerNotification

pub struct OwnerNotification {
    pub request_id: String,
    pub note: OwnerNote,
    pub deep_link: String,
}

An account-private note fetched by a phone after an attention wake.