You must deterministically block any refund transaction exceeding $500 and redirect it to a human supervisor. How should you implement this using the Claude Agent SDK?
When formatting few-shot examples, what is the most important structural rule to follow to ensure the model produces the desired output?
Why is it heavily recommended to use Agent SDK hooks rather than prompt instructions to enforce critical business rules in a application?
A pull request modifies 14 files across a stock tracking module. When analyzing all files in a single pass, Claude provides superficial comments, misses obvious bugs, and produces contradictory feedback. How should you redesign the multi-pass review architecture to resolve this?
Your get_portfolio_value tool returns the total value of a user's investment portfolio. You're deciding between returning a structured JSON object with explicit fields versus returning the information as a formatted text string. What is the primary advantage of using structured output with defined fields?