update documentation part3 - add code examples (#2369)

This commit is contained in:
Shuchang Zheng 2025-05-16 19:06:41 -07:00 committed by GitHub
parent 89fd604022
commit d2419d82d7
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 922 additions and 353 deletions

View file

@ -0,0 +1,18 @@
RUN_TASK_CODE_SAMPLE = """from skyvern import Skyvern
client = Skyvern(api_key="your_api_key")
await client.run_task(prompt="What's the top post on hackernews?")
"""
GET_RUN_CODE_SAMPLE = """from skyvern import Skyvern
client = Skyvern(api_key="your_api_key")
run = await client.get_run(run_id="tsk_123")
print(run)
"""
RUN_WORKFLOW_CODE_SAMPLE = """from skyvern import Skyvern
client = Skyvern(api_key="your_api_key")
await client.agent.run_workflow(workflow_id="wpid_123", parameters={"parameter1": "value1", "parameter2": "value2"})
"""