pub struct BrowserStepRequest {
pub session_id: String,
pub thread_id: String,
pub task_id: Option<String>,
pub run_id: Option<String>,
pub tool_call_id: Option<String>,
pub commands: Vec<Commands>,
pub headless: Option<bool>,
pub thinking: Option<String>,
pub evaluation_previous_goal: Option<String>,
pub memory: Option<String>,
pub next_goal: Option<String>,
}Expand description
Request payload for the /browser_step API.
Fields§
§session_id: StringBrowser session ID (managed by server)
thread_id: StringDistri thread ID (used for sequence persistence)
task_id: Option<String>Distri task ID (optional)
run_id: Option<String>Distri run ID (optional)
tool_call_id: Option<String>Tool call ID (optional)
commands: Vec<Commands>Browser commands to execute
headless: Option<bool>Whether to run browser in headless mode
thinking: Option<String>Thinking/reasoning about current step
evaluation_previous_goal: Option<String>Evaluation of how well the previous goal was achieved
memory: Option<String>Memory/context to persist across steps
next_goal: Option<String>Next goal to achieve
Implementations§
Source§impl BrowserStepRequest
impl BrowserStepRequest
Sourcepub fn new(input: BrowserStepInput) -> Self
pub fn new(input: BrowserStepInput) -> Self
Create a new request from input with context.
Sourcepub fn with_session_id(self, session_id: impl Into<String>) -> Self
pub fn with_session_id(self, session_id: impl Into<String>) -> Self
Set session ID.
Sourcepub fn with_thread_id(self, thread_id: impl Into<String>) -> Self
pub fn with_thread_id(self, thread_id: impl Into<String>) -> Self
Set thread ID.
Sourcepub fn with_task_id(self, task_id: impl Into<String>) -> Self
pub fn with_task_id(self, task_id: impl Into<String>) -> Self
Set task ID.
Sourcepub fn with_run_id(self, run_id: impl Into<String>) -> Self
pub fn with_run_id(self, run_id: impl Into<String>) -> Self
Set run ID.
Sourcepub fn with_tool_call_id(self, tool_call_id: impl Into<String>) -> Self
pub fn with_tool_call_id(self, tool_call_id: impl Into<String>) -> Self
Set tool call ID.
Trait Implementations§
Source§impl Clone for BrowserStepRequest
impl Clone for BrowserStepRequest
Source§fn clone(&self) -> BrowserStepRequest
fn clone(&self) -> BrowserStepRequest
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for BrowserStepRequest
impl Debug for BrowserStepRequest
Source§impl<'de> Deserialize<'de> for BrowserStepRequest
impl<'de> Deserialize<'de> for BrowserStepRequest
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>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for BrowserStepRequest
impl RefUnwindSafe for BrowserStepRequest
impl Send for BrowserStepRequest
impl Sync for BrowserStepRequest
impl Unpin for BrowserStepRequest
impl UnsafeUnpin for BrowserStepRequest
impl UnwindSafe for BrowserStepRequest
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
Mutably borrows from an owned value. Read more