Class: String

Inherits:
Object
  • Object
show all
Defined in:
lib/ruby_llm/text/string_ext.rb

Overview

Optional String monkey-patching

Instance Method Summary collapse

Instance Method Details

#answer(question, **options) ⇒ Object



35
36
37
# File 'lib/ruby_llm/text/string_ext.rb', line 35

def answer(question, **options)
  RubyLLM::Text.answer(self, question, **options)
end

#classify(**options) ⇒ Object



15
16
17
# File 'lib/ruby_llm/text/string_ext.rb', line 15

def classify(**options)
  RubyLLM::Text.classify(self, **options)
end

#extract(**options) ⇒ Object



11
12
13
# File 'lib/ruby_llm/text/string_ext.rb', line 11

def extract(**options)
  RubyLLM::Text.extract(self, **options)
end

#fix_grammar(**options) ⇒ Object



19
20
21
# File 'lib/ruby_llm/text/string_ext.rb', line 19

def fix_grammar(**options)
  RubyLLM::Text.fix_grammar(self, **options)
end

#key_points(**options) ⇒ Object



27
28
29
# File 'lib/ruby_llm/text/string_ext.rb', line 27

def key_points(**options)
  RubyLLM::Text.key_points(self, **options)
end

#rewrite(**options) ⇒ Object



31
32
33
# File 'lib/ruby_llm/text/string_ext.rb', line 31

def rewrite(**options)
  RubyLLM::Text.rewrite(self, **options)
end

#sentiment(**options) ⇒ Object



23
24
25
# File 'lib/ruby_llm/text/string_ext.rb', line 23

def sentiment(**options)
  RubyLLM::Text.sentiment(self, **options)
end

#summarize(**options) ⇒ Object



3
4
5
# File 'lib/ruby_llm/text/string_ext.rb', line 3

def summarize(**options)
  RubyLLM::Text.summarize(self, **options)
end

#translate(**options) ⇒ Object



7
8
9
# File 'lib/ruby_llm/text/string_ext.rb', line 7

def translate(**options)
  RubyLLM::Text.translate(self, **options)
end