Class: Ollama::Params::Generate
Overview
Generate completion parameters
Instance Attribute Summary collapse
-
#context ⇒ Object
Returns the value of attribute context.
-
#hooks ⇒ Object
Returns the value of attribute hooks.
-
#images ⇒ Object
Returns the value of attribute images.
-
#keep_alive ⇒ Object
Returns the value of attribute keep_alive.
-
#model ⇒ Object
Returns the value of attribute model.
-
#options ⇒ Object
Returns the value of attribute options.
-
#prompt ⇒ Object
Returns the value of attribute prompt.
-
#raw ⇒ Object
Returns the value of attribute raw.
-
#return_meta ⇒ Object
Returns the value of attribute return_meta.
-
#return_reasoning ⇒ Object
Returns the value of attribute return_reasoning.
-
#schema ⇒ Object
Returns the value of attribute schema.
-
#strict ⇒ Object
Returns the value of attribute strict.
-
#suffix ⇒ Object
Returns the value of attribute suffix.
-
#system ⇒ Object
Returns the value of attribute system.
-
#think ⇒ Object
Returns the value of attribute think.
-
#tools ⇒ Object
Returns the value of attribute tools.
Instance Method Summary collapse
-
#initialize(prompt:, context: nil, schema: nil, model: nil, strict: nil, return_meta: false, system: nil, images: nil, think: nil, return_reasoning: false, keep_alive: nil, suffix: nil, raw: nil, options: nil, hooks: {}, tools: nil) ⇒ Generate
constructor
rubocop:disable Metrics/ParameterLists.
Methods inherited from Base
Constructor Details
#initialize(prompt:, context: nil, schema: nil, model: nil, strict: nil, return_meta: false, system: nil, images: nil, think: nil, return_reasoning: false, keep_alive: nil, suffix: nil, raw: nil, options: nil, hooks: {}, tools: nil) ⇒ Generate
rubocop:disable Metrics/ParameterLists
57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 |
# File 'lib/ollama/params.rb', line 57 def initialize(prompt:, context: nil, schema: nil, model: nil, strict: nil, return_meta: false, system: nil, images: nil, think: nil, return_reasoning: false, keep_alive: nil, suffix: nil, raw: nil, options: nil, hooks: {}, tools: nil) # rubocop:enable Metrics/ParameterLists super() @prompt = prompt @context = context @schema = schema @model = model @strict = strict @return_meta = @system = system @images = images @think = think @return_reasoning = return_reasoning @keep_alive = keep_alive @suffix = suffix @raw = raw @options = @hooks = hooks @tools = tools end |
Instance Attribute Details
#context ⇒ Object
Returns the value of attribute context.
52 53 54 |
# File 'lib/ollama/params.rb', line 52 def context @context end |
#hooks ⇒ Object
Returns the value of attribute hooks.
52 53 54 |
# File 'lib/ollama/params.rb', line 52 def hooks @hooks end |
#images ⇒ Object
Returns the value of attribute images.
52 53 54 |
# File 'lib/ollama/params.rb', line 52 def images @images end |
#keep_alive ⇒ Object
Returns the value of attribute keep_alive.
52 53 54 |
# File 'lib/ollama/params.rb', line 52 def keep_alive @keep_alive end |
#model ⇒ Object
Returns the value of attribute model.
52 53 54 |
# File 'lib/ollama/params.rb', line 52 def model @model end |
#options ⇒ Object
Returns the value of attribute options.
52 53 54 |
# File 'lib/ollama/params.rb', line 52 def @options end |
#prompt ⇒ Object
Returns the value of attribute prompt.
52 53 54 |
# File 'lib/ollama/params.rb', line 52 def prompt @prompt end |
#raw ⇒ Object
Returns the value of attribute raw.
52 53 54 |
# File 'lib/ollama/params.rb', line 52 def raw @raw end |
#return_meta ⇒ Object
Returns the value of attribute return_meta.
52 53 54 |
# File 'lib/ollama/params.rb', line 52 def @return_meta end |
#return_reasoning ⇒ Object
Returns the value of attribute return_reasoning.
52 53 54 |
# File 'lib/ollama/params.rb', line 52 def return_reasoning @return_reasoning end |
#schema ⇒ Object
Returns the value of attribute schema.
52 53 54 |
# File 'lib/ollama/params.rb', line 52 def schema @schema end |
#strict ⇒ Object
Returns the value of attribute strict.
52 53 54 |
# File 'lib/ollama/params.rb', line 52 def strict @strict end |
#suffix ⇒ Object
Returns the value of attribute suffix.
52 53 54 |
# File 'lib/ollama/params.rb', line 52 def suffix @suffix end |
#system ⇒ Object
Returns the value of attribute system.
52 53 54 |
# File 'lib/ollama/params.rb', line 52 def system @system end |
#think ⇒ Object
Returns the value of attribute think.
52 53 54 |
# File 'lib/ollama/params.rb', line 52 def think @think end |
#tools ⇒ Object
Returns the value of attribute tools.
52 53 54 |
# File 'lib/ollama/params.rb', line 52 def tools @tools end |