pub struct RunOptions {
pub max_iterations: Option<usize>,
pub resume: bool,
pub output_schema: Option<Value>,
pub title: bool,
pub images: Vec<ImagePart>,
}Expand description
What one run may differ in from the agent and the config. Default means “nothing
differs” — the agent’s own budget and gate.
Fields§
§max_iterations: Option<usize>Stop after this many model <-> tool round-trips. None uses the agent’s own budget
(which comes from [agent] max_iterations). 0 is read as 1: a run allowed no request
is not a run, and a silent no-op is the worst way to say that.
resume: boolContinue the stored transcript instead of starting a turn: no user message is appended, no
run_start hook fires, and the prompt is not used. This is what answering a pending
approval and picking the run back up looks like — the history already ends with the
model’s calls, and the results of the ones that were approved are about to join it.
output_schema: Option<Value>A JSON Schema every reply from this run must satisfy, sent as response_format. Set by
run_typed and by eclipse run --schema; None is an ordinary conversational run. It
shapes the request only — rejecting a reply is the validator’s job, because only the
caller knows what it is parsing into.
title: boolAllow the one naming call for this session’s name. On by default — a session someone will
read a list of deserves a name a model wrote — and turned off by the batch entry points
(run, a cron job), whose process is usually gone before the call could return and whose
sessions are named by their opening message either way.
images: Vec<ImagePart>Pictures this turn’s user message carries (#346). The stored message keeps them, so a
session reopened later still shows what was sent, and [vision] decides at request time
whether the model sees the bytes or a description of them.