The one enqueue function behind the pipe into a running session, the pause menu and
ctx$send(). A steer reaches the model after the current tool results, as "The user sent this
message while you were working: ..."; a follow-up when the agent would otherwise stop. On an
idle session the item is taken when the next run starts. The queue lives in the R process;
items still queued when it ends are not saved. In a script replayed from its document, a steer
the replayed block already recorded is not sent again.
From model code during a run, gptr_steer() needs an allowing permission decision (a person's,
in every mode but yolo; see gptr_security); otherwise it signals
gptr_error_permission.
Usage
gptr_steer(s, text, as = c("steer", "follow_up"))Examples
session = peter("Summarize mtcars", model = gptr_fake_provider(list("ok")),
.run = FALSE)
gptr_steer(session, "Use only the mpg column", as = "follow_up")