Skip to main content

file_draft

Function file_draft 

Source
pub fn file_draft(
    chat: &mut Chat,
    store: &Chats,
    queue: &Queue,
    priority: i32,
) -> Result<String>
Expand description

Validate the draft with plan::review_draft and queue it.

Returns the queued task’s id. The conversation is left on disk either way: a refused draft is a conversation to continue, not an error to recover from, and the operator’s next message can ask for the missing section.