Skip to main content

respond

Function respond 

Source
pub async fn respond(
    chat: &mut Chat,
    store: &Chats,
    cfg: &Config,
    text: &str,
) -> Result<()>
Expand description

The agent’s half of a turn: invoke, append, flush.

Pairs with record. text is the operator’s message that this reply answers - the same string record returned, so the transcript and the prompt cannot disagree.