Skip to main content

is_machine_prompt

Function is_machine_prompt 

Source
fn is_machine_prompt(message: &Message) -> bool
Expand description

Whether a user row is forge’s own prompt rather than a person’s or a peer’s.

A forged prompt is an ordinary user row in the transcript, and the forged id is the only mark the CLI keeps. Without this the judgment prompt and the brief a session arrived by would count as its own turns.