Skyvern-AI / skyvern

Automate browser-based workflows with LLMs and Computer Vision
https://www.skyvern.com
GNU Affero General Public License v3.0
5.75k stars 418 forks source link

Add endpoint to stream HAR file for tasks #712

Closed ngalongc closed 2 weeks ago

ngalongc commented 3 weeks ago

Add endpoint to stream HAR file for tasks

Overview

This PR introduces a new endpoint that allows users to retrieve the HAR (HTTP Archive) file associated with a specific task. This addition is particularly valuable for AI security agents and developers who need access to raw network traffic data.

Key Features

Motivation

Implementation Details

Testing

Security Considerations

Future Improvements

Feedback Request

I'd appreciate a review on:

  1. The streaming implementation
  2. Error handling approach - have I covered all necessary scenarios?
  3. Any potential security concerns I might have overlooked

Looking forward to your feedback!


:rocket: This description was created by Ellipsis for commit 5da44261909c202e38e6e016be45612ec7714d51

Summary:

Adds a new endpoint in skyvern/forge/sdk/routes/agent_protocol.py to stream HAR files for tasks using non-blocking operations and error handling.

Key points:


Generated with :heart: by ellipsis.dev

ngalongc commented 2 weeks ago

I will try to fix this asap, max 1 week.

suchintan commented 2 weeks ago

I will try to fix this asap, max 1 week.

Sounds good. Happy to merge it in afterwards!