Skip to contents

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.

Usage

gptr_steer(s, text, as = c("steer", "follow_up"))

Arguments

s

A session.

text

The message (secrets are redacted before it is queued).

as

"steer" or "follow_up".

Value

s, invisibly, at once.

Examples

session = peter("Summarize mtcars", model = gptr_fake_provider(list("ok")),
  .run = FALSE)
gptr_steer(session, "Use only the mpg column", as = "follow_up")