mirror of
https://github.com/Skyvern-AI/skyvern.git
synced 2026-04-28 11:40:32 +00:00
update code samples part1 (#2371)
This commit is contained in:
parent
d2419d82d7
commit
6e27dbb8e0
26 changed files with 509 additions and 104 deletions
|
|
@ -108,7 +108,17 @@
|
|||
}
|
||||
},
|
||||
"x-fern-sdk-group-name": "agent",
|
||||
"x-fern-sdk-method-name": "get_run"
|
||||
"x-fern-sdk-method-name": "get_run",
|
||||
"x-fern-examples": [
|
||||
{
|
||||
"code-samples": [
|
||||
{
|
||||
"sdk": "python",
|
||||
"code": "from skyvern import Skyvern\n\nclient = Skyvern(api_key=\"your_api_key\")\nrun = await client.get_run(run_id=\"tsk_123\")\nprint(run)\n"
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"/v1/workflows": {
|
||||
|
|
@ -2714,7 +2724,17 @@
|
|||
}
|
||||
},
|
||||
"x-fern-sdk-group-name": "agent",
|
||||
"x-fern-sdk-method-name": "run_task"
|
||||
"x-fern-sdk-method-name": "run_task",
|
||||
"x-fern-examples": [
|
||||
{
|
||||
"code-samples": [
|
||||
{
|
||||
"sdk": "python",
|
||||
"code": "from skyvern import Skyvern\n\nclient = Skyvern(api_key=\"your_api_key\")\nawait client.run_task(prompt=\"What's the top post on hackernews?\")\n"
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"/v1/run/workflows": {
|
||||
|
|
@ -2837,7 +2857,17 @@
|
|||
}
|
||||
},
|
||||
"x-fern-sdk-group-name": "agent",
|
||||
"x-fern-sdk-method-name": "run_workflow"
|
||||
"x-fern-sdk-method-name": "run_workflow",
|
||||
"x-fern-examples": [
|
||||
{
|
||||
"code-samples": [
|
||||
{
|
||||
"sdk": "python",
|
||||
"code": "from skyvern import Skyvern\n\nclient = Skyvern(api_key=\"your_api_key\")\nawait client.agent.run_workflow(workflow_id=\"wpid_123\", parameters={\"parameter1\": \"value1\", \"parameter2\": \"value2\"})\n"
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"/v1/runs/{run_id}/cancel": {
|
||||
|
|
@ -4589,7 +4619,7 @@
|
|||
"title": "Name",
|
||||
"description": "Name of the credential",
|
||||
"examples": [
|
||||
"My Credential"
|
||||
"Amazon Login"
|
||||
]
|
||||
},
|
||||
"credential_type": {
|
||||
|
|
@ -4724,7 +4754,7 @@
|
|||
"title": "Name",
|
||||
"description": "Name of the credential",
|
||||
"examples": [
|
||||
"My Credential"
|
||||
"Amazon Login"
|
||||
]
|
||||
}
|
||||
},
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue