Skip to main content

enqueue_note

Function enqueue_note 

Source
pub(super) async fn enqueue_note(
    state: &AppState,
    lookup: &str,
    name: &str,
) -> Option<Value>
Expand description

What to tell a sender who filed a task for the agent lookup (a name or a UID) that the agent can’t take up now: its availability (target) and a note saying the task waits, naming the agent name as the sender typed it (lookup when that is empty). None for an agent that can work, a group or unaddressed task, or a name no agent here has, so the answer stays as it was.