getAgentTaskResponseUrl method

Future<GetAgentTaskResponseUrlResponse> getAgentTaskResponseUrl({
  1. required String agentId,
  2. required String taskId,
})
Gets a presigned URL for uploading agent task response logs.

May throw DependencyException. May throw InvalidParameterException. May throw ResourceNotFoundException.

Parameter agentId : UUID of agent requesting the response URL.

Parameter taskId : GUID of the agent task for which the response URL is being requested.

Implementation

Future<GetAgentTaskResponseUrlResponse> getAgentTaskResponseUrl({
  required String agentId,
  required String taskId,
}) async {
  final response = await _protocol.send(
    payload: null,
    method: 'GET',
    requestUri:
        '/agentResponseUrl/${Uri.encodeComponent(agentId)}/${Uri.encodeComponent(taskId)}',
    exceptionFnMap: _exceptionFns,
  );
  return GetAgentTaskResponseUrlResponse.fromJson(response);
}