Commit Graph

850 Commits

Author SHA1 Message Date
BroskyBrowser c145e52adb Merge branch 'main' into feat/add-amazon-captcha-solver-example 2025-05-28 11:36:54 +02:00
Nick Sweeting d546c3d8bd move multiple agents example into browser dir 2025-05-27 22:31:32 -07:00
BroskyBrowser 000ee0d262 chore: linting + ignore .venv folders 2025-05-27 12:23:19 +02:00
BroskyBrowser 0997c0d46c chore: linting + ignore .venv folders 2025-05-27 12:18:26 +02:00
Nick Sweeting 47f24f6b10 more comments 2025-05-26 18:40:40 -07:00
Nick Sweeting f19adf9bb3 remove dead code, cleanup examples and tests 2025-05-26 18:37:52 -07:00
Nick Sweeting 241b4e076b fix examples issues 2025-05-26 03:43:17 -07:00
Nick Sweeting 768aec87b8 update ipdb notebook examples 2025-05-25 14:57:32 -07:00
Nick Sweeting ef49ec1682 more examples updating 2025-05-25 14:44:29 -07:00
Nick Sweeting 7939f4522a updating more browser examples 2025-05-25 14:33:09 -07:00
Magnus Müller 6a5c0b61f2 Add 2FA functionality using pyotp in a new script
This commit introduces a new script, `2fa.py`, which implements a custom action to retrieve 2FA/MFA codes using the `pyotp` library. The action extracts the OTP secret key from an environment variable and generates a time-based one-time password. Additionally, the script includes an example task demonstrating how to use the 2FA action within an agent-based workflow.

### Key Changes:
- New file `examples/custom-functions/2fa.py` added.
- Custom action `get_otp_2fa` to generate 2FA codes.
- Example usage of the action in an asynchronous context.

This addition enhances the functionality of the agent system by providing secure 2FA code retrieval capabilities.
2025-05-25 18:10:00 +02:00
Magnus Müller 8a5f7a5ead Refactor perplexity search to use httpx for asynchronous requests
This update replaces the synchronous requests library with httpx for making asynchronous API calls in the perplexity search function. The change improves performance and error handling by utilizing async capabilities, ensuring better integration with the overall asynchronous architecture.
2025-05-25 16:46:08 +02:00
Magnus Müller 18d1c0d895 Add perplexity search functionality with API integration
This commit introduces a new script for searching the web using the Perplexity API. It includes the definition of data models for handling person information, an asynchronous search function, and a main execution flow that retrieves and displays email addresses for specified individuals. The script also incorporates error handling for missing API keys.
2025-05-25 16:17:38 +02:00
Nick Sweeting a5b99f9b7f fix re-use of BrowserSession between agents by copying on Agent init 2025-05-25 06:38:43 -07:00
BroskyBrowser 7db5794bbe fix: fixed wildcard subdomain in action definition 2025-05-25 15:18:22 +02:00
BroskyBrowser 3db45ebd20 fix: improved amazon captcha solver solution check 2025-05-25 15:08:38 +02:00
Nick Sweeting 2328986236 fix BrowserSession init on reuse case 2025-05-25 06:00:25 -07:00
Nick Sweeting ee62541042 Merge branch 'main' into docs-improvements 2025-05-25 03:50:55 -07:00
Nick Sweeting addeb56f8c add new param optimization test 2025-05-25 03:50:02 -07:00
2pac ac1e8f5471 ruff format 2025-05-24 19:35:25 +02:00
2pac dd23030bc5 cubic comments 2025-05-24 19:33:37 +02:00
2pac 9200d1f197 ran ruff 2025-05-24 19:27:44 +02:00
2pac 6a5b6ead1b fix: Binding already registered issue on follow-up task 2025-05-24 19:26:21 +02:00
BroskyBrowser 516e79c225 fix: handle error solving captcha 2025-05-24 18:29:06 +02:00
BroskyBrowser 005475acf6 feat: added amazon captcha solver action example 2025-05-24 16:48:12 +02:00
Nick Sweeting f8967a12f4 reuse patchright instance 2025-05-23 18:36:09 -07:00
Nick Sweeting 7540fdbf71 fix string math error 2025-05-23 18:34:36 -07:00
Nick Sweeting ba85963c45 merge browser_viewport tests into single example 2025-05-23 18:21:19 -07:00
Nick Sweeting 3a86fac15f minor comments and logging improvements 2025-05-23 18:21:18 -07:00
Nick Sweeting 1883091204 Improve file upload detection (#1759) 2025-05-23 06:51:20 -07:00
Enzo Biondo 2c7b718767 Merge branch 'main' into docs/document-memory-customizability 2025-05-23 09:04:13 -03:00
Evgeny Kim 5da261310b Improve file upload detection 2025-05-23 13:05:06 +02:00
EnzoFanAccount b303568164 lint example 2025-05-23 07:56:04 -03:00
EnzoFanAccount 1a90fc4d60 Add example script 2025-05-23 07:43:55 -03:00
Nick Sweeting 5410fd5664 improve google sheets example prompt 2025-05-23 03:31:58 -07:00
Nick Sweeting 22bf1c30c6 Merge branch 'main' into bug-bash 2025-05-23 01:40:58 -07:00
Nick Sweeting 9032787752 add stagehand back and forth example 2025-05-23 01:37:36 -07:00
Nick Sweeting f6ca4e13a3 massively improve logging experience and add loading animation on browser startup 2025-05-23 00:48:52 -07:00
Nick Sweeting 6b8360c475 better logging 2025-05-22 23:17:21 -07:00
Nick Sweeting 187641f695 add support for nested sensitive_data 2025-05-22 04:58:23 -07:00
Nick Sweeting b92fffae2e fix google sheets example 2025-05-22 02:30:43 -07:00
Magnus Müller e16653b150 Example/simple (#1724)
### Example Task Update:
*
[`examples/simple.py`](diffhunk://#diff-7fc9f71ba0fe3a9a223587549462f41d40b57cb9d9097a0349eb7abeb9d04e39L20-R20):
Modified the example task description to specify finding the cheapest
one-way flight in 3 weeks, making it more realistic and time-relative.
    
<!-- This is an auto-generated description by cubic. -->
---

## Summary by cubic
Updated the example task to search for the cheapest one-way flight in 3
weeks, added a default browser profile fallback, and ignored temp
directories in git.

<!-- End of auto-generated description by cubic. -->
2025-05-21 13:10:49 +02:00
Magnus Müller 9021e83c15 Update advanced_search.py to change include_in_memory parameter to False in ActionResult and modify task description for concurrent processing of search queries. 2025-05-21 13:02:22 +02:00
Magnus Müller 18c13bda26 Refactor advanced_search.py to use SERP API for web search and improve error handling for API keys. Added logging for debugging and updated agent initialization with BrowserProfile. 2025-05-21 12:20:51 +02:00
Magnus Müller d401cc77ab Update task description in simple.py to specify a one-way flight search in 3 weeks instead of a round trip on a specific date. 2025-05-21 12:02:07 +02:00
yasithdev b491c87144 fix few bugs due to api changes, conditional logics, and null type-checks 2025-05-21 01:38:04 -05:00
Nick Sweeting 9190a908a5 stealth comments 2025-05-20 06:09:28 -07:00
Nick Sweeting c6504da9ea more stealth browser launch tuning 2025-05-20 06:05:35 -07:00
Nick Sweeting 2f002b4c22 rename session.py profile.py, fix stealth example, fix tests 2025-05-20 05:34:47 -07:00
Nick Sweeting 63382d8bfc update examples to use new BrowserProfile and BrowserSession 2025-05-20 02:32:43 -07:00