class RubyLLM::InputRequiredError
Raised when a tool asks a person something and nothing can pause the call for the answer: Tool#ask outside a chat, or an MCP serverโs question that no MCP.before_input_request callback answered when you call the tool yourself (MCP::InputRequiredError). Its message includes what was asked, and requests has the Question objects. In a chat, the tool call pauses instead, and Chat#pending_questions returns them.
Public Instance Methods
Source
# File lib/ruby_llm/input_required_error.rb, line 18 def requests @input['requests'].reject(&:answered?) end
The unanswered Question objects.