Class: LLMed::Goal
- Inherits:
-
Object
- Object
- LLMed::Goal
- Defined in:
- lib/llmed/goal.rb
Instance Attribute Summary collapse
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#options ⇒ Object
readonly
Returns the value of attribute options.
Instance Method Summary collapse
-
#initialize(name:, options: {}) ⇒ Goal
constructor
A new instance of Goal.
- #llm(message) ⇒ Object
- #message ⇒ Object
- #message? ⇒ Boolean
Constructor Details
#initialize(name:, options: {}) ⇒ Goal
Returns a new instance of Goal.
8 9 10 11 |
# File 'lib/llmed/goal.rb', line 8 def initialize(name:, options: {}) @name = name @options = end |
Instance Attribute Details
#name ⇒ Object (readonly)
Returns the value of attribute name.
6 7 8 |
# File 'lib/llmed/goal.rb', line 6 def name @name end |
#options ⇒ Object (readonly)
Returns the value of attribute options.
6 7 8 |
# File 'lib/llmed/goal.rb', line 6 def @options end |
Instance Method Details
#llm(message) ⇒ Object
13 14 15 |
# File 'lib/llmed/goal.rb', line 13 def llm() @message = end |
#message ⇒ Object
17 18 19 |
# File 'lib/llmed/goal.rb', line 17 def "<goal name=\"#{@name}\">#{@message}</goal>" end |
#message? ⇒ Boolean
21 22 23 |
# File 'lib/llmed/goal.rb', line 21 def !(@message.nil? || @message.empty?) end |