Class: Conductor::Http::Models::PromptTemplate

Inherits:
BaseModel
  • Object
show all
Defined in:
lib/conductor/http/models/prompt_template.rb

Overview

PromptTemplate model - AI prompt template

Constant Summary collapse

SWAGGER_TYPES =
{
  created_by: 'String',
  create_time: 'Integer',
  description: 'String',
  integrations: 'Array<String>',
  name: 'String',
  owner_app: 'String',
  tags: 'Array<TagObject>',
  template: 'String',
  updated_by: 'String',
  update_time: 'Integer',
  variables: 'Array<String>',
  version: 'Integer'
}.freeze
ATTRIBUTE_MAP =
{
  created_by: :createdBy,
  create_time: :createTime,
  description: :description,
  integrations: :integrations,
  name: :name,
  owner_app: :ownerApp,
  tags: :tags,
  template: :template,
  updated_by: :updatedBy,
  update_time: :updateTime,
  variables: :variables,
  version: :version
}.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 = {}) ⇒ PromptTemplate

Returns a new instance of PromptTemplate.



42
43
44
45
46
47
48
49
50
51
52
53
54
55
# File 'lib/conductor/http/models/prompt_template.rb', line 42

def initialize(params = {})
  @created_by = params[:created_by]
  @create_time = params[:create_time]
  @description = params[:description]
  @integrations = params[:integrations]
  @name = params[:name]
  @owner_app = params[:owner_app]
  @tags = params[:tags]
  @template = params[:template]
  @updated_by = params[:updated_by]
  @update_time = params[:update_time]
  @variables = params[:variables]
  @version = params[:version] || 1
end

Instance Attribute Details

#create_timeObject

Returns the value of attribute create_time.



38
39
40
# File 'lib/conductor/http/models/prompt_template.rb', line 38

def create_time
  @create_time
end

#created_byObject

Returns the value of attribute created_by.



38
39
40
# File 'lib/conductor/http/models/prompt_template.rb', line 38

def created_by
  @created_by
end

#descriptionObject

Returns the value of attribute description.



38
39
40
# File 'lib/conductor/http/models/prompt_template.rb', line 38

def description
  @description
end

#integrationsObject

Returns the value of attribute integrations.



38
39
40
# File 'lib/conductor/http/models/prompt_template.rb', line 38

def integrations
  @integrations
end

#nameObject

Returns the value of attribute name.



38
39
40
# File 'lib/conductor/http/models/prompt_template.rb', line 38

def name
  @name
end

#owner_appObject

Returns the value of attribute owner_app.



38
39
40
# File 'lib/conductor/http/models/prompt_template.rb', line 38

def owner_app
  @owner_app
end

#tagsObject

Returns the value of attribute tags.



38
39
40
# File 'lib/conductor/http/models/prompt_template.rb', line 38

def tags
  @tags
end

#templateObject

Returns the value of attribute template.



38
39
40
# File 'lib/conductor/http/models/prompt_template.rb', line 38

def template
  @template
end

#update_timeObject

Returns the value of attribute update_time.



38
39
40
# File 'lib/conductor/http/models/prompt_template.rb', line 38

def update_time
  @update_time
end

#updated_byObject

Returns the value of attribute updated_by.



38
39
40
# File 'lib/conductor/http/models/prompt_template.rb', line 38

def updated_by
  @updated_by
end

#variablesObject

Returns the value of attribute variables.



38
39
40
# File 'lib/conductor/http/models/prompt_template.rb', line 38

def variables
  @variables
end

#versionObject

Returns the value of attribute version.



38
39
40
# File 'lib/conductor/http/models/prompt_template.rb', line 38

def version
  @version
end