Class: GChatSH::Application
- Inherits:
-
Object
- Object
- GChatSH::Application
- Defined in:
- lib/gchatsh.rb
Instance Attribute Summary collapse
-
#options ⇒ Object
Returns the value of attribute options.
Instance Method Summary collapse
- #call ⇒ Object
-
#initialize ⇒ Application
constructor
A new instance of Application.
Constructor Details
#initialize ⇒ Application
Returns a new instance of Application.
12 13 14 15 |
# File 'lib/gchatsh.rb', line 12 def initialize = Options.new .credentials = Credentials.new end |
Instance Attribute Details
#options ⇒ Object
Returns the value of attribute options.
11 12 13 |
# File 'lib/gchatsh.rb', line 11 def end |
Instance Method Details
#call ⇒ Object
17 18 19 20 21 22 23 |
# File 'lib/gchatsh.rb', line 17 def call system_prompt = File.read(File.join(__dir__, 'system_prompt.txt')) user_prompt = UserInput.new.call .user_prompt = user_prompt .system_prompt = system_prompt GroqApi.new().call end |