Skip to main content

record

Function record 

Source
pub fn record(
    talk: &mut Talk,
    store: &Talks,
    text: &str,
    attachments: Vec<Attachment>,
) -> Result<String>
Expand description

Append the operator’s turn and flush it, without invoking anything.

Split out of say so POST /api/talks/{id}/say can answer once the message is safely on disk, and run the agent’s half in the background - holding the connection for a turn that can run fifteen minutes is the wrong shape for a phone.