Class: Llm::Functions::GetFilesList
- Defined in:
- lib/llm/functions/get_files_list.rb
Instance Method Summary collapse
Methods inherited from Base
Instance Method Details
#definition ⇒ Object
8 9 10 11 12 13 14 15 16 17 18 19 20 |
# File 'lib/llm/functions/get_files_list.rb', line 8 def definition return @definition unless @definition.nil? @definition = { name: self.function_name, description: I18n.t("ghostest.functions.#{self.function_name}.description"), parameters: { type: :object, properties: {}, }, } @definition end |
#execute_and_generate_message(args) ⇒ Object
22 23 24 25 26 |
# File 'lib/llm/functions/get_files_list.rb', line 22 def (args) files_list = Dir.glob("**/*.{rb,yml}") { files_list: } end |
#function_name ⇒ Object
4 5 6 |
# File 'lib/llm/functions/get_files_list.rb', line 4 def function_name :get_files_list end |