I have a code like this:
$bedrockRuntimeClient = new BedrockRuntimeClient([
'version' => 'latest',
'region' => $region,
'credentials' => [
'key' => $accessKey,
'secret' => $secretKey,
]
]);
.....
$result = $bedrockRuntimeClient->invokeModel([
'contentType' => 'application/json',
'body' => json_encode($body),
'modelId' => $modelId
]);
How to set a timeout on invokeModel so that I leave maximum X seconds to this function to execute, and if timeout is reached I want to be able to know it (to launch another function for example)
Thanks !