fix skyvern run docs part 2 (#2386)
This commit is contained in:
@@ -77,7 +77,7 @@ If you'd like to try it out,
|
||||
# Quickstart
|
||||
This quickstart guide will walk you through getting Skyvern up and running on your local machine.
|
||||
|
||||
## Local
|
||||
## Install & Run
|
||||
> ⚠️ **REQUIREMENT**: This project requires Python 3.11 ⚠️
|
||||
|
||||
1. **Install Skyvern**
|
||||
@@ -112,7 +112,7 @@ This quickstart guide will walk you through getting Skyvern up and running on yo
|
||||
task = await skyvern.run_task(prompt="Find the top post on hackernews today")
|
||||
print(task)
|
||||
```
|
||||
A local browser will pop up. Skyvern will start executing the task in the browser and close the it when the task is done.
|
||||
A local browser will pop up. Skyvern will start executing the task in the browser and close the it when the task is done. You will be able to review the task from http://localhost:8080/history
|
||||
|
||||
You can also send a task to Skyvern Cloud:
|
||||
```python
|
||||
|
||||
@@ -71,23 +71,15 @@ Skyvern was inspired by the Task-Driven autonomous agent design popularized by [
|
||||
|
||||
## Quickstart
|
||||
### Python SDK Installation
|
||||
> ⚠️ **REQUIREMENT**: Skyvern runs with Python 3.11 ⚠️
|
||||
|
||||
```bash
|
||||
pip install skyvern
|
||||
```
|
||||
|
||||
### Run Task
|
||||
After initializing your local Skyvern setup, you can run agent tasks in any python code:
|
||||
```python
|
||||
from skyvern import Skyvern
|
||||
|
||||
skyvern = Skyvern()
|
||||
|
||||
task = await skyvern.run_task(prompt="Find the top post on hackernews today")
|
||||
print(task)
|
||||
```
|
||||
|
||||
### Run Task In Skyvern Service
|
||||
Get your API key from [Skyvern Cloud](https://app.skyvern.com/settings) and to use Skyvern Cloud to run the task:
|
||||
#### Run Task On A Skyvern Service
|
||||
Get your API key from [Skyvern Cloud](https://app.skyvern.com/settings). Send the task to Skyvern Cloud:
|
||||
```python
|
||||
from skyvern import Skyvern
|
||||
|
||||
@@ -100,6 +92,24 @@ print(task)
|
||||
```
|
||||
More API & SDK information can be found in the [API Reference](/api-reference) section.
|
||||
|
||||
#### Run Task Locally
|
||||
You can also run browser tasks locally in your python code but it takes a bit more effort to set up the environment:
|
||||
|
||||
1. **Configure Skyvern** Run the setup wizard which will guide you through the configuration process, including Skyvern [MCP](https://github.com/Skyvern-AI/skyvern/blob/main/integrations/mcp/README.md) integration. This will generate a `.env` as the configuration settings file.
|
||||
```bash
|
||||
skyvern init
|
||||
```
|
||||
|
||||
2. **Run Task In Python Code**
|
||||
```python
|
||||
from skyvern import Skyvern
|
||||
|
||||
skyvern = Skyvern()
|
||||
|
||||
task = await skyvern.run_task(prompt="Find the top post on hackernews today")
|
||||
print(task)
|
||||
```
|
||||
|
||||
<CardGroup cols={2}>
|
||||
<Card
|
||||
title="Quickstart (Skyvern Cloud)"
|
||||
|
||||
Reference in New Issue
Block a user