You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# With dict input (spread at root level of request body)
52
+
result = client.execute_workflow("workflow-id", {"message": "Hello, world!"})
53
+
54
+
# With primitive input (wrapped as { input: value })
55
+
result = client.execute_workflow("workflow-id", "NVDA")
56
+
57
+
# With options (keyword-only arguments)
58
+
result = client.execute_workflow("workflow-id", {"message": "Hello"}, timeout=60.0)
56
59
```
57
60
58
61
**Parameters:**
59
62
-`workflow_id` (str): The ID of the workflow to execute
60
-
-`input_data` (dict, optional): Input data to pass to the workflow. File objects are automatically converted to base64.
61
-
-`timeout` (float): Timeout in seconds (default: 30.0)
63
+
-`input` (any, optional): Input data to pass to the workflow. Dicts are spread at the root level, primitives/lists are wrapped in `{ input: value }`. File objects are automatically converted to base64.
64
+
-`timeout` (float, keyword-only): Timeout in seconds (default: 30.0)
// With object input (spread at root level of request body)
55
56
const result =awaitclient.executeWorkflow('workflow-id', {
56
-
input: { message: 'Hello, world!' },
57
-
timeout: 30000// 30 seconds
57
+
message: 'Hello, world!'
58
+
});
59
+
60
+
// With primitive input (wrapped as { input: value })
61
+
const result =awaitclient.executeWorkflow('workflow-id', 'NVDA');
62
+
63
+
// With options
64
+
const result =awaitclient.executeWorkflow('workflow-id', { message: 'Hello' }, {
65
+
timeout: 60000
58
66
});
59
67
```
60
68
61
69
**Parameters:**
62
70
-`workflowId` (string): The ID of the workflow to execute
71
+
-`input` (any, optional): Input data to pass to the workflow. Objects are spread at the root level, primitives/arrays are wrapped in `{ input: value }`. File objects are automatically converted to base64.
63
72
-`options` (ExecutionOptions, optional):
64
-
-`input` (any): Input data to pass to the workflow. File objects are automatically converted to base64.
65
73
-`timeout` (number): Timeout in milliseconds (default: 30000)
74
+
-`stream` (boolean): Enable streaming responses
75
+
-`selectedOutputs` (string[]): Block outputs to stream (e.g., `["agent1.content"]`)
76
+
-`async` (boolean): Execute asynchronously and return execution ID
0 commit comments