Fix agent-runner: 600s read timeout on bedrock-agentcore streaming
This commit is contained in:
@@ -21,7 +21,12 @@ def get_ddb():
|
||||
def get_agentcore():
|
||||
global _agentcore
|
||||
if _agentcore is None:
|
||||
_agentcore = boto3.client('bedrock-agentcore', region_name='us-east-1')
|
||||
from botocore.config import Config
|
||||
_agentcore = boto3.client(
|
||||
'bedrock-agentcore',
|
||||
region_name='us-east-1',
|
||||
config=Config(read_timeout=600, connect_timeout=10)
|
||||
)
|
||||
return _agentcore
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user