class RubyLLM::Generators::ToolGenerator
Generator for RubyLLM tool classes and related message partials.
Public Instance Methods
Source
# File lib/generators/ruby_llm/tool/tool_generator.rb, line 17 def create_tool_file template 'tool.rb.tt', File.join('app/tools', class_path, "#{file_name}_tool.rb") end
Source
# File lib/generators/ruby_llm/tool/tool_generator.rb, line 21 def create_tool_view_partials empty_directory 'app/views/messages/tool_calls' empty_directory 'app/views/messages/tool_results' create_tool_call_partial create_tool_result_partial end