#[non_exhaustive]pub enum InputOrigin {
Start,
Mailbox,
Continuation,
}Expand description
Which of reef’s three input routes produced an admitted batch.
The routes are indistinguishable in the transcript — every one of them
records an item::User and nothing in the record says which — so this is
stated here or nowhere. A consumer that renders a conversation needs it: a
continuation is the agent asking itself to keep going, and drawing it as
something the human said would be wrong.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Start
The input Agent::start admitted, recorded before the loop began.
This is the only route that can be rewritten before it is recorded, by a
RunHooks::prepare registration, which
is why the batch is reported rather than assumed to be what the caller
passed.
Mailbox
A batch claimed from the Session’s InputMailbox.
Continuation
Items a RunHooks::compose_continuation
registration composed to open another Turn.