agents.notify
For a thread’s agent: notifies the user about its thread, in the omfp window they use and, while no window has the focus (always with urgency: "high"), on their subscribed devices; opening it shows the thread. For a finished long task or when the user is needed, once per occasion, never for progress (PRT-452, DMN-1022).
Params: AgentNotifyParams
Section titled “Params: AgentNotifyParams”/** * `agents.notify` params (PRT-452, DMN-1022): a notification about the calling thread; title and body trimmed, at most * 100 and 500 characters. */export type AgentNotifyParams = { body: string; title: string; /** `high` reaches the user's devices even while they use an omfp window. Default `normal`. */ urgency?: Urgency | null;};Result: NotifySent
Section titled “Result: NotifySent”/** What `notify.send` reached (PRT-240): an omfp window, and how many devices the push went to. */export type NotifySent = { /** The devices the push was sent to. */ devices: number; /** An omfp window shows it (a notice, or a system notification while it has no focus). */ window: boolean;};Types they use
Section titled “Types they use”/** * How pressing a notification is: `normal` reaches the phones only while no omfp window has the focus, `high` * always (PRT-240). */export type Urgency = "normal" | "high";