Back to prompt library
Claude Agents SDK Extended Thinking Configuration
Linked challenge: Autonomous Factory Troubleshooting Agent with Claude Agents SDK
Prompt source
implementation1 lines1 sectionsNo variables0 checklist items
Initialize `Anthropic` client. Create an agent runner configured with `model='claude-3-5-sonnet-20241022'` and thinking parameter `thinking={'type': 'enabled', 'budget_tokens': 2048}`. Define custom tools for PLC state control.