Execute Task
AI-generatedSummary
Sends a required task to the Swarm Compute Protocol service and returns the swarm’s result. Configure the required SCP API credential; the node posts the task to /execute-external-task.
Inputs
- Task (required) — The task for the swarm to carry out.
- Request Options — Optional batching, SSL certificate validation, HTTP proxy, and request timeout settings. Batching defaults to 50 items per batch with a 1,000 ms interval; set the batch size to -1 to disable batching.
Output shape
A single response item from the SCP service.
The source does not specify the response fields or further output shaping.
Examples
Example 1: Ask the swarm to generate code or perform another task
Enter the task in Task; its value is sent in the request body as task.