Skip to content

Commit 359b40a

Browse files
authored
fix: workflow create tool (#18)
* fix: workflow key on create being undefined * chore: add changeset
1 parent 4732476 commit 359b40a

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

.changeset/full-rice-shine.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@knocklabs/agent-toolkit": patch
3+
---
4+
5+
fix: workflow create method

src/lib/tools/workflows.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -149,6 +149,11 @@ const createWorkflow = KnockTool({
149149
.describe(
150150
"(string): The environment to create the workflow in. Defaults to `development`."
151151
),
152+
workflowKey: z
153+
.string()
154+
.describe(
155+
"(string): The key of the workflow to create. Only use a kebab-case string with no spaces or special characters."
156+
),
152157
name: z.string().describe("(string): The name of the workflow."),
153158
description: z
154159
.string()

0 commit comments

Comments
 (0)