Class: Appydave::Tools::LlmContext::Options
- Inherits:
-
Struct
- Object
- Struct
- Appydave::Tools::LlmContext::Options
- Defined in:
- lib/appydave/tools/llm_context/options.rb
Overview
Struct with keyword_init: true to allow named parameters
Instance Attribute Summary collapse
-
#debug ⇒ Object
Returns the value of attribute debug.
-
#exclude_patterns ⇒ Object
Returns the value of attribute exclude_patterns.
-
#file_paths ⇒ Object
Returns the value of attribute file_paths.
-
#format ⇒ Object
Returns the value of attribute format.
-
#include_patterns ⇒ Object
Returns the value of attribute include_patterns.
-
#line_limit ⇒ Object
Returns the value of attribute line_limit.
-
#output_target ⇒ Object
Returns the value of attribute output_target.
-
#prompt ⇒ Object
Returns the value of attribute prompt.
-
#show_tokens ⇒ Object
Returns the value of attribute show_tokens.
-
#smart ⇒ Object
Returns the value of attribute smart.
-
#smart_limit ⇒ Object
Returns the value of attribute smart_limit.
-
#stdin ⇒ Object
Returns the value of attribute stdin.
-
#working_directory ⇒ Object
Returns the value of attribute working_directory.
Instance Method Summary collapse
-
#initialize(**args) ⇒ Options
constructor
A new instance of Options.
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
#debug ⇒ Object
Returns the value of attribute debug
7 8 9 |
# File 'lib/appydave/tools/llm_context/options.rb', line 7 def debug @debug end |
#exclude_patterns ⇒ Object
Returns the value of attribute exclude_patterns
7 8 9 |
# File 'lib/appydave/tools/llm_context/options.rb', line 7 def exclude_patterns @exclude_patterns end |
#file_paths ⇒ Object
Returns the value of attribute file_paths
7 8 9 |
# File 'lib/appydave/tools/llm_context/options.rb', line 7 def file_paths @file_paths end |
#format ⇒ Object
Returns the value of attribute format
7 8 9 |
# File 'lib/appydave/tools/llm_context/options.rb', line 7 def format @format end |
#include_patterns ⇒ Object
Returns the value of attribute include_patterns
7 8 9 |
# File 'lib/appydave/tools/llm_context/options.rb', line 7 def include_patterns @include_patterns end |
#line_limit ⇒ Object
Returns the value of attribute line_limit
7 8 9 |
# File 'lib/appydave/tools/llm_context/options.rb', line 7 def line_limit @line_limit end |
#output_target ⇒ Object
Returns the value of attribute output_target
7 8 9 |
# File 'lib/appydave/tools/llm_context/options.rb', line 7 def output_target @output_target end |
#prompt ⇒ Object
Returns the value of attribute prompt
7 8 9 |
# File 'lib/appydave/tools/llm_context/options.rb', line 7 def prompt @prompt end |
#show_tokens ⇒ Object
Returns the value of attribute show_tokens
7 8 9 |
# File 'lib/appydave/tools/llm_context/options.rb', line 7 def show_tokens @show_tokens end |
#smart ⇒ Object
Returns the value of attribute smart
7 8 9 |
# File 'lib/appydave/tools/llm_context/options.rb', line 7 def smart @smart end |
#smart_limit ⇒ Object
Returns the value of attribute smart_limit
7 8 9 |
# File 'lib/appydave/tools/llm_context/options.rb', line 7 def smart_limit @smart_limit end |
#stdin ⇒ Object
Returns the value of attribute stdin
7 8 9 |
# File 'lib/appydave/tools/llm_context/options.rb', line 7 def stdin @stdin end |
#working_directory ⇒ Object
Returns the value of attribute working_directory
7 8 9 |
# File 'lib/appydave/tools/llm_context/options.rb', line 7 def working_directory @working_directory end |