pub async fn call_computer_use_backend(
base64_image: &str,
goal: &str,
previous_actions: Option<&[ComputerUsePreviousAction]>,
) -> Result<ComputerUseResponse>Expand description
Call the Gemini Computer Use backend to get the next action.
This is the main API for communicating with the vision model backend. It sends a screenshot and goal, optionally with previous actions, and receives either a completion signal or the next action to take.
§Arguments
base64_image- Base64 encoded PNG screenshotgoal- The task to accomplishprevious_actions- History of previous actions with their results
§Returns
Ok(ComputerUseResponse)- The model’s responseErr(e)- If the backend call fails