class

Anthropic::ToolUseError

Inherits Anthropic::Error < Exception < Reference < Object

Raised when a response has stop_reason=tool_use but contains no tool_use blocks. This indicates an unexpected API response that would cause empty follow-up calls.