FAQ
Track each delegated deliverable separately. If one Claude subagent fails or finishes with partial evidence, retain the verified outputs of the successful branches and decide whether the missing branch blocks the user’s outcome.
FAQ
For this fictional municipal permit-information scenario, use an application-controlled Claude API workflow with two separate paths.
FAQ
CCAR-F is Claude Certified Architect – Foundations, Anthropic’s certification for solution architects who design and build production systems with Claude.
FAQ
Use the Claude Messages API when your application needs direct model calls and owns the surrounding control flow.
FAQ
Use one Claude call when you can supply the inputs up front and one bounded response meets the acceptance criteria. Use an application-controlled workflow when the stages and transitions can be specified in code.
FAQ
Start a Claude architecture decision record with an observable user outcome and the consequence of a wrong answer or action.
FAQ
Set max_turns in Python or maxTurns in TypeScript to bound the number of model turns. Count each pass through the loop, including the final text-only turn.
FAQ
Continue when you want to append a follow-up to the existing conversational thread. Resume by session ID when a later request or process restart must pick up a particular thread.
FAQ
Start by exposing only the capabilities the Claude Agent SDK task needs, then enforce approval or denial before each consequential action. Give a read-only investigation retrieval tools and read-scoped service credentials.
FAQ
The Claude Agent SDK runs an iterative loop. Claude receives the task, current conversation and tool definitions, then emits text, tool requests, or both.
FAQ
Treat Claude Agent SDK success as a runtime outcome and verify the user’s acceptance criteria in application code. Inspect the SDK result subtype and make a separate check of the requested output or external effect.
FAQ
Check the API outcome and completion metadata before using the JSON payload. A response with stop_reason: "refusal" can return HTTP 200, and stop_reason: "max_tokens" can leave JSON incomplete.