Make agent and compaction model IDs configurable via SSM

This commit is contained in:
daniel
2026-05-14 18:27:35 -05:00
parent bdd334b6fb
commit 62862f00f0
3 changed files with 30 additions and 3 deletions

View File

@@ -11,6 +11,7 @@ from bedrock_agentcore.runtime import BedrockAgentCoreApp
from channels.telegram import TelegramAdapter
from prompt_builder import build_system_prompt, invalidate_prompt
import memory_manager
import config
from tools import web as web_tools
from tools import workspace as ws_tools
from tools import messaging
@@ -378,7 +379,7 @@ async def main(payload: dict, context):
# NOTE: extended thinking disabled — causes retry/duplicate issues with streaming
from botocore.config import Config as BotoConfig
model = BedrockModel(
model_id="us.anthropic.claude-sonnet-4-6",
model_id=config.AGENT_MODEL_ID,
region_name="us-east-1",
boto_client_config=BotoConfig(read_timeout=600, connect_timeout=10),
)