Class: Xberg::Preset

Inherits:
Object
  • Object
show all
Defined in:
sig/types.rbs

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializePreset

Returns a new instance of Preset.

Parameters:

  • id: (String)
  • version: (String)
  • schema_name: (String)
  • description: (String)
  • category: (enum_PresetCategory)
  • tags: (Array[String])
  • schema: (String)
  • system_prompt: (String)
  • context_template: (String)
  • merge_mode: (enum_MergeMode)
  • preferred_call_mode: (enum_CallMode)
  • emit_citations: (Boolean)
  • sample: (PresetSample)
  • fingerprint: (String)


2158
# File 'sig/types.rbs', line 2158

def initialize: (id: String, version: String, schema_name: String, description: String, category: enum_PresetCategory, tags: Array[String], schema: String, system_prompt: String, ?context_template: String, merge_mode: enum_MergeMode, preferred_call_mode: enum_CallMode, emit_citations: bool, ?sample: PresetSample, fingerprint: String) -> void

Instance Attribute Details

#categoryenum_PresetCategory (readonly)

Returns the value of attribute category.

Returns:

  • (enum_PresetCategory)


2147
2148
2149
# File 'sig/types.rbs', line 2147

def category
  @category
end

#context_templateString? (readonly)

Returns the value of attribute context_template.

Returns:

  • (String, nil)


2151
2152
2153
# File 'sig/types.rbs', line 2151

def context_template
  @context_template
end

#descriptionString (readonly)

Returns the value of attribute description.

Returns:

  • (String)


2146
2147
2148
# File 'sig/types.rbs', line 2146

def description
  @description
end

#emit_citationsBoolean (readonly)

Returns the value of attribute emit_citations.

Returns:

  • (Boolean)


2154
2155
2156
# File 'sig/types.rbs', line 2154

def emit_citations
  @emit_citations
end

#fingerprintString (readonly)

Returns the value of attribute fingerprint.

Returns:

  • (String)


2156
2157
2158
# File 'sig/types.rbs', line 2156

def fingerprint
  @fingerprint
end

#idString (readonly)

Returns the value of attribute id.

Returns:

  • (String)


2143
2144
2145
# File 'sig/types.rbs', line 2143

def id
  @id
end

#merge_modeenum_MergeMode (readonly)

Returns the value of attribute merge_mode.

Returns:

  • (enum_MergeMode)


2152
2153
2154
# File 'sig/types.rbs', line 2152

def merge_mode
  @merge_mode
end

#preferred_call_modeenum_CallMode (readonly)

Returns the value of attribute preferred_call_mode.

Returns:

  • (enum_CallMode)


2153
2154
2155
# File 'sig/types.rbs', line 2153

def preferred_call_mode
  @preferred_call_mode
end

#samplePresetSample? (readonly)

Returns the value of attribute sample.

Returns:



2155
2156
2157
# File 'sig/types.rbs', line 2155

def sample
  @sample
end

#schemaString (readonly)

Returns the value of attribute schema.

Returns:

  • (String)


2149
2150
2151
# File 'sig/types.rbs', line 2149

def schema
  @schema
end

#schema_nameString (readonly)

Returns the value of attribute schema_name.

Returns:

  • (String)


2145
2146
2147
# File 'sig/types.rbs', line 2145

def schema_name
  @schema_name
end

#system_promptString (readonly)

Returns the value of attribute system_prompt.

Returns:

  • (String)


2150
2151
2152
# File 'sig/types.rbs', line 2150

def system_prompt
  @system_prompt
end

#tagsArray[String] (readonly)

Returns the value of attribute tags.

Returns:

  • (Array[String])


2148
2149
2150
# File 'sig/types.rbs', line 2148

def tags
  @tags
end

#versionString (readonly)

Returns the value of attribute version.

Returns:

  • (String)


2144
2145
2146
# File 'sig/types.rbs', line 2144

def version
  @version
end