Class: String
- Inherits:
-
Object
- Object
- String
- Defined in:
- lib/ruby_llm/text/string_ext.rb
Overview
Optional String monkey-patching
Instance Method Summary collapse
- #answer(question, **options) ⇒ Object
- #classify(**options) ⇒ Object
- #extract(**options) ⇒ Object
- #fix_grammar(**options) ⇒ Object
- #key_points(**options) ⇒ Object
- #rewrite(**options) ⇒ Object
- #sentiment(**options) ⇒ Object
- #summarize(**options) ⇒ Object
- #translate(**options) ⇒ Object
Instance Method Details
#answer(question, **options) ⇒ Object
35 36 37 |
# File 'lib/ruby_llm/text/string_ext.rb', line 35 def answer(question, **) RubyLLM::Text.answer(self, question, **) end |
#classify(**options) ⇒ Object
15 16 17 |
# File 'lib/ruby_llm/text/string_ext.rb', line 15 def classify(**) RubyLLM::Text.classify(self, **) end |
#extract(**options) ⇒ Object
11 12 13 |
# File 'lib/ruby_llm/text/string_ext.rb', line 11 def extract(**) RubyLLM::Text.extract(self, **) end |
#fix_grammar(**options) ⇒ Object
19 20 21 |
# File 'lib/ruby_llm/text/string_ext.rb', line 19 def fix_grammar(**) RubyLLM::Text.fix_grammar(self, **) end |
#key_points(**options) ⇒ Object
27 28 29 |
# File 'lib/ruby_llm/text/string_ext.rb', line 27 def key_points(**) RubyLLM::Text.key_points(self, **) end |
#rewrite(**options) ⇒ Object
31 32 33 |
# File 'lib/ruby_llm/text/string_ext.rb', line 31 def rewrite(**) RubyLLM::Text.rewrite(self, **) end |
#sentiment(**options) ⇒ Object
23 24 25 |
# File 'lib/ruby_llm/text/string_ext.rb', line 23 def sentiment(**) RubyLLM::Text.sentiment(self, **) end |