Skip to main content

first_turn

Function first_turn 

Source
pub async fn first_turn(
    chat: &mut Chat,
    store: &Chats,
    cfg: &Config,
    from: Option<&Chat>,
) -> Result<()>
Expand description

Take the first agent turn of a conversation created by open.

from, when given, must be the same source conversation open was called with - it is read again here rather than stashed on chat because the persisted record carries only the source’s id, and the full record is what derived_background needs.