Rails AI Agents with the Anthropic SDK: Guardrails

Build a Rails AI agent with the official Anthropic Ruby SDK: tool loops, MCP servers, write-tool guardrails, approval gates, testing, and cost controls.