From 0a0e26ccd2753e5137c7e62156be78301bca501f Mon Sep 17 00:00:00 2001 From: daniel Date: Thu, 7 May 2026 23:18:48 -0500 Subject: [PATCH] Enable extended thinking: budget_tokens=2000 --- agentclaw/app/agent_claw_main/main.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/agentclaw/app/agent_claw_main/main.py b/agentclaw/app/agent_claw_main/main.py index 09a7495..172e7a3 100644 --- a/agentclaw/app/agent_claw_main/main.py +++ b/agentclaw/app/agent_claw_main/main.py @@ -253,12 +253,15 @@ async def main(payload: dict, context): user_context += f'\nEnrolled services: {", ".join(enrolled)}' system_prompt = build_system_prompt(user_context=user_context, actor_id=actor_id) - # Model: claude-sonnet-4-6 via cross-region inference + # Model: claude-sonnet-4-6 via cross-region inference with extended thinking from botocore.config import Config as BotoConfig model = BedrockModel( model_id="us.anthropic.claude-sonnet-4-6", region_name="us-east-1", boto_client_config=BotoConfig(read_timeout=600, connect_timeout=10), + additional_model_request_fields={ + "thinking": {"type": "enabled", "budget_tokens": 2000} + }, ) base_tools = [web_search, web_fetch, read_workspace_file, write_workspace_file,