mirror of
https://github.com/dograh-hq/dograh.git
synced 2026-06-25 08:48:13 +02:00
feat(examples): add load-and-edit workflow SDK example in Python and TypeScript (#441)
Closes #370
This commit is contained in:
parent
f586aebe5b
commit
e7b67e0efb
4 changed files with 145 additions and 1 deletions
|
|
@ -26,6 +26,10 @@ python python/fetch_workflow_and_call.py
|
|||
|
||||
# Create a new workflow from a definition.
|
||||
python python/create_workflow.py
|
||||
|
||||
# Load an existing workflow, edit the startCall prompt, and save as a draft.
|
||||
# Edit WORKFLOW_ID at the top of the file first.
|
||||
python python/load_and_edit_workflow.py
|
||||
```
|
||||
|
||||
## TypeScript
|
||||
|
|
@ -41,4 +45,5 @@ export DOGRAH_API_TOKEN=sk-...
|
|||
|
||||
npm run call # fetch_workflow_and_call.ts
|
||||
npm run create # create_workflow.ts
|
||||
npm run edit # load_and_edit_workflow.ts (edit WORKFLOW_ID in the file first)
|
||||
```
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue