Skip to main content

fresh_message

Function fresh_message 

Source
fn fresh_message(
    state: &AppState,
    agent: &AgentDefinition,
    req: &UpdateRequest,
    harness: &str,
    route: &str,
    model: &str,
) -> Result<Option<String>, Refusal>
Expand description

The first message of the fresh session fresh: true asks for, once it is known to be possible: None when the request does not ask for one. Checked before the agent moves, so a refusal leaves it where it was.