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)


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

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:



1959
1960
1961
# File 'sig/types.rbs', line 1959

def category
  @category
end

#context_templateString (readonly)

Returns the value of attribute context_template.

Returns:

  • (String)


1963
1964
1965
# File 'sig/types.rbs', line 1963

def context_template
  @context_template
end

#descriptionString (readonly)

Returns the value of attribute description.

Returns:

  • (String)


1958
1959
1960
# File 'sig/types.rbs', line 1958

def description
  @description
end

#emit_citationsBoolean (readonly)

Returns the value of attribute emit_citations.

Returns:

  • (Boolean)


1966
1967
1968
# File 'sig/types.rbs', line 1966

def emit_citations
  @emit_citations
end

#fingerprintString (readonly)

Returns the value of attribute fingerprint.

Returns:

  • (String)


1968
1969
1970
# File 'sig/types.rbs', line 1968

def fingerprint
  @fingerprint
end

#idString (readonly)

Returns the value of attribute id.

Returns:

  • (String)


1955
1956
1957
# File 'sig/types.rbs', line 1955

def id
  @id
end

#merge_modeMergeMode (readonly)

Returns the value of attribute merge_mode.

Returns:



1964
1965
1966
# File 'sig/types.rbs', line 1964

def merge_mode
  @merge_mode
end

#preferred_call_modeCallMode (readonly)

Returns the value of attribute preferred_call_mode.

Returns:



1965
1966
1967
# File 'sig/types.rbs', line 1965

def preferred_call_mode
  @preferred_call_mode
end

#samplePresetSample (readonly)

Returns the value of attribute sample.

Returns:



1967
1968
1969
# File 'sig/types.rbs', line 1967

def sample
  @sample
end

#schemajson_value (readonly)

Returns the value of attribute schema.

Returns:

  • (json_value)


1961
1962
1963
# File 'sig/types.rbs', line 1961

def schema
  @schema
end

#schema_nameString (readonly)

Returns the value of attribute schema_name.

Returns:

  • (String)


1957
1958
1959
# File 'sig/types.rbs', line 1957

def schema_name
  @schema_name
end

#system_promptString (readonly)

Returns the value of attribute system_prompt.

Returns:

  • (String)


1962
1963
1964
# File 'sig/types.rbs', line 1962

def system_prompt
  @system_prompt
end

#tagsArray[String] (readonly)

Returns the value of attribute tags.

Returns:

  • (Array[String])


1960
1961
1962
# File 'sig/types.rbs', line 1960

def tags
  @tags
end

#versionString (readonly)

Returns the value of attribute version.

Returns:

  • (String)


1956
1957
1958
# File 'sig/types.rbs', line 1956

def version
  @version
end