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: (PresetCategory)
  • tags: (Array[String])
  • schema: (json_value)
  • system_prompt: (String)
  • context_template: (String)
  • merge_mode: (MergeMode)
  • preferred_call_mode: (CallMode)
  • emit_citations: (Boolean)
  • sample: (PresetSample)
  • fingerprint: (String)


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

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

Instance Attribute Details

#categoryPresetCategory (readonly)

Returns the value of attribute category.

Returns:



2061
2062
2063
# File 'sig/types.rbs', line 2061

def category
  @category
end

#context_templateString (readonly)

Returns the value of attribute context_template.

Returns:

  • (String)


2065
2066
2067
# File 'sig/types.rbs', line 2065

def context_template
  @context_template
end

#descriptionString (readonly)

Returns the value of attribute description.

Returns:

  • (String)


2060
2061
2062
# File 'sig/types.rbs', line 2060

def description
  @description
end

#emit_citationsBoolean (readonly)

Returns the value of attribute emit_citations.

Returns:

  • (Boolean)


2068
2069
2070
# File 'sig/types.rbs', line 2068

def emit_citations
  @emit_citations
end

#fingerprintString (readonly)

Returns the value of attribute fingerprint.

Returns:

  • (String)


2070
2071
2072
# File 'sig/types.rbs', line 2070

def fingerprint
  @fingerprint
end

#idString (readonly)

Returns the value of attribute id.

Returns:

  • (String)


2057
2058
2059
# File 'sig/types.rbs', line 2057

def id
  @id
end

#merge_modeMergeMode (readonly)

Returns the value of attribute merge_mode.

Returns:



2066
2067
2068
# File 'sig/types.rbs', line 2066

def merge_mode
  @merge_mode
end

#preferred_call_modeCallMode (readonly)

Returns the value of attribute preferred_call_mode.

Returns:



2067
2068
2069
# File 'sig/types.rbs', line 2067

def preferred_call_mode
  @preferred_call_mode
end

#samplePresetSample (readonly)

Returns the value of attribute sample.

Returns:



2069
2070
2071
# File 'sig/types.rbs', line 2069

def sample
  @sample
end

#schemajson_value (readonly)

Returns the value of attribute schema.

Returns:

  • (json_value)


2063
2064
2065
# File 'sig/types.rbs', line 2063

def schema
  @schema
end

#schema_nameString (readonly)

Returns the value of attribute schema_name.

Returns:

  • (String)


2059
2060
2061
# File 'sig/types.rbs', line 2059

def schema_name
  @schema_name
end

#system_promptString (readonly)

Returns the value of attribute system_prompt.

Returns:

  • (String)


2064
2065
2066
# File 'sig/types.rbs', line 2064

def system_prompt
  @system_prompt
end

#tagsArray[String] (readonly)

Returns the value of attribute tags.

Returns:

  • (Array[String])


2062
2063
2064
# File 'sig/types.rbs', line 2062

def tags
  @tags
end

#versionString (readonly)

Returns the value of attribute version.

Returns:

  • (String)


2058
2059
2060
# File 'sig/types.rbs', line 2058

def version
  @version
end