pub struct ComputerUseConfig {
pub enabled: bool,
pub browser_build: Option<PathBuf>,
pub image: String,
pub turn_timeout_secs: u64,
pub max_actions_per_turn: usize,
pub decisions_review: bool,
}Expand description
Configuration for the opt-in computer-use runtime.
Approval stays per turn and per target regardless of these settings: the run loop requests human review through the permission flow before any control sequence, and automation policies cannot bypass it.
Fields§
§enabled: boolOpt-in marker. Works with any model on OpenAI or Anthropic native computer-use routes. The feature stays inert unless this is true.
browser_build: Option<PathBuf>Approved static build served to the browser target. Required before turns can run, but not before the switch can persist: Settings enables first and guides to the target second, and turns fail closed until a target is set. Must be absolute when present. Existence is verified at launch, not here.
image: StringPinned browser container image (tag or digest, never latest).
turn_timeout_secs: u64Wall-clock budget for one approved turn, in seconds.
max_actions_per_turn: usizeMaximum actions executed in one approved turn.
decisions_review: boolAsk OpenAI Decisions to review each proposed batch for prompt injection and task drift before execution. A suspect batch or a review that cannot conclude (timeout, request failure, inconclusive answer) halts the turn; only OpenAI providers whose route supports Decisions are reviewed, and anything else proceeds on human approval alone. Uses OpenAI API billing.
Implementations§
Trait Implementations§
Source§impl Clone for ComputerUseConfig
impl Clone for ComputerUseConfig
Source§impl Debug for ComputerUseConfig
impl Debug for ComputerUseConfig
Source§impl Default for ComputerUseConfig
impl Default for ComputerUseConfig
Source§impl<'de> Deserialize<'de> for ComputerUseConfig
impl<'de> Deserialize<'de> for ComputerUseConfig
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
impl Eq for ComputerUseConfig
Source§impl JsonSchema for ComputerUseConfig
impl JsonSchema for ComputerUseConfig
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
$ref keyword. Read moreSource§impl PartialEq for ComputerUseConfig
impl PartialEq for ComputerUseConfig
Source§impl Serialize for ComputerUseConfig
impl Serialize for ComputerUseConfig
impl StructuralPartialEq for ComputerUseConfig
Auto Trait Implementations§
impl Forget for ComputerUseConfig
impl Freeze for ComputerUseConfig
impl Move for ComputerUseConfig
impl RefUnwindSafe for ComputerUseConfig
impl Send for ComputerUseConfig
impl Sync for ComputerUseConfig
impl Unpin for ComputerUseConfig
impl UnsafeUnpin for ComputerUseConfig
impl UnwindSafe for ComputerUseConfig
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.