Class: Rubyagents::UserInput
- Defined in:
- lib/rubyagents/tools/user_input.rb
Instance Method Summary collapse
Methods inherited from Tool
description, inherited, input, inputs, output_type, to_prompt, to_schema, tool_name
Instance Method Details
#call(question:) ⇒ Object
10 11 12 13 14 |
# File 'lib/rubyagents/tools/user_input.rb', line 10 def call(question:) $stderr.print "\n#{question}\n> " response = $stdin.gets&.strip response || "" end |