python installation & run task docs (#2384)
This commit is contained in:
27
README.md
27
README.md
@@ -102,6 +102,33 @@ This quickstart guide will walk you through getting Skyvern up and running on yo
|
||||
skyvern run ui
|
||||
```
|
||||
|
||||
5. **Run task**
|
||||
Run a skyvern task locally:
|
||||
```python
|
||||
from skyvern import Skyvern
|
||||
|
||||
skyvern = Skyvern()
|
||||
task = await skyvern.run_task(prompt="Find the top post on hackernews today")
|
||||
print(task)
|
||||
```
|
||||
You should see your local browser
|
||||
|
||||
You can also send a task to Skyvern Cloud
|
||||
```python
|
||||
from skyvern import Skyvern
|
||||
|
||||
skyvern = Skyvern()
|
||||
task = await skyvern.agent.run_task(prompt="Find the top post on hackernews today")
|
||||
print(task)
|
||||
```
|
||||
|
||||
Or anywhere Skyvern is hosted:
|
||||
```python
|
||||
skyvern = Skyvern(base_url="http://localhost:8000", api_key="SKYVERN API KEY in LOCAL SKYVERN")
|
||||
task = await skyvern.agent.run_task(prompt="Find the top post on hackernews today")
|
||||
print(task)
|
||||
```
|
||||
|
||||
## Docker Compose setup
|
||||
|
||||
1. Make sure you have [Docker Desktop](https://www.docker.com/products/docker-desktop/) installed and running on your machine
|
||||
|
||||
Reference in New Issue
Block a user