SmartParallelPrompt
Wisej.AI.SmartParallelPrompt
Last updated
Wisej.AI.SmartParallelPrompt
Last updated
Namespace: Wisej.AI
Assembly: Wisej.AI (3.5.0.0)
Represents a smart parallel prompt that can execute multiple tasks concurrently.
This class extends the class and provides functionality to run multiple prompts in parallel.
Initializes a new instance of the class with optional text.
text
The text associated with the prompt. Default is null
.
Executes the prompt tasks asynchronously in parallel.
hub
The smart hub used for executing the tasks.
inputs
An array of input prompts to process in parallel.
Throws:
Executes the prompt tasks asynchronously in parallel.
hub
The smart hub used for executing the tasks.
inputs
An array of input prompts to process in parallel.
images
An array of input images to process in parallel.
Throws:
Executes the prompt tasks asynchronously in parallel.
endpoint
The endpoint used for executing the tasks.
inputs
An array of input prompts to process in parallel.
Throws:
Executes the prompt tasks asynchronously in parallel.
endpoint
The endpoint used for executing the tasks.
inputs
An array of input prompts to process in parallel.
images
An array of input images to process in parallel.
Throws:
args
The event data.
Represents a provider that supplies tools.
Returns: . A task that represents the asynchronous operation. The task result contains an array of objects.
This method runs each input through the method and tracks the progress using the property.
Thrown when hub is null
.
Thrown when inputs is null
.
Returns: . A task that represents the asynchronous operation. The task result contains an array of objects.
This method runs each input through the method and tracks the progress using the property.
Thrown when hub is null
.
Thrown when inputs is null
.
Thrown when images is null
.
Returns: . A task that represents the asynchronous operation. The task result contains an array of objects.
This method runs each input through the method and tracks the progress using the property.
Thrown when inputs is null
.
Returns: . A task that represents the asynchronous operation. The task result contains an array of objects.
This method runs each input through the method and tracks the progress using the property.
Thrown when inputs is null
.
Raises the event.
Occurs when progress is made in the execution of the parallel tasks.