Class: Appydave::Tools::LlmContext::Options

Inherits:
Struct
  • Object
show all
Defined in:
lib/appydave/tools/llm_context/options.rb

Overview

Struct with keyword_init: true to allow named parameters

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ Options

Returns a new instance of Options.



23
24
25
26
27
28
29
30
31
32
33
34
35
36
# File 'lib/appydave/tools/llm_context/options.rb', line 23

def initialize(**args)
  super
  self.include_patterns ||= []
  self.exclude_patterns ||= []
  self.format ||= 'tree,content'
  self.debug ||= 'none'
  self.output_target ||= []
  self.prompt ||= nil
  self.show_tokens ||= false
  self.file_paths ||= []
  self.stdin ||= false
  self.smart ||= false
  self.smart_limit ||= 100_000
end

Instance Attribute Details

#debugObject

Returns the value of attribute debug

Returns:

  • (Object)

    the current value of debug



7
8
9
# File 'lib/appydave/tools/llm_context/options.rb', line 7

def debug
  @debug
end

#exclude_patternsObject

Returns the value of attribute exclude_patterns

Returns:

  • (Object)

    the current value of exclude_patterns



7
8
9
# File 'lib/appydave/tools/llm_context/options.rb', line 7

def exclude_patterns
  @exclude_patterns
end

#file_pathsObject

Returns the value of attribute file_paths

Returns:

  • (Object)

    the current value of file_paths



7
8
9
# File 'lib/appydave/tools/llm_context/options.rb', line 7

def file_paths
  @file_paths
end

#formatObject

Returns the value of attribute format

Returns:

  • (Object)

    the current value of format



7
8
9
# File 'lib/appydave/tools/llm_context/options.rb', line 7

def format
  @format
end

#include_patternsObject

Returns the value of attribute include_patterns

Returns:

  • (Object)

    the current value of include_patterns



7
8
9
# File 'lib/appydave/tools/llm_context/options.rb', line 7

def include_patterns
  @include_patterns
end

#line_limitObject

Returns the value of attribute line_limit

Returns:

  • (Object)

    the current value of line_limit



7
8
9
# File 'lib/appydave/tools/llm_context/options.rb', line 7

def line_limit
  @line_limit
end

#output_targetObject

Returns the value of attribute output_target

Returns:

  • (Object)

    the current value of output_target



7
8
9
# File 'lib/appydave/tools/llm_context/options.rb', line 7

def output_target
  @output_target
end

#promptObject

Returns the value of attribute prompt

Returns:

  • (Object)

    the current value of prompt



7
8
9
# File 'lib/appydave/tools/llm_context/options.rb', line 7

def prompt
  @prompt
end

#show_tokensObject

Returns the value of attribute show_tokens

Returns:

  • (Object)

    the current value of show_tokens



7
8
9
# File 'lib/appydave/tools/llm_context/options.rb', line 7

def show_tokens
  @show_tokens
end

#smartObject

Returns the value of attribute smart

Returns:

  • (Object)

    the current value of smart



7
8
9
# File 'lib/appydave/tools/llm_context/options.rb', line 7

def smart
  @smart
end

#smart_limitObject

Returns the value of attribute smart_limit

Returns:

  • (Object)

    the current value of smart_limit



7
8
9
# File 'lib/appydave/tools/llm_context/options.rb', line 7

def smart_limit
  @smart_limit
end

#stdinObject

Returns the value of attribute stdin

Returns:

  • (Object)

    the current value of stdin



7
8
9
# File 'lib/appydave/tools/llm_context/options.rb', line 7

def stdin
  @stdin
end

#working_directoryObject

Returns the value of attribute working_directory

Returns:

  • (Object)

    the current value of working_directory



7
8
9
# File 'lib/appydave/tools/llm_context/options.rb', line 7

def working_directory
  @working_directory
end