Cookbook
SDK Usage Examples
Here are three different patterns for using the Simplex SDK, demonstrated through a flight search example.
The task is to find a flight from New York to San Francisco on January 1st, 2025.
Open Feedback Loop
The simplest implementation - continuously gets the next step and executes actions until the task is complete.
Closed Feedback Loop
Here we’ve added a critic at the end of the step. If a step is not successful, we’ll recompute and try again.
Precomputed Trajectory
You can also use your own planner or precompute a trajectory yourself. The browser actor uses your precomputed trajectory and only uses our API endpoints to find element locations and execute actions.