pub struct RunOptions {
pub inputs: BTreeMap<String, Value>,
pub approval: ApprovalMode,
pub max_steps: u32,
pub memory: BTreeMap<String, Value>,
pub stop_at: Option<String>,
pub resume: Option<Resumption>,
pub pricing: Pricing,
}Fields§
§inputs: BTreeMap<String, Value>Input name to value.
approval: ApprovalMode§max_steps: u32Stop after this many steps even if the artifact allows more. A backstop
for artifacts with no steps budget.
memory: BTreeMap<String, Value>Persistent memory this run starts from, usually loaded from the agent’s store. Fields absent here start from the artifact’s declared value, so an empty map is a correct first run rather than a missing one.
stop_at: Option<String>Stop at the resumable checkpoint with this label, and report a snapshot.
A label that names no checkpoint, or one that is not resumable, fails before the run starts. Running to completion without stopping would leave a caller unable to tell that from a run with no checkpoint.
resume: Option<Resumption>Continue an interrupted run instead of starting one.
The snapshot’s inputs, bindings, state, outputs and counters replace this run’s, and execution begins at the node it names.
pricing: PricingWhat each model costs, so budget.cost can be charged.
Empty by default. A run with no prices charges nothing and reports every model it could not price, because Runtime 0.1 §8 says a backend that cannot price a request must not pretend to.