Class: Base

Inherits:
Object
  • Object
show all
Defined in:
lib/reprompt/clients/base.rb,
lib/reprompt/templates/base.rb

Direct Known Subclasses

FiveWhys, Ollama, TechnicalOutline

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(max_responses = 5) ⇒ Base

Returns a new instance of Base.



4
5
# File 'lib/reprompt/clients/base.rb', line 4

def initialize
end

Instance Attribute Details

#clientObject

Returns the value of attribute client.



4
5
6
# File 'lib/reprompt/templates/base.rb', line 4

def client
  @client
end

#conversationObject

Returns the value of attribute conversation.



4
5
6
# File 'lib/reprompt/templates/base.rb', line 4

def conversation
  @conversation
end

#max_responsesObject

Returns the value of attribute max_responses.



4
5
6
# File 'lib/reprompt/templates/base.rb', line 4

def max_responses
  @max_responses
end

#uriObject

Returns the value of attribute uri.



2
3
4
# File 'lib/reprompt/clients/base.rb', line 2

def uri
  @uri
end

Instance Method Details

#prompt(question) ⇒ Object

Raises:

  • (NotImplementedError)


7
8
9
# File 'lib/reprompt/clients/base.rb', line 7

def prompt(question)
  raise NotImplementedError
end