Protected _last_Protected _workflowProtected _createPrivate _ws_Private Guard function to check if the client's WebSocket is connected before attempting to invoke the workflow.
The client to check.
If the WebSocket is not connected.
Creates a new invoked workflow instance.
The client used to run the prompt.
Optional options: InvokeOptions<T>Optional invoke options.
The invoked workflow instance.
Optional options: InvokeOptions<unknown>Invokes the workflow with the provided client and options.
The client to use for the invocation.
Optional options: InvokeOptions<T>Optional invoke options.
A promise resolving to the workflow output.
Optional options: InvokeOptions<unknown>Invokes a workflow using the provided client with polling.
The client used to run the prompt.
Optional options: InvokeOptions<T>The options for invoking the workflow.
A promise that resolves with the result of the prompt.
Optional options: InvokeOptions<unknown>
A class for creating a workflow using a fluent API.
Example