startTaskMultipart

abstract suspend fun startTaskMultipart(context: Ctx, clientRequestId: String, taskType: String, inputJson: String?, metadataJson: String?, attachments: List<TaskBridgeMultipartAttachment>): TaskCreatedResponse

Starts a new task using multipart/form-data, typically for uploading files.

Return

Response containing the new taskId.

Parameters

context

Context for the request.

clientRequestId

Client-generated unique ID for deduplication.

taskType

The type of task to create.

inputJson

Optional task-specific input parameters as JSON.

metadataJson

Optional metadata as JSON.

attachments

List of file attachments.

Throws

if task creation fails.