Claude Agent SDK versus Custom API Middleware: Choosing the Right Orchestration Pattern