Class: Conductor::Http::Models::PromptTemplateTestRequest
- Defined in:
- lib/conductor/http/models/prompt_template_test_request.rb
Overview
PromptTemplateTestRequest model - request to test a prompt template
Constant Summary collapse
- SWAGGER_TYPES =
{ llm_provider: 'String', model: 'String', prompt: 'String', prompt_variables: 'Hash<String, Object>', stop_words: 'Array<String>', temperature: 'Float', top_p: 'Float' }.freeze
- ATTRIBUTE_MAP =
{ llm_provider: :llmProvider, model: :model, prompt: :prompt, prompt_variables: :promptVariables, stop_words: :stopWords, temperature: :temperature, top_p: :topP }.freeze
Instance Attribute Summary collapse
-
#llm_provider ⇒ Object
Returns the value of attribute llm_provider.
-
#model ⇒ Object
Returns the value of attribute model.
-
#prompt ⇒ Object
Returns the value of attribute prompt.
-
#prompt_variables ⇒ Object
Returns the value of attribute prompt_variables.
-
#stop_words ⇒ Object
Returns the value of attribute stop_words.
-
#temperature ⇒ Object
Returns the value of attribute temperature.
-
#top_p ⇒ Object
Returns the value of attribute top_p.
Instance Method Summary collapse
-
#initialize(params = {}) ⇒ PromptTemplateTestRequest
constructor
A new instance of PromptTemplateTestRequest.
Methods inherited from BaseModel
attribute_map, deserialize_model, deserialize_value, find_model_class, from_hash, from_json, parse_datetime, swagger_types, #to_h, #to_json
Constructor Details
#initialize(params = {}) ⇒ PromptTemplateTestRequest
Returns a new instance of PromptTemplateTestRequest.
31 32 33 34 35 36 37 38 39 |
# File 'lib/conductor/http/models/prompt_template_test_request.rb', line 31 def initialize(params = {}) @llm_provider = params[:llm_provider] @model = params[:model] @prompt = params[:prompt] @prompt_variables = params[:prompt_variables] @stop_words = params[:stop_words] @temperature = params[:temperature] @top_p = params[:top_p] end |
Instance Attribute Details
#llm_provider ⇒ Object
Returns the value of attribute llm_provider.
28 29 30 |
# File 'lib/conductor/http/models/prompt_template_test_request.rb', line 28 def llm_provider @llm_provider end |
#model ⇒ Object
Returns the value of attribute model.
28 29 30 |
# File 'lib/conductor/http/models/prompt_template_test_request.rb', line 28 def model @model end |
#prompt ⇒ Object
Returns the value of attribute prompt.
28 29 30 |
# File 'lib/conductor/http/models/prompt_template_test_request.rb', line 28 def prompt @prompt end |
#prompt_variables ⇒ Object
Returns the value of attribute prompt_variables.
28 29 30 |
# File 'lib/conductor/http/models/prompt_template_test_request.rb', line 28 def prompt_variables @prompt_variables end |
#stop_words ⇒ Object
Returns the value of attribute stop_words.
28 29 30 |
# File 'lib/conductor/http/models/prompt_template_test_request.rb', line 28 def stop_words @stop_words end |
#temperature ⇒ Object
Returns the value of attribute temperature.
28 29 30 |
# File 'lib/conductor/http/models/prompt_template_test_request.rb', line 28 def temperature @temperature end |
#top_p ⇒ Object
Returns the value of attribute top_p.
28 29 30 |
# File 'lib/conductor/http/models/prompt_template_test_request.rb', line 28 def top_p @top_p end |