Class: Conductor::Http::Models::PromptTemplateTestRequest

Inherits:
BaseModel
  • Object
show all
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

Instance Method Summary collapse

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_providerObject

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

#modelObject

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

#promptObject

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_variablesObject

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_wordsObject

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

#temperatureObject

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_pObject

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