Skip to content

The fastest, cheapest, most efficient open-source agent harness. Run more than 500 agents on a $10 VPS.

chore: files changed crates/openhuman-core/src/config/schema/tools/browser.rs

Steven Enamakeld62ba83c8882
diff --git a/crates/openhuman-core/src/config/schema/tools/browser.rs b/crates/openhuman-core/src/config/schema/tools/browser.rs
index e44854020e..ddb613f1ea 100644
--- a/crates/openhuman-core/src/config/schema/tools/browser.rs
+++ b/crates/openhuman-core/src/config/schema/tools/browser.rs
@@ -86,6 +86,20 @@ pub struct BrowserConfig {
pub max_task_steps: usize,
#[serde(default = "default_task_timeout_secs")]
pub task_timeout_secs: u64,
+ #[serde(default)]
+ pub unattended_actions: Vec<String>,
+}
+
+pub const UNATTENDED_BROWSER_ACTIONS: &[&str] = &[];
+
+impl BrowserConfig {
+ pub fn allows_unattended(&self, _kind: &str) -> bool {
+ false
+ }
+
+ pub fn unknown_unattended_actions(&self) -> Vec<String> {
+ Vec::new()
+ }
}
fn default_viewport_width() -> u32 {
@@ -136,6 +150,11 @@ impl Default for BrowserConfig {
download_dir: None,
max_task_steps: default_max_task_steps(),
task_timeout_secs: default_task_timeout_secs(),
+ unattended_actions: Vec::new(),
}
}
}
+
+#[cfg(test)]
+#[path = "browser_tests.rs"]
+mod tests;